AgentPay Market
Docs

Use Skills

Revoke Safe spending authorization

Stop future AgentPay payments separately from unlinking your Market account.

Unlinking and revoking are separate

Unlinking in Market removes the account association and its activity display. It does not change your Safe, local Wallet, spending limits or existing orders.

Use this procedure when you want to stop new payments under a Policy. Market does not execute the revocation for you.

Before you start

Find the network, Safe address, AgentPay Spending Module address and Policy ID in your saved authorization record or original authorization transaction. Use the Module that holds that Policy, including an older deployment if you previously upgraded. A Market account address or Provider service ID is not a Policy ID. Never enter your private key or Wallet unlock secret on a website.

Revoke a Policy

  1. Open Safe Wallet, select the correct network and Safe, and connect an owner wallet.
  2. Open New transaction → Transaction Builder. Set the destination to your AgentPay Spending Module address. Use its verified ABI, or paste the minimal ABI below.
  3. Select revokePolicy, enter the exact policyId, and leave the native-token value at zero. Submit this as a regular contract call from the Safe, not directly from the owner wallet and not a delegate call.
  4. Review the destination and Policy ID, obtain the Safe’s required owner approvals and execute the transaction. A signature or queued proposal alone is not a completed revocation.
  5. Wait for a successful chain receipt. Verify the Module emitted PolicyRevoked for your Safe and Policy ID, and read policies(safe, policyId) to confirm revoked = true using the verified contract’s read interface or your chain tools.
Minimal contract ABI for Transaction Builder
[
  {
    "type": "function",
    "name": "revokePolicy",
    "stateMutability": "nonpayable",
    "inputs": [
      {
        "name": "policyId",
        "type": "bytes32"
      }
    ],
    "outputs": []
  }
]

Repeat for every Policy you want to revoke, including active Policies on other Modules or networks. Revoking one Policy does not revoke the others. An already revoked Policy needs no further transaction.

What happens afterwards

The revoked Policy cannot fund new orders. Orders already funded retain their existing delivery, payout and refund rules; revocation does not automatically refund them. A revoked Policy cannot be re-enabled: create a new authorization if you want to resume.

The private Anvil rehearsal is not hosted by Safe Wallet. Use the rehearsal’s local Safe execution tools and verify the same contract state; do not switch a rehearsal transaction to a real network.

See the official Safe Transaction Builder guide for the owner approval interface. Market does not execute this transaction for you.