Web3 module
Returns the current client version.
Invocation |
---|
{"method":"web3_clientVersion","params":[]} |
Returned type | Description |
---|---|
String | |
Example request of web3_clientVersion
Example response of web3_clientVersion
curl --data '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc": "2.0",
"result": Nethermind/v1.10.75-0-310037468-20210717/X64-Linux/5.0.7,
"id": 1
}
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
curl --data '{"method":"web3_sha3","params":[["0x47767638636211111a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01abc"]],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
{
"jsonrpc": "2.0",
"result": 0xed3a98886604dcd55a159d55d35f7c14fa2f2aab7fbccbfa5511d8dadeea9442,
"id": 1
}
Last modified 1yr ago