Skip to content

[General] How can I run a sequence of transactions one by one using the sandbox vm in api server? #524

Discussion options

You must be logged in to vote

Hey! Our eth_call is written in a way that it uses a specially written bootloader (since eth_call should not require validation of txs). This function is invoked when you use eth_call: https://github.com/matter-labs/era-contracts/blob/452a54f6724347b7e517be1a3d948299ab827d8c/system-contracts/bootloader/bootloader.yul#L1967.

Note, that it completely halts the execution of the bootloader once the tx is processed: https://github.com/matter-labs/era-contracts/blob/452a54f6724347b7e517be1a3d948299ab827d8c/system-contracts/bootloader/bootloader.yul#L2032, i.e. there can not be multiple eth_calls in such model, yes.

I would suggest to either use standard multicall which is a standard trick to do…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@iwindfly
Comment options

Comment options

You must be logged in to vote
1 reply
@iwindfly
Comment options

Answer selected by iwindfly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
3 participants