Test the usage of ethclient in go.
sc0vu / go-eth Goto Github PK
View Code? Open in Web Editor NEWTest the usage of ethreum client and other crypto functions you'll need when develop dapp in go .
License: MIT License
Test the usage of ethreum client and other crypto functions you'll need when develop dapp in go .
License: MIT License
running go-eth/rawTransaction.go error:
rlp: input string too short for common.Address, decoding into (types.Transaction)(types.txdata).Recipient
go: found github.com/sc0Vu/go-eth in github.com/sc0Vu/go-eth v0.0.0-20210522094925-e4ee83c41d92
go: main imports
github.com/sc0Vu/go-eth: github.com/sc0Vu/[email protected]: parsing go.mod:
module declares its path as: go-eth
but was required as: github.com/sc0Vu/go-eth
Hi please help! Thanks
在执行SendTransaction方法的时候,报错如下
--- FAIL: TestClient_SendTransaction (0.00s)
panic: authentication needed: password or unlock [recovered]
panic: authentication needed: password or unlock
然后我去官网查了一下
这个解锁账户的方法,然后改了代码,执行personal_unlockAccount操作
var unLockResult bool
err:=cli.rpcClient.CallContext(ctx,&unLockResult,"personal_unlockAccount",account,password,600)
执行后 unLockResult为false,报错如下:
panic: personal_unlockAccount Error [recovered]
panic: personal_unlockAccount Error
请教一下,如何解决这个交易身份验证的问题?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.