Remark

remark()

Creates a Remark builder class instance, which provides methods to build transactions for system pallet remark extrinsics. It expects three parameters:

  • api: the trnApi to use for interaction.

  • signer: the signer to use for signing transactions.

  • walletAddress: the wallet address to use for interaction. Note: It should be the EOA address for the signer, not the FuturePass address.

Example:

const remarkBuilder = await TransactionBuilder.remark(api, signer, walletAddress);

The remark method allows developers to send a message in a remark extrinsic.

message()

Sends a message in a remark extrinsic. It expects one parameter.

  • message: the message to include in the remark.

Example:

const remarkBuilder = await TransactionBuilder.remark(api, signer, walletAddress).message(message);

Last updated

© 2023 -> ♾️