Web3 module

web3.abi

Invocation
web3.abi(name)
Parameter
Type
Description
name
String
Returned type
Description
String
Example request of web3.abi
1
web3.abi(name)
Copied!

web3.clientVersion

Returns the current client version.
Invocation
web3.clientVersion
This method doesn't have parameters.
Returned type
Description
String
Example request of web3.clientVersion
Example response of web3.clientVersion
1
web3.clientVersion
Copied!
1
Nethermind/v1.10.75-0-310037468-20210717/X64-Linux/5.0.7
Copied!

web3.sha3

Returns Keccak of the given data.
Invocation
web3.sha3(data)
Parameter
Type
Description
data
Data
Returned type
Description
Hash
Example request of web3.sha3
Example response of web3.sha3
1
web3.sha3(["0x47767638636211111a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01abc"])
Copied!
1
0xed3a98886604dcd55a159d55d35f7c14fa2f2aab7fbccbfa5511d8dadeea9442
Copied!

web3.toDecimal

Invocation
web3.toDecimal(hex)
Parameter
Type
Description
hex
String
Returned type
Description
JavaScript Object
Example request of web3.toDecimal
1
web3.toDecimal(hex)
Copied!
Last modified 1mo ago