write_contract
Call a smart contract's state-changing function to write data on any EVM network, signing with your private key.
Instructions
Write data to a smart contract by calling a state-changing function
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | The ABI of the smart contract function, as a JSON array | |
| args | Yes | The arguments to pass to the function | |
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| privateKey | Yes | Private key of the sending account. Used only for transaction signing. | |
| functionName | Yes | The name of the function to call on the contract | |
| contractAddress | Yes | The address of the smart contract to interact with |