Web3 module

web3_clientVersion

Returns the current client version.

Invocation

{"method":"web3_clientVersion","params":[]}

This method doesn't have parameters.

Returned type

Description

String

Example request of web3_clientVersion
Example request of web3_clientVersion
curl --data '{"method":"web3_clientVersion","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI web3.clientVersion

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 request of web3_sha3
curl --data '{"method":"web3_sha3","params":[data],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI web3.sha3