Write contract
fuse_write_contractSigns and submits a state-mutating contract call from the server's signer. ABI is auto-fetched from the Fuse explorer when not supplied. Returns the transaction hash.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"functionName": "<functionName>"
},
"name": "fuse_write_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional ABI override. If omitted, the verified ABI is fetched from the Fuse explorer. | |
| args | No | Positional arguments (defaults to []). | |
| address | Yes | Contract address. | |
| valueWei | No | Native FUSE value to send with the call, in wei (for payable functions). | |
| functionName | Yes | State-mutating function to call. |