Comments (3)
Looks like you forgot fill "from" field.
from ethrpc.
Thank you for your quick response. The problem was solved after I added "From". My issue was solved and I will use "debug" when I get error.
func EthCall() string {
result, err := client.EthCall(ethrpc.T{From: "0x9f43eec1555cf191b15f1788b0c9ff4e43b7f215", To: "0x41e5560054824ea6b0732e656e3ad64e20e94e45", Data: "0x06fdde03"}, "latest")
if err != nil {
panic(err)
}
return result
}
from ethrpc.
Guys getting this error while calling a getter method of smart contract ... "Error : invalid argument 0: hex string has length 0, want 40 for common.Address"
I have already checked that from has value in it.. "0x79c2d9e000dcf67cae1a94ff6e4a61be256f95a9"
and by the way getAllMediaIds() method does not need any parameter
But this works perfectly fine with testrpc
from ethrpc.
Related Issues (20)
- How to decode input data in transaction HOT 2
- Add time out for http client HOT 2
- Handling locked accounts HOT 2
- how to call contract HOT 1
- How to use the "eth_sendRawTransaction" method? HOT 2
- How to use ABI.josn file to call a deployed contract ?
- TransactionReceipt.Status throws with Parity HOT 2
- EthGetBlockByHash always return response HOT 6
- Add an interface for `EthRPC` methods HOT 1
- getbalabce The value returned is not correct HOT 3
- EthGetBlockByHash The value returned is not correct HOT 2
- Support IPC HOT 3
- I would like you to write a simple documentation showing how to use it.. HOT 3
- On Active Release of TCP Connections
- EthGetBlockByNumber has first parameter of type INT HOT 2
- export client field for EthRPC HOT 2
- when i using npx hardhat node whatever rpc request i send it returns invalid request
- TransactionReceipt Status bool HOT 1
- Error -32000 (authentication needed: password or unlock) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethrpc.