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

View File

@@ -40,6 +40,7 @@ func (tx *Tx) Parser() error {
tx.Block = tx.rawTx.Slot
tx.BlockIndex = uint64(tx.rawTx.IndexWithinBlock)
tx.BlockAt = tx.rawTx.BlockTime
tx.CuFee = decimal.NewFromUint64(tx.rawTx.Meta.Fee)
tx.BeforeSolBalance = decimal.NewFromUint64(tx.rawTx.Meta.PreBalances[0]).Div(decimal.NewFromInt(1e9))
tx.AfterSOLBalance = decimal.NewFromUint64(tx.rawTx.Meta.PostBalances[0]).Div(decimal.NewFromInt(1e9))