Web3 (web3_) endpoints in Frietor Chains
web3_clientVersion
Returns the current client version.
Parameters
- None
Returns
String
- The current client version.
Example
curl -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' https://rpc-saar.frietor.network/rpc
web3_sha3
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
Parameters
DATA
- The data to convert into a SHA3 hash.
Returns
DATA
- The SHA3 result of the given string.
Example
curl -X POST --data '{"jsonrpc":"2.0","method":"web3_sha3","params":["0x68656c6c6f20776f726c64"],"id":64}' https://rpc-saar.frietor.network/rpc
This will return
0x3e243e1c4b4e9b9c7d7b0b8b6aebd6b9b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6
which is the Keccak-256 hash of "hello world".