@gas.estimate
Estimate the gas required for a contract call.
Returns: number
Syntax
Section titled “Syntax”@gas.estimate(address signature ...params)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
address |
address |
Target contract address |
signature |
write-abi |
Function signature (e.g. “transfer(address,uint256)”) |
[...params] |
any |
Arguments matching the signature types |
Examples
Section titled “Examples”# TODO: add examples