Skip to content

revokeSync

revokeSync(client, options): Promise<OutputType>

Defined in: packages/synapse-core/src/session-key/revoke.ts:82

Revoke session key permissions and wait for confirmation.

Parameter Type Description
client Client<Transport, Chain, Account> The client to use to revoke session key permissions.
options { address: `0x${string}`; contractAddress?: `0x${string}`; onHash?: (hash) => void; origin?: string; permissions?: Permission[]; } revokeSync.OptionsType
options.address `0x${string}` Session key address.
options.contractAddress? `0x${string}` Session key registry contract address. If not provided, defaults to the chain contract address.
options.onHash? (hash) => void Callback function called with the transaction hash before waiting for the receipt.
options.origin? string The origin of the revoke operation. Defaults to ‘synapse’.
options.permissions? Permission[] The permissions to revoke from the session key. Defaults to all permissions.

Promise<OutputType>

The transaction receipt and extracted event revokeSync.OutputType

Errors revokeSync.ErrorType