Skip to content

revokeSync

revokeSync(client, options): Promise<OutputType>

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

Revoke session key permissions and wait for confirmation.

ParameterTypeDescription
clientClient<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?: SessionKeyPermissions[]; }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) => voidCallback function called with the transaction hash before waiting for the receipt.
options.origin?stringThe origin of the revoke operation. Defaults to ‘synapse’.
options.permissions?SessionKeyPermissions[]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