ClientContext
Defined in: sdks/js/agent-sdk/src/core/ClientContext.ts:4
Context emitted for agent lifecycle events and supplied to error handlers.
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”ContentTypes
Section titled “ContentTypes”ContentTypes = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClientContext<
ContentTypes>(__namedParameters):ClientContext<ContentTypes>
Defined in: sdks/js/agent-sdk/src/core/ClientContext.ts:8
Create a context for a client.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”client
Section titled “client”Client<ContentTypes>
The client that emitted the event.
Returns
Section titled “Returns”ClientContext<ContentTypes>
Accessors
Section titled “Accessors”client
Section titled “client”Get Signature
Section titled “Get Signature”get client():
Client<ContentTypes>
Defined in: sdks/js/agent-sdk/src/core/ClientContext.ts:23
Return the wrapped XMTP client.
Returns
Section titled “Returns”Client<ContentTypes>
Methods
Section titled “Methods”getClientAddress()
Section titled “getClientAddress()”getClientAddress():
string|undefined
Defined in: sdks/js/agent-sdk/src/core/ClientContext.ts:18
Return the account identifier used by the client, when available.
Returns
Section titled “Returns”string | undefined

