azeth_cancel_agreement
Cancel an active payment agreement to stop recurring subscriptions or data feeds. The cancellation is immediate with no refund of already-paid amounts.
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. |