Skip to content

Getting INSUFFICIENT_BALANCE_FOR_TRANSACTION_FEE #45

Answered by gregnazario
0xaptosj asked this question in Questions
Discussion options

You must be logged in to vote

Yes, exactly. You will get INSUFFICIENT_BALANCE_FOR_TRANSACTION_FEE if your MaxGasAmount * gas price > amount in wallet (and the transfer amount)

You can define it as

options: {
  maxGasAmount: 1000
}
aptos.transaction.build.simple({
      sender: account.accountAddress,
      data: {
        function: "0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12::scripts_v2::swap",
        typeArguments: ["0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC","0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::WETH","0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12::curves::Uncorrelated"],
        functionArguments: 

Replies: 2 comments 7 replies

Comment options

0xaptosj
Mar 8, 2024
Maintainer Author

You must be logged in to vote
3 replies
@AustScar5
Comment options

@gregnazario
Comment options

Answer selected by 0xaptosj
@AustScar5
Comment options

Comment options

You must be logged in to vote
4 replies
@gregnazario
Comment options

@AustScar5
Comment options

@gregnazario
Comment options

@AustScar5
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move Questions related to the Move Language
3 participants