sendMessage method
Send messages in existing discussion @param{Keychain} keychain used to send transaction to BC @param{ApiService} API with blockchain @param{String} Smart contract's address @param{String} Content of the message (no encrypt) @param{String} Address of the member who want to send message @param{String} Service name in the current keychain (= sender) @param{KeyPair} Keypair of the sender
Implementation
Future<
({
archethic.Address transactionAddress,
archethic.KeyPair previousKeyPair
})> sendMessage({
required archethic.Keychain keychain,
required archethic.ApiService apiService,
required String discussionSCAddress,
required String messageContent,
required String senderAddress,
required String senderServiceName,
required archethic.KeyPair senderKeyPair,
}) async {
return send(
keychain: keychain,
apiService: apiService,
discussionSCAddress: discussionSCAddress,
messageContent: messageContent,
senderAddress: senderAddress,
senderServiceName: senderServiceName,
senderKeyPair: senderKeyPair,
);
}