From eeaef6b6223cabbeccf0a1f4dbab49d0f29ba12d Mon Sep 17 00:00:00 2001 From: Dodi Pluto Date: Wed, 23 Oct 2024 18:58:23 +0700 Subject: [PATCH] add version and add program id in TokenBalance type --- rpc/getParsedTransaction.go | 1 + rpc/types.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rpc/getParsedTransaction.go b/rpc/getParsedTransaction.go index cfc79ff1..a2dbe53e 100644 --- a/rpc/getParsedTransaction.go +++ b/rpc/getParsedTransaction.go @@ -22,6 +22,7 @@ type GetParsedTransactionResult struct { BlockTime *solana.UnixTimeSeconds Transaction *ParsedTransaction Meta *ParsedTransactionMeta + Version TransactionVersion `json:"version"` } func (cl *Client) GetParsedTransaction( diff --git a/rpc/types.go b/rpc/types.go index 611985bf..2db2ab7a 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -153,6 +153,8 @@ type TokenBalance struct { // Pubkey of token balance's owner. Owner *solana.PublicKey `json:"owner,omitempty"` + // Pubkey of token program. + ProgramId *solana.PublicKey `json:"programId,omitempty"` // Pubkey of the token's mint. Mint solana.PublicKey `json:"mint"`