contract_call
Submit a smart contract write call signed via AWS KMS. Supports optional idempotency key to prevent re-broadcasting.
Instructions
Submit a smart-contract write call from a KMS signer. 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 |
|---|---|---|---|
| args | Yes | Function arguments (must match ABI) | |
| chain | Yes | EVM chain | |
| value | No | Optional native-token value in wei (decimal string) | |
| signer_id | Yes | The KMS signer ID | |
| project_id | Yes | The project ID | |
| abi_fragment | Yes | ABI fragment containing the function definition | |
| function_name | Yes | Function name to invoke | |
| idempotency_key | No | Optional idempotency key — same key returns same call_id without re-broadcasting | |
| contract_address | Yes | 0x-prefixed contract address |