Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send transaction via Etherscan #21

Closed
AndreMiras opened this issue Jun 18, 2017 · 2 comments
Closed

Send transaction via Etherscan #21

AndreMiras opened this issue Jun 18, 2017 · 2 comments

Comments

@AndreMiras
Copy link
Owner

AndreMiras commented Jun 18, 2017

Since we currently can't connect to other nodes using pydevp2p (refs #5), we could publish the (locally signed) transaction to Etherscan.

AndreMiras added a commit that referenced this issue Jun 18, 2017
AndreMiras added a commit that referenced this issue Jun 18, 2017
AndreMiras added a commit that referenced this issue Jun 18, 2017
AndreMiras added a commit that referenced this issue Jun 21, 2017
AndreMiras added a commit that referenced this issue Jun 21, 2017
AndreMiras added a commit that referenced this issue Jun 21, 2017
@AndreMiras
Copy link
Owner Author

Almost done, I think we're just missing the nonce calculation.
And then a lot of error management and UI polishing :)
And by the way the etherscan API (eth_sendRawTransaction) for transaction broadcasting is not very talkative. On wrong nonce this is what I got:

{u'status': u'0', u'message': u'NOTOK', u'result': u'Error!'}

But sending that same transaction hex on https://etherscan.io/pushTx I got this:

{"jsonrpc":"2.0","error":{"code":-32010,"message":"Transaction nonce is too low. Try incrementing the nonce.","data":null},"id":1}

@AndreMiras
Copy link
Owner Author

Fixed in recent commit. Will do the polishing in dedicated tickets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant