write_contract
Execute state-changing functions on a TRON smart contract using a configured wallet. Provide contract address, function name, and optional arguments.
Instructions
Execute state-changing functions on a smart contract. Requires configured wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional contract ABI array. If not provided, will fetch from chain. Use for contracts with incomplete on-chain ABI. | |
| args | No | Function arguments (supports arrays and objects for complex types) | |
| value | No | TRX value to send (in Sun) | |
| network | No | Network name. Defaults to mainnet. | |
| functionName | Yes | Function name to call | |
| contractAddress | Yes | The contract address |