midl_write_contract
Execute a state-changing function on a smart contract using the MIDL intention flow. Supports payable functions with value parameter in wei.
Instructions
Execute a state-changing function on a smart contract via MIDL intention flow. For payable functions, include value parameter (in wei).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Contract address | |
| abi | Yes | Contract ABI (JSON array) | |
| functionName | Yes | Function name to call | |
| args | No | Function arguments | |
| value | No | BTC value to send (in wei) for payable functions |