PolymeshTransaction
Last updated
Was this helpful?
Last updated
Was this helpful?
Wrapper class for a Polymesh Transaction
▪ Args: unknown[] | []
▪ Values: unknown[]
‹Values›
↳ PolymeshTransaction
Optional
blockHash• blockHash? : undefined | string
hash of the block where this transaction resides (status: Succeeded
, Failed
)
Optional
blockNumber• blockNumber? : BigNumber
number of the block where this transaction resides (status: Succeeded
, Failed
)
Protected
context• context: Context
Optional
errorstores errors thrown while running the transaction (status: Failed
, Aborted
)
• inputArgs: MapMaybePostTransactionValue‹Args›
arguments for the transaction. Available after the transaction starts running (may be Post Transaction Values from a previous transaction in the queue that haven't resolved yet)
• isCritical: boolean
whether this transaction failing makes the entire transaction queue fail or not
Optional
receipt• receipt? : ISubmittableResult
stores the transaction receipt (if successful)
current status of the transaction
• tag: TxTag
type of transaction represented by this instance (mostly for display purposes)
Optional
txHash• txHash? : undefined | string
transaction hash (status: Running
, Succeeded
, Failed
)
• get args(): Args
arguments for the transaction
Returns: Args
Protected
composeTx▸ composeTx(): SubmittableExtrinsic‹"promise", ISubmittableResult›
Overrides void
Returns: SubmittableExtrinsic‹"promise", ISubmittableResult›
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
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
Protected
getProtocolFees▸ getProtocolFees(): Promise‹BigNumber›
Overrides void
Returns: Promise‹BigNumber›
Protected
ignoresSubsidy▸ ignoresSubsidy(): boolean
Overrides void
Returns: boolean
▸ onStatusChange(listener
: function): function
Subscribe to status changes
Parameters:
▪ listener: function
callback function that will be called whenever the status changes
▸ (transaction
: this): void
Parameters:
transaction
this
Returns: function
unsubscribe function
▸ (): void
▸ run(): Promise‹void›
Run the transaction and update its status
Returns: Promise‹void›
▸ supportsSubsidy(): boolean
Returns: boolean
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
• error? :
Inherited from .
Defined in
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
• status: = TransactionStatus.Idle
Inherited from .
Defined in
Defined in
Inherited from .
Defined in
Defined in
Defined in
▸ getFees(): Promise‹ | null›
Inherited from .
Defined in
Returns: Promise‹ | null›
▸ getPayingAccount(): Promise‹ | null›
Inherited from .
Defined in
Returns: Promise‹ | null›
Defined in
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
Overrides .
Defined in