write_contract
Sign and broadcast a call to a state-changing contract method. Invoke contract functions by providing address, ABI, method, arguments, and optional native value.
Instructions
Sign and broadcast a call to a state-changing contract method. Provide address, ABI fragments, method, args, and optional native value. STATE-CHANGING.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Human-readable ABI fragments. | |
| args | No | Positional arguments. | |
| value | No | Optional native value to send with the call (native units). | |
| method | Yes | Method name to invoke. | |
| address | Yes | Contract address. | |
| network | No | Target network. One of: ethereum, base, arbitrum, optimism, polygon, sepolia, base-sepolia, arbitrum-sepolia, optimism-sepolia, polygon-amoy. Defaults to the server's configured default network. |