Git Product home page Git Product logo

go-eth's Introduction

go-eth

Test the usage of ethclient in go.

go-eth's People

Contributors

sc0vu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-eth's Issues

problem about running rawTransaction

running go-eth/rawTransaction.go error:
rlp: input string too short for common.Address, decoding into (types.Transaction)(types.txdata).Recipient

Module declared as and required as are different!

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执行报错

在执行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

请教一下,如何解决这个交易身份验证的问题?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.