Gas error about AEX9 using the balances method

as already discussed private chat here an explanation for everybody facing that problem

first of all it is about the node configuration itself to enable the dry-run endpoints. there are two possibilites:

  1. enable the new public (and protected) dry-run endpoint in allow a higher amount of gas to be consumed (can be configured)

  2. enable the debug endpoints and make the SDK using the debug endpoint instead of the protected public dry-run endpoint (currently not sure if this is possible with Go SDK, but for the Javascript SDK there is a workaround to do that)

    • this is NOT recommended as it is an internal endpoint that allows unlimited gas consumption

here an example with the protected endpoint enabled using a custom (increased) gas limit:
image

the default gas limit of that protected dry-run endpoint is 6 000 000 gas

2 Likes