From 59d8ecb34494038f0aade6b835a79f9d51c1e2a5 Mon Sep 17 00:00:00 2001 From: Dodi Triwibowo Date: Thu, 14 Nov 2024 18:37:03 +0700 Subject: [PATCH] add version and add program id in TokenBalance type (#253) Co-authored-by: Dodi Pluto --- 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 d65ad0a9..0de139ca 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"`