> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# requestRevoke

> Request the user's approval to revoke a Spend Permission

Defined in the [Coinbase Wallet SDK](https://github.com/base/account-sdk)

> [!NOTE]
>
> Prompts the user to approve revoking the specified spend permission. Requires
> user interaction via their Coinbase Wallet UI.

## Parameters

**permission** `SpendPermission` *required*

The spend permission to revoke. This should be a SpendPermission object returned from [`requestSpendPermission`](https://docs.cdp.coinbase.com/coinbase-wallet/reference/spend-permission-utilities/requestSpendPermission) or fetched via [`fetchPermissions`](https://docs.cdp.coinbase.com/coinbase-wallet/reference/spend-permission-utilities/fetchPermissions).

**SpendPermission Properties**

**permissionHash** `string`

Deterministic EIP-712 hash of the permission.

**signature** `string`

Signature for the EIP-712 payload.

**chainId** `number`

Target chain ID.

**permission** `object`

Underlying permission fields.

**Permission Fields**

**account** `address`

**spender** `address`

**token** `address`

**allowance** `bigint`

**period** `number`

Duration in seconds.

**start** `number`

Unix timestamp (seconds).

**end** `number`

Unix timestamp (seconds).

**salt** `string`

**extraData** `string`

## Returns

**hash** `0x$\{string\}`

Transaction hash of the revoke operation.

```typescript User-initiated revoke lines wrap expandable theme={null}
import { requestRevoke } from "@base-org/account/spend-permission";

try {
  const hash = await requestRevoke(permission);
  console.log("Revoke succeeded", hash);
} catch (err) {
  console.warn("Revoke was rejected or failed", err);
}
```

## Error Handling

Always wrap the call in a try-catch block to handle these errors gracefully.
