⚡ We welcome businesses to test our enterprise-grade service

Method: POST web3_sha3

dropdown

方法 RPC web3_sha3 例如 Tron (TRX)

POST web3_sha3

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

Parameters

data - 数据

转换为SHA3哈希的数据

Request

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


Response

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