LogoLogo
  • Introduction
  • Radius testnet access
  • Quickstart
    • Command line
    • Go
    • JavaScript
    • Postman
    • Python
    • Rust
    • TypeScript
  • How to
    • Create a Private Key
    • Get testnet ETH tokens
    • Deploy a smart contract
  • Concepts
    • Ethereum transaction types
  • Tutorials
  • Radius SDKs
  • API Reference
    • eth_blockNumber
    • eth_call
    • eth_chainId
    • eth_createAccessList
    • eth_estimateGas
    • eth_feeHistory
    • eth_gasPrice
    • eth_getBalance
    • eth_getBlock
    • eth_getBlockByHash
    • eth_getBlockByNumber
    • eth_getBlockTransactionCountByHash
    • eth_getBlockTransactionCountByNumber
    • eth_getCode
    • eth_getLogs
    • eth_getStorageAt
    • eth_getTransactionByBlockHashAndIndex
    • eth_getTransactionByBlockNumberAndIndex
    • eth_getTransactionByHash
    • eth_getTransactionCount
    • eth_getTransactionReceipt
    • eth_sendRawTransaction
    • eth_sendTransaction
    • net_version
    • web3_clientVersion
    • web3_sha3
    • web3_getTransactionCount
  • Release Notes
  • Whitepaper
  • Radius Discord
Powered by GitBook
On this page
  • Parameters
  • Returns
  • Example

Was this helpful?

Edit on GitHub
  1. API Reference

web3_sha3

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

Parameters

data: [Required] The data in hex form to convert into a SHA3 hash.

Returns

The SHA3 result of the given string.

Example

Request

curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "web3_sha3",
  "params": [
    "0xe08080830493e094cae4d474a43b186606bb836f463d4b4072b7fbe38080808080"
  ],
  "id": 1
}
'

Response

{
  "jsonrpc": "2.0",
  "result": "0bf790cc27f22570b0fb768bd4b9f2d1c25b7ca75b64ae1d567919eff3b78519",
  "id": 1
}

Request

cast rpc web3_sha3 \
  0xe08080830493e094cae4d474a43b186606bb836f463d4b4072b7fbe38080808080 \
  --rpc-url https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT>

Response

"0bf790cc27f22570b0fb768bd4b9f2d1c25b7ca75b64ae1d567919eff3b78519"
Previousweb3_clientVersionNextweb3_getTransactionCount

Last updated 4 months ago

Was this helpful?