Skip to main content
Version: 19.1.0

Transaction limits

Developers may wish to set themselves the different limits of a transaction before broadcasting it, for example to give it a better chance to be included first or to prevent the transaction from being backtracked due to an insufficient storage limit.

Before Taquito version 9, this was not possible, but as wallets start to accept custom limits, this feature has been included in Taquito.

Setting the limits

You can set the limits manually or let Tezos.estimate calculate an estimate of the required fees:

To set the fees manually:

const contract = await Tezos.wallet.at('contractAddress');
const op = await contract.methodsObject.simple_param(5).send({
storageLimit: 800,
gasLimit: 8000,
fee: 800
});

To set the fees using Tezos.estimate:

const contract = await Tezos.wallet.at('contractAddress');
const estimateOp = await contract.methodsObject.simple_param(5).toTransferParams({});
const { gasLimit,
storageLimit,
suggestedFeeMutez } = await Tezos.estimate.transfer(estimateOp);
const op = await contract.methodsObject.simple_param(5).send({
storageLimit: storageLimit,
gasLimit: gasLimit,
fee: suggestedFeeMutez
});

Common error messages

You can find below examples of the error messages you may get from different wallets when the limits are not set properly or the operation runs out of gas:

Wallet support

Test:Temple 4KukaiSpire with NANO SKukai with NANO STemple with NANO SGalleon
ConnectivityOKOKSome connection issue with ledger after user signsSome connection issue with ledger after user signsSome connection issue with ledger after user signsNot pairing with Beacon test Dapp
SigningOKNoOKNoOK??
Set the fee, storage limit and gas limitOnly storageOKOKOKNo??

Provide detailed feedback