📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

matic
Polygon (MATIC)

Method: POST web3_sha3

dropdown

方法 RPC web3_sha3 例如 Polygon (MATIC)

POST web3_sha3

返回给定数据的Keccak-256(不是标准化的SHA3-256)。

Parameters

DATA - 字符串数组

将转换为SHA3哈希的数据。

Request

curl --location --request POST 'https://matic.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "web3_sha3",
"params": ["0xf2a2b854721d4372474fc76cc13445a73369c0c334f4935c88bde3c310f28c9a"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xf5d3389b32cee33308ce9af2d8aefa1517aa90ccb7b1d2eb29c61f13e1fd3cea"
}