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

ask for helf #27

Closed
zouqingfeng opened this issue Apr 23, 2021 · 3 comments
Closed

ask for helf #27

zouqingfeng opened this issue Apr 23, 2021 · 3 comments

Comments

@zouqingfeng
Copy link

Can you tell me the process of calling ABIV2 contract function on the chain of blocks ?

@esaulpaugh
Copy link
Owner

function arguments are encoded into calldata. that's what headlong does.

Other tools can encode and sign the transaction that contains the calldata. then the transaction has to be broadcast to the network by an ethereum node.

web3j can be used to do the transaction encoding and broadcasting

@zouqingfeng
Copy link
Author

so , I can use web3j to call on ethereum node and then get headlong to call funtion. Finally , do the transaction by web3j . That right ?

@esaulpaugh
Copy link
Owner

broadcasting through an ethereum node is the final step. encoding the function call with headlong should be the first step.

web3j docs say they have "Support for Alchemy and Infura, so you don't have to run an Ethereum client yourself"

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

2 participants