Web3 module

web3_clientVersion

Returns the current client version.
Invocation
{"method":"web3_clientVersion","params":[]}
Returned type
Description
String
Example request of web3_clientVersion
Example response of web3_clientVersion
1
curl --data '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": Nethermind/v1.10.75-0-310037468-20210717/X64-Linux/5.0.7,
4
"id": 1
5
}
Copied!

web3_sha3

Returns Keccak of the given data.
Invocation
{"method":"web3_sha3","params":[data]}
Parameter
Type
Description
data
Data
Returned type
Description
Hash
Example request of web3_sha3
Example response of web3_sha3
1
curl --data '{"method":"web3_sha3","params":[["0x47767638636211111a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01abc"]],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Copied!
1
{
2
"jsonrpc": "2.0",
3
"result": 0xed3a98886604dcd55a159d55d35f7c14fa2f2aab7fbccbfa5511d8dadeea9442,
4
"id": 1
5
}
Copied!
Last modified 1mo ago