Session Keys
revokeSessions
Function to revoke session keys from the connected Abstract Global Wallet.
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:
- The session configuration object(s) (see parameters).
- The transaction hash(es) returned by createSession.
Parameters
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
The transaction hash of the revocation transaction.
Was this page helpful?