Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct {
ID thor.Bytes32 `json:"id"`
Type uint8 `json:"type"`
ChainTag byte `json:"chainTag"`
BlockRef string `json:"blockRef"`
Expiration uint32 `json:"expiration"`
Clauses api.Clauses `json:"clauses"`
GasPriceCoef *uint8 `json:"gasPriceCoef,omitempty"`
Gas uint64 `json:"gas"`
MaxFeePerGas *math.HexOrDecimal256 `json:"maxFeePerGas,omitempty"`
MaxPriorityFeePerGas *math.HexOrDecimal256 `json:"maxPriorityFeePerGas,omitempty"`
Origin thor.Address `json:"origin"`
Delegator *thor.Address `json:"delegator"`
Nonce math.HexOrDecimal64 `json:"nonce"`
DependsOn *thor.Bytes32 `json:"dependsOn"`
Size uint32 `json:"size"`
Meta *api.TxMeta `json:"meta"`
}
func ConvertTransaction ¶ added in v2.3.1
func ConvertTransaction(trx *tx.Transaction, header *block.Header) *Transaction
ConvertTransaction convert a raw transaction into a json format transaction
type Transactions ¶
type Transactions struct {
// contains filtered or unexported fields
}
func New ¶
func New(repo *chain.Repository, pool txpool.Pool) *Transactions
Click to show internal directories.
Click to hide internal directories.