# revoke

```ts
function revoke(client, options): Promise<`0x${string}`>;
```

Defined in: [packages/synapse-core/src/session-key/actions.ts:101](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-core/src/session-key/actions.ts#L101)

Revoke the session key.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `client` | `Client`\<`Transport`, `Chain`, `Account`\> | The client to use. |
| `options` | [`RevokeOptions`](/reference/filoz/synapse-core/session-key/type-aliases/revokeoptions/) | The options to use. |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`` `0x${string}` ``\>

The hash of the revoke transaction.

## Throws

- SimulateContractErrorType if the simulate contract fails.

## Throws

- WriteContractErrorType if the write contract fails.