contract_call
Submit a smart-contract write call from a KMS wallet: viem encodes, AWS KMS signs, then broadcasts to Base mainnet or sepolia. Optional idempotency key prevents duplicate broadcasts.
Instructions
Submit a smart-contract write call from a KMS wallet. The gateway encodes via viem, signs the digest via AWS KMS, and broadcasts. Idempotent on optional idempotency_key. Cost: chain gas at-cost + $0.000005 KMS sign fee per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The project ID | |
| wallet_id | Yes | The KMS contract wallet ID | |
| chain | Yes | EVM chain | |
| contract_address | Yes | 0x-prefixed contract address | |
| abi_fragment | Yes | ABI fragment containing the function definition | |
| function_name | Yes | Function name to invoke | |
| args | Yes | Function arguments (must match ABI) | |
| value | No | Optional native-token value in wei (decimal string) | |
| idempotency_key | No | Optional idempotency key — same key returns same call_id without re-broadcasting |