Skip to main content
The AbstractClient includes a revokeSessions method that can be used to revoke session keys from the connected Abstract Global Wallet. This allows you to invalidate existing session keys, preventing them from being used for future transactions.

Usage

Revoke session(s) by providing either:

Parameters

SessionConfig | Hash | (SessionConfig | Hash)[]
required
The session(s) to revoke. Can be provided in three formats:
  • A single SessionConfig object
  • A single session key creation transaction hash from createSession.
  • An array of SessionConfig objects and/or session key creation transaction hashes.
See createSession for more information on the SessionConfig object.

Returns

Hash
The transaction hash of the revocation transaction.