crowdsale()
Crowdsale
builder class instance, which provides methods to build transactions for the Crowdsale Pallet on The Root Network. It expects four 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.assetId
: the Sale ID to target.crowdsale
method provides developers with capabilities to claim
, participate
and reddem
vouchers extrinsic.
claim()
participate()
amount
: the amount to participate with. It can be a number, bigint or string.redeem()
quantity
: the quantity to redeem.