Class: PolymeshTransactionBase<ReturnValue, TransformedReturnValue>
base/PolymeshTransactionBase.PolymeshTransactionBase
Wrapper class for a Polymesh Transaction
Type parameters
Name | Type |
---|---|
ReturnValue | void |
TransformedReturnValue | ReturnValue |
Hierarchy
-
PolymeshTransactionBase
Properties
blockHash
• Optional
blockHash: string
hash of the block where this transaction resides (status: Succeeded
, Failed
)
Defined in
base/PolymeshTransactionBase.ts:106
blockNumber
• Optional
blockNumber: BigNumber
number of the block where this transaction resides (status: Succeeded
, Failed
)
Defined in
base/PolymeshTransactionBase.ts:111
error
• Optional
error: PolymeshError
stores errors thrown while running the transaction (status: Failed
, Aborted
)
Defined in
base/PolymeshTransactionBase.ts:86
multiSig
• multiSig: null
| MultiSig
This will be set if the signingAddress is a MultiSig signer, otherwise null
When set it indicates the transaction will be wrapped as a proposal for the MultiSig,
meaning .runAsProposal
should be used instead of .run
Defined in
base/PolymeshTransactionBase.ts:119
receipt
• Optional
receipt: ISubmittableResult
stores the transaction receipt (if successful)
Defined in
base/PolymeshTransactionBase.ts:91
status
• status: TransactionStatus
= TransactionStatus.Idle
current status of the transaction
Defined in
base/PolymeshTransactionBase.ts:81
txHash
• Optional
txHash: string
transaction hash (status: Running
, Succeeded
, Failed
)
Defined in
base/PolymeshTransactionBase.ts:96
txIndex
• Optional
txIndex: BigNumber
transaction index within its block (status: Succeeded
, Failed
)
Defined in
base/PolymeshTransactionBase.ts:101
Accessors
isSuccess
• get
isSuccess(): boolean
returns true if transaction has completed successfully
Returns
boolean
Defined in
base/PolymeshTransactionBase.ts:907
result
• get
result(): TransformedReturnValue
returns the transaction result - this is the same value as the Promise run returns
Returns
TransformedReturnValue
Note
it is generally preferable to await
the Promise
returned by transaction.run() instead of reading this property
Throws
if the transaction.isSuccess property is false — be sure to check that before accessing!
Defined in
base/PolymeshTransactionBase.ts:823
Methods
getProtocolFees
▸ Abstract
getProtocolFees(): Promise
<BigNumber
>
Return this transaction's protocol fees. These are extra fees charged for specific operations on the chain. Not to be confused with network fees (which depend on the complexity of the operation), protocol fees are set by governance and/or chain upgrades
Returns
Promise
<BigNumber
>
Defined in
base/PolymeshTransactionBase.ts:754
getTotalFees
▸ getTotalFees(): Promise
<PayingAccountFees
>
Retrieve a breakdown of the fees required to run this transaction, as well as the Account responsible for paying them