forked from openethereum/parity-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
JSONRPC web3 module
Gav Wood edited this page Aug 10, 2016
·
1 revision
Returns the current client version.
none
String
- The current client version
// Request
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' localhost:8545
// Result
{
"id":67,
"jsonrpc":"2.0",
"result": "Mist/v0.9.3/darwin/go1.4.1"
}
Returns Keccak-256 (not the standardized SHA3-256) of the given data.
-
String
- the data to convert into a SHA3 hash
params: [
'0x68656c6c6f20776f726c64'
]
DATA
- The SHA3 result of the given string.
// Request
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"web3_sha3","params":["0x68656c6c6f20776f726c64"],"id":1}' localhost:8545
// Result
{
"id":64,
"jsonrpc": "2.0",
"result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
- [With Mist](Using parity with mist)
- For Mining
- [For Private Chains](Private Chains)
- [For PoA Chains](Proof of Authority Chains)
- [Coming from Geth](Importing a chain from Geth)
- Backing-up & Restoring
- Ethereum Classic