Static codecThe signer of the new account to be added.
A boolean specifying if the inboxId should be reassigned or not.
Retrieves metadata from an existing encrypted archive.
The file system path of the archive.
The encryption key used to decrypt the archive metadata.
A Promise that resolves to an ArchiveMetadata object.
Will reject if the archive is invalid or decryption fails.
Determines whether the current user can send messages to the specified peers.
This method checks if the specified peers are using clients that are on the network.
The identities of the peers to check for messaging eligibility.
A Promise resolving to a hash of identifiers and booleans if they can message on the network.
Creates a new archive at the specified path with encryption.
The file system path where the archive should be created.
A binary encryption key (must match key used for decryption).
Optional opts: ArchiveOptionsOptional archive configuration settings.
A Promise that resolves when the archive is successfully created.
Will reject if the operation fails or parameters are invalid.
Decrypts an encrypted local attachment.
This asynchronous method takes an encrypted local attachment and decrypts it.
The encrypted local attachment to be decrypted.
A Promise that resolves to the decrypted local attachment.
Throws an error if the attachment is not a local file URI (must start with "file://").
Encrypts a local attachment for secure transmission.
This asynchronous method takes a file, checks if it's a local file URI, and encrypts the attachment for secure transmission.
The local attachment to be encrypted.
A Promise that resolves to the encrypted local attachment.
Throws an error if the attachment is not a local file URI (must start with "file://").
This function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use create() instead.
Adds the Ecdsa signature to the identity to be registered
This function is delicate and should be used with caution. Should only be used if trying to manage the create and register flow independently otherwise use addWallet() instead.
Gets the signature text for the add identity action
This function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use create() instead.
Adds the SCW signature to the identity to be registered
Optional blockNumber: numberThis function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use removeWallet() instead.
Gets the signature text for the removed identity action
This function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use revokeAllOtherInstallations() instead.
Gets the signature text for the revoke installations action
This function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use revokeInstallations() instead.
Gets the signature text for the revoke installations action
Find the InboxId associated with this identity
The identity of the peer to check for inboxId.
A Promise resolving to the InboxId.
Imports an existing archive from disk using the provided encryption key.
The file system path of the archive to import.
The encryption key that was used to secure the archive.
A Promise that resolves when the archive has been successfully imported.
Will reject if the archive cannot be found, is invalid, or the decryption fails.
Make a request for a list of inbox states.
If you want to refresh the current state the inbox from the network or not.
The inboxIds to get the associate inbox states for.
A Promise resolving to a list of InboxState.
Remove this account from the current inboxId.
The signer object used for authenticate the removal.
The identity of the signer you'd like to remove from the account.
Revoke all other installations but the current one.
The signer object used for authenticate the revoke.
Revoke a list of installations.
The signer object used for authenticate the revoke.
A list of installationIds to revoke access to the inboxId.
Verify the signature was signed with this clients installation key.
The message that was signed.
The signature.
A Promise resolving to a boolean if the signature verified or not.
Static activateActivates persistent logging for libXMTP with specified configuration.
The minimum log level to record (e.g., debug, info, warn, error)
How often the log files will rotate into a new file
Maximum number of log files to keep before rotation
Promise that resolves when logging is activated
Static buildBuilds a instance of the Client class using the provided identity and chainId if SCW.
The identity of the account to build
Optional inboxId: stringA Promise that resolves to a new Client instance.
See XMTP Docs for more information.
Static canDetermines whether the current user can send messages to the specified peers.
This method checks if the specified peers are using clients that are on the network.
Environment to see if the identity is on the network for
The identities of the peers to check for messaging eligibility.
A Promise resolving to a hash of identifiers and booleans if they can message on the network.
Static clearXMTPLogsStatic createCreates a new instance of the Client class using the provided signer.
The signer object used for authentication and message signing.
A Promise that resolves to a new Client instance.
See XMTP Docs for more information.
Static createCreates a new instance of the XMTP Client with a randomly generated address.
A Promise that resolves to a new Client instance with a random address.
Static deactivateStatic dropStatic exportStatic ffiThis function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use create() instead.
Adds the Ecdsa signature to the identity to be registered
Static ffiThis function is delicate and should be used with caution. Should only be used if trying to manage the signature flow independently otherwise use create() instead.
Adds the SCW signature to the identity to be registered
Optional blockNumber: numberStatic ffi⚠️ This function is delicate and should be used with caution.
Should only be used if trying to manage the signature flow independently otherwise use revokeInstallations() instead
Applies the signature.
Environment to apply the signature request
Static ffi⚠️ This function is delicate and should be used with caution.
Creating an FfiClient without signing or registering will create a broken experience use create() instead
Creates a new instance of the Client class using the provided identity.
The identity of the account to create
A Promise that resolves to a new Client instance.
Static ffi⚠️ This function is delicate and should be used with caution.
Should only be used if trying to manage the signature flow independently otherwise use revokeInstallations() instead
Revoke a list of installations. Revoking a installation will cause that installation to lose access to the inbox.
Environment to revoke installation from.
Static getStatic method to determine the inboxId for the identity.
The identity of the peer to check for messaging eligibility.
Environment to get the inboxId from
Static getXMTPLogStatic inboxDetermines whether the current user can send messages to the specified peers.
This method checks if the specified peers are using clients that are on the network.
Environment to see if the identity is on the network for
The inboxIds to get the associated inbox states for.
A Promise resolving to a list of inbox states.
Static isStatic readXMTPLogStatic registerStatic revokeRevoke a list of installations. Revoking a installation will cause that installation to lose access to the inbox.
Environment to revoke installation from.
The signer of the recovery account to sign the revocation.
Add this account to the current inboxId. Adding a identity already associated with an inboxId will cause the identity to lose access to that inbox.