add instr sol transfer and cufee

This commit is contained in:
thloyi
2026-01-05 11:46:54 +08:00
parent 91b70e23d6
commit dd76b04b19
3 changed files with 26 additions and 9 deletions

25
tx.go
View File

@@ -45,15 +45,24 @@ type mevInfo struct {
MevAgentFee decimal.Decimal
}
type SolTransfer struct {
From solana.PublicKey
To solana.PublicKey
Amount decimal.Decimal
}
type Tx struct {
rawTx *RawTx
Signer solana.PublicKey
Err interface{} `json:"err,omitempty"`
Swaps []Swap `json:"swaps,omitempty"`
Block uint64 `json:"block"`
BlockIndex uint64 `json:"index"`
TxHash *[64]byte `json:"-"`
BlockAt int64 `json:"block_at"`
rawTx *RawTx
Signer solana.PublicKey
Err interface{} `json:"err,omitempty"`
Swaps []Swap `json:"swaps,omitempty"`
SolTransfer []SolTransfer `json:"sol_transfer,omitempty"`
Block uint64 `json:"block"`
BlockIndex uint64 `json:"index"`
TxHash *[64]byte `json:"-"`
BlockAt int64 `json:"block_at"`
CuFee decimal.Decimal `json:"cu_fee"`
cachedTxHash string