注意: 此页面尚未翻译成中文。以下内容为英文原版。Represents a Quai transaction.
AbstractTransaction<Signature>QuaiTransactionLike| Parameter | Type | Description |
|---|---|---|
from? | string | The sender address. |
QuaiTransaction
AbstractTransaction<Signature>.constructor
null | AccessList
bigint
init transactions this is the deployment code.
string
undefined | Zone
string
bigint
null.
null | bigint
null | string
boolean
True if the transaction is external.
number
undefined | Zone
string
S
to address for the transaction or null if the transaction is an init transaction.
null | string
null | number
null | string
string
bigint
QuaiTransaction
The cloned transaction.
AbstractTransaction.clone
number
The inferred transaction type.
AbstractTransaction.inferType
number[]
The compatible transaction types.
AbstractTransaction.inferTypes
this is AbstractTransaction<Signature> & Object
Indicates if the transaction is signed.
AbstractTransaction.isSigned
QuaiTransactionLike
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 | QuaiTransactionLike | The transaction to decode. |
QuaiTransaction
The decoded transaction.
| Parameter | Type | Description |
|---|---|---|
protoTx | ProtoTransaction | The transaction to decode. |
QuaiTransaction
The decoded transaction.