azeth_cancel_agreement
Cancel an active payment agreement to stop recurring payments or data feeds. Only the payer can cancel, with immediate effect and no refunds.
Instructions
Cancel an active payment agreement. Only the payer (agreement creator) can cancel.
Use this when: You want to stop a recurring payment subscription or data feed. Cancellation is immediate — no timelock, no penalty. Already-paid amounts are not refunded.
Returns: Transaction hash and final agreement state (total paid, execution count).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| agreementId | Yes | The agreement ID to cancel. | |
| smartAccount | No | YOUR smart account that owns the agreement: address or "#N". Only your own accounts can be cancelled. Defaults to first smart account. |