batch()
BatchBuilder
class instance, which provides methods to build transactions for utility pallet batch 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.batch
method provides developers with capabilities to addExtrinsic
, addExtrinsics
, batch
, batchAll
, batchAllWithExtrinsics
, and batchWithExtrinsics
.
addExtrinsic()
batch()
or batchAll()
call. It expects one parameter:
extrinsic
: the extrinsic to add to the batch.addExtrinsics()
batch()
or batchAll()
call. It expects one parameter:
extrinsics
: an array of extrinsics to add to the batch.batch()
Ok
in all circumstances. It will batch all extrinsics into a single transaction. It will finalize and succeed regardless of whether any extrinsic in the batch fails.batchAll()
addExtrinsic
). It has no parameters.
batchAllWithExtrinsics()
batchAll()
extrinsic. It expects one parameter:
extrinsics
: an array of extrinsics to include in the single transaction.batchWithExtrinsics()
extrinsics
: an array of extrinsics to include in the single transaction.Ok
in all circumstances. It will batch all extrinsics into a single transaction. It will finalize and succeed regardless of whether any extrinsic in the batch fails.