PolymeshTransactionBatch

Wrapper class for a batch of Polymesh Transactions

Type parameters

â–ª Args: unknown[][]

â–ª Values: unknown[]

Hierarchy

Index

Properties

Accessors

Methods

Properties

Optional blockHash

• blockHash? : undefined | string

Inherited from PolymeshTransaction.blockHash

Defined in src/base/PolymeshTransactionBase.ts:47arrow-up-right

hash of the block where this transaction resides (status: Succeeded, Failed)


Optional blockNumber

• blockNumber? : BigNumber

Inherited from PolymeshTransaction.blockNumber

Defined in src/base/PolymeshTransactionBase.ts:52arrow-up-right

number of the block where this transaction resides (status: Succeeded, Failed)


Protected context

• context: Context

Inherited from PolymeshTransaction.context

Defined in src/base/PolymeshTransactionBase.ts:105arrow-up-right


Optional error

• error? : PolymeshError

Inherited from PolymeshTransaction.error

Defined in src/base/PolymeshTransactionBase.ts:32arrow-up-right

stores errors thrown while running the transaction (status: Failed, Aborted)


isCritical

• isCritical: boolean

Inherited from PolymeshTransaction.isCritical

Defined in src/base/PolymeshTransactionBase.ts:57arrow-up-right

whether this transaction failing makes the entire transaction queue fail or not


Optional receipt

• receipt? : ISubmittableResult

Inherited from PolymeshTransaction.receipt

Defined in src/base/PolymeshTransactionBase.ts:37arrow-up-right

stores the transaction receipt (if successful)


status

• status: TransactionStatusarrow-up-right = TransactionStatus.Idle

Inherited from PolymeshTransaction.status

Defined in src/base/PolymeshTransactionBase.ts:27arrow-up-right

current status of the transaction


Optional txHash

• txHash? : undefined | string

Inherited from PolymeshTransaction.txHash

Defined in src/base/PolymeshTransactionBase.ts:42arrow-up-right

transaction hash (status: Running, Succeeded, Failed)

Accessors

transactions

• get transactions(): MapTxData‹Args›

Defined in src/base/PolymeshTransactionBatch.ts:71arrow-up-right

transactions in the batch with their respective arguments

Returns: MapTxData‹Args›

Methods

getFees

▸ getFees(): Promise‹Feesarrow-up-right | null›

Inherited from PolymeshTransaction.getFees

Defined in src/base/PolymeshTransactionBase.ts:337arrow-up-right

Get all (protocol and gas) fees associated with this transaction. Returns null if the transaction is not ready yet (this can happen if it depends on the execution of a previous transaction in the queue)

note this value might change if the transaction is run at a later time. This can be due to a governance vote

Returns: Promise‹Feesarrow-up-right | null›


getPayingAccount

▸ getPayingAccount(): Promise‹PayingAccountarrow-up-right | null›

Inherited from PolymeshTransaction.getPayingAccount

Defined in src/base/PolymeshTransactionBase.ts:295arrow-up-right

Retrieve the Account that would pay fees for the transaction if it was run at this moment, as well as the total amount that can be charged to it (allowance). A null allowance means that there is no limit to that amount

A null return value signifies that the caller Account would pay the fees

note this value might change if, before running the transaction, the caller Account enters (or leaves) a subsidizer relationship

Returns: Promise‹PayingAccountarrow-up-right | null›


onStatusChange

â–¸ onStatusChange(listener: function): function

Inherited from PolymeshTransaction.onStatusChange

Defined in src/base/PolymeshTransactionBase.ts:278arrow-up-right

Subscribe to status changes

Parameters:

â–ª listener: function

callback function that will be called whenever the status changes

â–¸ (transaction: this): void

Parameters:

Name
Type

transaction

this

Returns: function

unsubscribe function

â–¸ (): void


run

▸ run(): Promise‹void›

Inherited from PolymeshTransaction.run

Defined in src/base/PolymeshTransactionBase.ts:130arrow-up-right

Run the transaction and update its status

Returns: Promise‹void›


supportsSubsidy

â–¸ supportsSubsidy(): boolean

Overrides PolymeshTransactionBase.supportsSubsidy

Defined in src/base/PolymeshTransactionBatch.ts:113arrow-up-right

note batches can't be subsidized

Returns: boolean

Last updated

Was this helpful?