contractSendTransactionWithEstimate
Invoke a method on a smart contract, send a transaction, and automatically estimate gas using the contract's ABI, address, method name, and arguments. Optional ETH value and network provider can be included.
Instructions
Call a method on a smart contract and send a transaction with automatic gas estimation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | The ABI of the contract as a JSON string | |
contractAddress | Yes | The address of the smart contract | |
method | Yes | The method name to invoke | |
methodArgs | No | An array of arguments to pass to the method | |
provider | No | Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks. | |
value | No | Optional. The amount of ETH to send with the call |