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 Sep 13, 2024. It is now read-only.
Hi,
I use the method " web3.eth.getBlockByNumber()" ,but the result is failture.
this is my code :
let web3 = Web3.new(URL.init(string: "http://127.0.0.1:8545")!)!
let response = web3.eth.getBlockByNumber(UInt64(2614), fullTransactions: false)
and the reponse result is :
.failure(nodeError("invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type common.Hash"))
===
what can I do?
The text was updated successfully, but these errors were encountered:
Hi,
I use the method " web3.eth.getBlockByNumber()" ,but the result is failture.
this is my code :
let web3 = Web3.new(URL.init(string: "http://127.0.0.1:8545")!)!
let response = web3.eth.getBlockByNumber(UInt64(2614), fullTransactions: false)
and the reponse result is :
.failure(nodeError("invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type common.Hash"))
===
what can I do?
The text was updated successfully, but these errors were encountered: