注意: 此页面尚未翻译成中文。以下内容为英文原版。Class representing a QiTransaction.
AbstractTransaction
<string
>QiTransactionLike
QiTransaction
AbstractTransaction<string>.constructor
bigint
Parameter | Type | Description |
---|---|---|
value | null | Uint8Array | The transaction data. |
Uint8Array
The transaction data.
undefined
| Zone
The destination zone.
string
null
| string
The transaction hash.
boolean
True if the transaction is external.
undefined
| Zone
The origin zone.
string
S
Parameter | Type | Description |
---|---|---|
value | null | TxInput [] | The transaction inputs. |
TxInput
[]
The transaction inputs.
Parameter | Type | Description |
---|---|---|
value | null | TxOutput [] | The transaction outputs. |
TxOutput
[]
The transaction outputs.
null
| number
null
| string
string
QiTransaction
The cloned transaction.
AbstractTransaction.clone
number
The inferred transaction type.
AbstractTransaction.inferType
number
[]
The compatible transaction types.
AbstractTransaction.inferTypes
this is AbstractTransaction<string> & Object
Indicates if the transaction is signed.
AbstractTransaction.isSigned
TransactionLike
The JSON-friendly object.
AbstractTransaction.toJSON
Parameter | Type | Default value | Description |
---|---|---|---|
includeSignature ? | boolean | true | Whether to include the signature. Default is true |
ProtoTransaction
The protobuf-friendly JSON object.
AbstractTransaction.toProtobuf
Parameter | Type | Description |
---|---|---|
tx | string | QiTransactionLike | The transaction to decode. |
QiTransaction
The decoded transaction.
Parameter | Type | Description |
---|---|---|
protoTx | ProtoTransaction | The transaction to decode. |
QiTransaction
The decoded transaction.