the Iris release introduced a new (public) API endpoint that allows to perform a
dry-run call like seen on your screen for balances. This endpoint is deactivated by default and if activated it allows to run a maximum amount of 6 000 000 gas. Of course this can also be configured.
Introduced a new HTTP endpoint:
/dry-run . It is part of the
external interface and should be prefered over the existing
debug endpoint. It comes with some protections for the node: all transactions/calls provided are limited to a total amount of
gas that they can consume. There is a new setting in the config where the node operator can change this according to their needs, the default value is 6 000 000 gas. The new endpoint is disabled by default and can be enabled via the new API group
see aeternity/RELEASE-NOTES-6.0.0.md at v6.0.0 · aeternity/aeternity · GitHub
In case of this contract this call seems to be very computational heavy as it will return all balances of the state. It seems like AEStudio right now doesn’t explicitely use the old debug endpoint for
dry-run functionality which allows to execute unlimited amount of gas but the new external endpoint.
So currently the hosted node still allows the usage of the
debug endpoint but this will probably change over time meaning that if someone needs to execute a computational heavy
dry-run it will be required to host your own infrastructure which is allowing that.
- Does AEstudio use the network (and node) configured in the Superhero Wallet extension if it is in use? If this is the case it should be possible to change the network there to connect to a custom node where the external dry-run endpoint allows a higher gas limit
- Ideally one could specify in AEStudio which endpoint to use for the static
dry-run calls (debug vs. external)