Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 1.59 KB

web3.md

File metadata and controls

98 lines (72 loc) · 1.59 KB

Web3 module

web3.abi

Invocation
web3.abi(name)
Parameter Type Description
name String
Returned type Description
String

{% tabs %} {% tab title="Example request of web3.abi" %}

web3.abi(name)

{% endtab %} {% endtabs %}

web3.clientVersion

Returns the current client version.

Invocation
web3.clientVersion
This method doesn't have parameters.
Returned type Description
String

{% tabs %} {% tab title="Example request of web3.clientVersion" %}

web3.clientVersion

{% endtab %} {% endtabs %}

See also JSON RPC web3_clientVersion

web3.sha3

Returns Keccak of the given data.

Invocation
web3.sha3(data)
Parameter Type Description
data Data
Returned type Description
Hash

{% tabs %} {% tab title="Example request of web3.sha3" %}

web3.sha3(data)

{% endtab %} {% endtabs %}

See also JSON RPC web3_sha3

web3.toDecimal

Invocation
web3.toDecimal(hex)
Parameter Type Description
hex String
Returned type Description
JavaScript Object

{% tabs %} {% tab title="Example request of web3.toDecimal" %}

web3.toDecimal(hex)

{% endtab %} {% endtabs %}