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

Implementing push, same as cleos push action #2

Open
kination opened this issue Oct 16, 2018 · 4 comments
Open

Implementing push, same as cleos push action #2

kination opened this issue Oct 16, 2018 · 4 comments

Comments

@kination
Copy link

Hello
I'm currenlty following the EOS tutorial, and trying to send event from android application same as cleos push action ... . I just looked on eos-chain-action, but couldn't found detail implementation about this.

Could you give me a guide about this? Or I'm also looking on eosreach project, so it is okay to let me know the file name that includes push handling if it has been implemented here.

Thanks.

@samkirton
Copy link
Member

Hi mate,
This class uses the nodeos api to push the transactions:
https://github.com/memtrip/eos-jvm/blob/master/eos-chain-actions/src/main/kotlin/com/memtrip/eos/chain/actions/transaction/ChainTransaction.kt

The annotation preprocessor from the eos-abi-writer module is used to generate boiler plate code for the packed transaction and abi bytes. I would recommend looking at the eos-chain-action integration tests and building your actions in a similar way, the ChainTransaction abstract class handles the signature signing and packs the transaction bytes for you.

Integration tests:
https://github.com/memtrip/eos-jvm/tree/master/eos-chain-actions/src/test/kotlin/com/memtrip/eos/chain/actions/transaction

@samkirton
Copy link
Member

I will write a step by step guide also, but I hope the above helps for now

@kination
Copy link
Author

@samkirton thanks! I'll look on it.

@marinrusu1997
Copy link

@samkirton Can you please post here a little example of how to send transaction to a custom contract with some descriptions? I can't figure out how to do it, even after taking a look at library and your app

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

3 participants