Custom
custom()
custom()
Creates a Custom extrinsic builder instance, which provides methods to build transactions using extrinsics passed in by the user to use other library methods.
By using the Custom static, developers can have the flexibility to create a custom extrinsic builder, while keeping other benefits of using Futureverse Transact such as methods like addFuturePass()
, addFeeProxy()
and other helper functions (insert link for the helper functions sections here). 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:
The custom
method allows developers to perform custom transactions using fromExtrinsic
.
fromExtrinsic()
fromExtrinsic()
Sets the base extrinsic to the Custom Builder. It expects one parameter:
extrinsic
: the extrinsic to include in the transaction.
Example:
Last updated