0

I'm creating gnosis transactions via my own interface using the safe-transaction-service createTransaction api. From my understanding, not providing a safeTxGas or any gas parameters makes gnosis automatically estimate the gas and the safe transaction sets the gas limit and such. However, this has resulted in countless failed transactions and inaccurate gas estimations.

What is the accurate way that the Gnosis Safe UI and other tools use to properly estimate transactions. Also, my transactions are Batched multisend transactions if that makes a difference.

1 Answer 1

0

Failed transaction can have many reasons. More details on how safeTxGas behaves can be found in the docs on the safe-contract repo.

If you share a transaction hash of a failed transaction it might be possible to provide more detailed feedback.

5
  • The failed transaction is "out of gas", and could be fixed by manually increasing gas prices/limits on the Gnosis transaction itself. When I generate transactions via the safe-transaction-api that the estimation is incorrect, leading to a poor UI where users have to manually increase the gas. Is this cause I set safeTxGas to 0? Not really sure
    – jayc
    Jan 5, 2022 at 10:00
  • etherscan.io/tx/…
    – jayc
    Jan 5, 2022 at 10:00
  • How do you estimate the transaction with the Safe transaction api and what estimate did it return? If you want to estimate the transaction completely yourself without a service, take a look at: github.com/gnosis/safe-core-sdk/blob/…
    – Richard
    Jan 5, 2022 at 10:36
  • The only thing I do is not provide the gas parameters and expect the safe transaction service to fill it in with createTransaction. Is this the correct way to do it?
    – jayc
    Jan 7, 2022 at 5:56
  • No, the Safe transaction service does not perform any estimation. There is a api/v1/safes/<safe_address>/multisig-transactions/estimations endpoint, where estimations can be retrieved
    – Richard
    Jan 7, 2022 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.