@fruitsjs/core
Version:
Principal package with functions and models for building Fruits Eco-Blockchain applications.
26 lines (25 loc) • 1.09 kB
text/typescript
/**
* The argument object for [[MessageApi.sendMessage]]
*
* @param message The message as text to be sent
* @param messageIsText Defines whether the message is text or another format (hex or base64) (default: `true`)
* @param feePlanck The fee as Planck value
* @param recipientId The id of the recipient
* @param recipientPublicKey The _optional_ recipients public key in hex format.
* Using this arg allows to activate a recipients account, if not activated yet
* @param senderPublicKey The senders public key for sending an _unsigned_ message
* @param senderPrivateKey The senders private key to _sign_ the message
* @param deadline The _optional_ transactions deadline in minutes until it's being removed from mempool.
* This may happen on low fees. Defaults to 1440 (maximum)
* @module core
*/
export interface SendMessageArgs {
message: string;
messageIsText?: boolean;
feePlanck: string;
recipientId: string;
recipientPublicKey?: string;
senderPublicKey: string;
senderPrivateKey: string;
deadline?: number;
}