add instr sol transfer and cufee

This commit is contained in:
thloyi
2026-01-05 11:55:44 +08:00
parent dd76b04b19
commit 8128a325a9

View File

@@ -35,7 +35,7 @@ func TransferParser(result *RawTx, instruction Instruction, offset [2]uint, tx *
to := result.accountList[instruction.Accounts[1]] to := result.accountList[instruction.Accounts[1]]
if offset[1] == 0 { if offset[1] == 0 {
tx.Transfer = append(tx.Transfer, SolTransfer{ tx.SolTransfer = append(tx.SolTransfer, SolTransfer{
From: from, From: from,
To: to, To: to,
Amount: decimal.NewFromInt(int64(lamports)), // solana decimals Amount: decimal.NewFromInt(int64(lamports)), // solana decimals