Skip to content

JSONRPC web3 module

Gav Wood edited this page Aug 10, 2016 · 1 revision

The web3 Module

web3_clientVersion

Returns the current client version.

Parameters

none

Returns

String - The current client version

Example
// 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"
}

web3_sha3

Returns Keccak-256 (not the standardized SHA3-256) of the given data.

Parameters
  1. String - the data to convert into a SHA3 hash
params: [
  '0x68656c6c6f20776f726c64'
]
Returns

DATA - The SHA3 result of the given string.

Example
// 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"
}

#Parity

Using Parity

Developing Dapps

Hacking on Parity

Technologies

Clone this wiki locally