Interface MessageApi

The Message API

interface MessageApi {
    sendEncryptedMessage: ((args: SendEncryptedMessageArgs) => Promise<TransactionId | UnsignedTransaction>);
    sendMessage: ((args: SendMessageArgs) => Promise<TransactionId | UnsignedTransaction>);
}

Properties

sendEncryptedMessage: ((args: SendEncryptedMessageArgs) => Promise<TransactionId | UnsignedTransaction>)

Sends an encrypted text message to another account/recipient

Type declaration

sendMessage: ((args: SendMessageArgs) => Promise<TransactionId | UnsignedTransaction>)

Sends a plain text message to another account/recipient

Type declaration