Client

class Client(address: String, libXMTPClient: FfiXmtpClient, val dbPath: String, val installationId: String, val inboxId: String, val environment: XMTPEnvironment)

Constructors

Link copied to clipboard
constructor(address: String, libXMTPClient: FfiXmtpClient, dbPath: String, installationId: String, inboxId: String, environment: XMTPEnvironment)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun addAccount(newAccount: SigningKey, allowReassignInboxId: Boolean = false)
Link copied to clipboard
suspend fun canMessage(addresses: List<String>): Map<String, Boolean>
Link copied to clipboard
Link copied to clipboard
suspend fun ffiAddWallet(addressToAdd: String): SignatureRequest
Link copied to clipboard
suspend fun ffiApplySignatureRequest(signatureRequest: SignatureRequest)
Link copied to clipboard
suspend fun ffiRegisterIdentity(signatureRequest: SignatureRequest)
Link copied to clipboard
Link copied to clipboard
suspend fun ffiRevokeWallet(addressToRemove: String): SignatureRequest
Link copied to clipboard
Link copied to clipboard
suspend fun inboxIdFromAddress(address: String): String?
Link copied to clipboard
suspend fun inboxState(refreshFromNetwork: Boolean): InboxState
Link copied to clipboard
suspend fun inboxStatesForInboxIds(refreshFromNetwork: Boolean, inboxIds: List<String>): List<InboxState>
Link copied to clipboard
Link copied to clipboard
suspend fun removeAccount(recoverAccount: SigningKey, addressToRemove: String)
Link copied to clipboard
suspend fun revokeAllOtherInstallations(signingKey: SigningKey)
Link copied to clipboard
suspend fun revokeInstallations(signingKey: SigningKey, installationIds: List<String>)
Link copied to clipboard
Link copied to clipboard
fun verifySignature(message: String, signature: ByteArray): Boolean
Link copied to clipboard
fun verifySignatureWithInstallationId(message: String, signature: ByteArray, installationId: String): Boolean

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard