chain link parser

This commit is contained in:
thloyi
2026-03-02 18:01:32 +08:00
parent cd1d681621
commit e9ba16766f
4 changed files with 130 additions and 2 deletions

5
tx.go
View File

@@ -74,6 +74,10 @@ type SolTransfer struct {
To solana.PublicKey
Amount decimal.Decimal
}
type ChainLink struct {
Timestamp int64
Price decimal.Decimal
}
type Tx struct {
rawTx *RawTx
@@ -83,6 +87,7 @@ type Tx struct {
Swaps []Swap `json:"swaps,omitempty"`
SolTransfer []SolTransfer `json:"sol_transfer,omitempty"`
Block uint64 `json:"block"`
ChainLink ChainLink `json:"chain_link"`
BlockIndex uint64 `json:"index"`
TxHash *[64]byte `json:"-"`
BlockAt int64 `json:"block_at"`