- Preparing search index...
 
- The search index is not available
 
Stacks.js 
 
Function estimateContractFunctionCall
 
- estimateContractFunctionCall(transaction: StacksTransaction, network?: "mainnet" | "testnet" | StacksNetwork): Promise<bigint>
 
- 
Parameters
- 
 
- 
Optional network: "mainnet" | "testnet" | StacksNetwork
 
 
Returns Promise<bigint>
 
 
 
 
Deprecated
Use the new estimateTransaction function insterad.
Estimate the total transaction fee in microstacks for a contract function call
Returns
a promise that resolves to number of microstacks per byte