Private
contractEstimates the cost of gas in native token of the current chain Pass in the same parameters as the contract's function.
the estimated price in native currency (ETH, MATIC, etc) of calling this function
Estimate the cost of gas in native token of the current chain
const costOfClaim = await nftDrop?.estimator.gasCostOf("claim", [
"0x...", // receiver
1, // quantity
"0x...", // currency
1, // price per token
[], // proofs
1, // proof max quantity per transaction
]);
Estimates the gas limit of a transaction Pass in the same parameters as the contract's function.
the estimated gas limit of the transaction
Estimates the gas limit of a transaction
const gasLimitOfClaim = await nftDrop?.estimator.gasLimitOf("claim", [
"0x...", // receiver
1, // quantity
"0x...", // currency
1, // price per token
[], // proofs
1, // proof max quantity per transaction
]);
Generated using TypeDoc
Estimates the gas cost of Contract calls