> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://accounts.tempo.xyz/api/mcp` to find what you need.

# `wallet_revokeAccessKey`

Revokes a previously authorized access key.

Access keys are scoped to a chain. Pass `chainId` to revoke a key on a specific chain; otherwise the provider's active chain is used. The chain must be one of the chains the provider was configured with — an unknown chain throws an `UnsupportedChainId` error. A custom adapter that can only reach its wallet on the active chain rejects any other `chainId` with the same error; switch chains with [`wallet_switchEthereumChain`](/docs/rpc/wallet_switchEthereumChain) first.

## Request

```ts
type Request = {
  method: 'wallet_revokeAccessKey'
  params: [{
    /** Address of the account. */
    address: Address
    /** Address of the access key to revoke. */
    accessKeyAddress: Address
    /**
     * Chain ID the access key is scoped to. Defaults to the active chain.
     * Hex-encoded (`0x...`) on the wire, decoded to `bigint`.
     */
    chainId?: bigint
    /**
     * Fee sponsorship for the revocation transaction. `true` uses the
     * provider or remote wallet's configured sponsor, `false` opts out,
     * and a URL requests sponsorship from that endpoint.
     */
    feePayer?: boolean | string
  }]
}
```

## Response

```ts
type Response = undefined
```

## Example

```ts
await provider.request({
  method: 'wallet_revokeAccessKey',
  params: [{
    address: '0x...',
    accessKeyAddress: '0x...',
    chainId: '0x1079',
    feePayer: 'https://example.com/fee-payer',
  }],
})
```
