web3 namespace
web3_clientVersion
Returns the current client version.
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "web3_clientVersion",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string
web3_sha3
Returns Keccak of the given data.
- Parameters
- Request
- Response
data
: string (hex data)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "web3_sha3",
"params": [data]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string (hash)