Documentation ¶
Index ¶
- func NewBlockWorker(ctx context.Context, solClient *client.Client, slotChan <-chan uint64, ...)
- func ProcessBlock(ctx context.Context, blocksChan chan BlockResp, mongoClient *mongo.Database, ...)
- func RetrieveBlockNumbers(ctx context.Context, startFrom string, solClient *client.Client, ...)
- type BlockCUStat
- type BlockResp
- type ComputeBudgetData
- type ComputeBudgetPriceDecoder
- type ComputeBudgetUnitLimitDecoder
- type ParsedBlock
- type ParsedTransaction
- type ServerProcessedBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlockWorker ¶
func ProcessBlock ¶
Types ¶
type BlockCUStat ¶
type BlockCUStat struct { Slot uint64 CU uint64 NumTxs uint64 CBTxs uint64 MinFeeSol uint64 AvgFeeSol uint64 MaxFeeSol uint64 MinFee uint64 AvgFee uint64 MaxFee uint64 }
func ProcessBlockCLI ¶
func ProcessBlockCLI(block BlockResp) BlockCUStat
type ComputeBudgetData ¶
func GetComputeBudgetData ¶
func GetComputeBudgetData(tx *client.BlockTransaction) ComputeBudgetData
type ParsedBlock ¶
type ParsedBlock struct { Slot uint64 CU uint64 NumTxs uint64 CBTxs uint64 Transactions []ParsedTransaction }
type ParsedTransaction ¶
type ServerProcessedBlock ¶
type ServerProcessedBlock struct { Slot uint64 `json:"slot"` ParentSlot uint64 `json:"parent_slot"` SlotTime time.Time `json:"slot_time"` NumTxs uint64 `json:"num_txs"` // Number of transactions in the block NumSuccessTxs uint64 `json:"num_success_txs"` // Number of successful transactions in the block NumCBTxs uint64 `json:"num_cb_txs"` // Number of transactions that have compute budget MinCUPrice uint64 `json:"min_cu_price"` AvgCUPrice uint64 `json:"avg_cu_price"` MaxCUPrice uint64 `json:"max_cu_price"` MinPriorityFee uint64 `json:"min_priority_fee"` // Minimum priority fee in lamports AvgPriorityFee uint64 `json:"avg_priority_fee"` // Average priority fee in lamports MaxPriorityFee uint64 `json:"max_priority_fee"` // Maximum priority fee in lamports CU uint64 `json:"cu"` // Total compute units consumed in the block BlockFee uint64 `json:"block_fee"` // Total block fee in lamports }
Click to show internal directories.
Click to hide internal directories.