Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

How to bundle several smart contract invocations into a single tx? #100

Closed
metachris opened this issue Nov 21, 2017 · 2 comments
Closed

Comments

@metachris
Copy link
Contributor

metachris commented Nov 21, 2017

I would love to be able to bundle several smart contract invocations into a single transaction.

If anyone wants to take a stab at this, that would be great! If not, perhaps at some later date I'll find enough time to try taking a look. I think this feature will become an increasingly important thing to do for more complex SC interactions.

Adding this ticket mainly to keep track of any development and references.

@snowypowers
Copy link
Member

I am successful in chaining vm scripts together. At least for minor stuff like retrieving names, symbol, etc. It works in invokescript RPC call so I don't see why not with a real transaction.

You can take a look at https://github.com/CityOfZion/neon-js/blob/081bc4c42422f1eb9f51bf955e93ac28111888c1/src/nep5.js#L14 . Each emitAppCall is basically one invocation.

@localhuman
Copy link
Collaborator

Resolved in #137

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

No branches or pull requests

3 participants