Initializes the BaseClient
with a session ID and access denied handler.
The session ID.
Optional
onAccessDenied: (() => void | Promise<void>)A callback function when access is denied.
Protected
clientStatic
Readonly
getCreates a new instance of the API client.
Optional
session: null | stringThe session ID, which can be null or undefined.
Optional
onAccessDenied: (() => void | Promise<void>)Callback function to execute when access is denied.
The API client.
Static
getStatic
getStatic
isOptional
network?: InfuraNetwork
The
BaseClient
class provides methods for interacting with API clients, handling sessions, and managing users.