You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
Numbers in the Web3 implementation of ethereum are sent as hexadecimal numbers, for example:
{
"method": "eth_blockNumber",
"params": []
}
should return (according to the ethereum implementation)
{
"jsonrpc": "2.0",
"result": "0x80023"
}
but they are sent as decimal numbers (not even strings!):
{
"jsonrpc": "2.0",
"result": 524323
}
Many implementations (e..g web3j) require the values to be formatted as hex-strings instead of decimal numbers (enforcing the actual ethereum-style). This issue is not only for the eth_blockNumber method but most numbers (actually, I do not know of any number that is sent as decimal number).
The text was updated successfully, but these errors were encountered:
plainerman
changed the title
Malformated numbers (i.e. hex digits)
Malformatted numbers (i.e. hex digits)
Jul 13, 2018
Numbers in the Web3 implementation of ethereum are sent as hexadecimal numbers, for example:
should return (according to the ethereum implementation)
but they are sent as decimal numbers (not even strings!):
Many implementations (e..g web3j) require the values to be formatted as hex-strings instead of decimal numbers (enforcing the actual ethereum-style). This issue is not only for the
eth_blockNumber
method but most numbers (actually, I do not know of any number that is sent as decimal number).The text was updated successfully, but these errors were encountered: