GetProgramAccountsApi
GetProgramAccountsApi =
object
Methods
getProgramAccounts()
Call Signature
getProgramAccounts(
program
,config
):SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
&AccountInfoWithBase64EncodedData
>[]>
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64" ; withContext : true ; }> |
Returns
SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
& AccountInfoWithBase64EncodedData
>[]>
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):Readonly
<{account
:TAccount
;pubkey
:Address
; }>[]
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64" ; withContext? : boolean ; }> |
Returns
Readonly
<{ account
: TAccount
; pubkey
: Address
; }>[]
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
&AccountInfoWithBase64EncodedZStdCompressedData
>[]>
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64+zstd" ; withContext : true ; }> |
Returns
SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
& AccountInfoWithBase64EncodedZStdCompressedData
>[]>
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):Readonly
<{account
:TAccount
;pubkey
:Address
; }>[]
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64+zstd" ; withContext? : boolean ; }> |
Returns
Readonly
<{ account
: TAccount
; pubkey
: Address
; }>[]
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
&AccountInfoWithJsonData
>[]>
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, the server will attempt to process it using a parser specific to the owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ encoding : "jsonParsed" ; withContext : true ; }> |
Returns
SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
& AccountInfoWithJsonData
>[]>
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):Readonly
<{account
:TAccount
;pubkey
:Address
; }>[]
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, the server will attempt to process it using a parser specific to the owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ encoding : "jsonParsed" ; withContext? : boolean ; }> |
Returns
Readonly
<{ account
: TAccount
; pubkey
: Address
; }>[]
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
&AccountInfoWithBase58EncodedData
>[]>
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a tuple whose first element is a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base58" ; withContext : true ; }> |
Returns
SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
& AccountInfoWithBase58EncodedData
>[]>
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):Readonly
<{account
:TAccount
;pubkey
:Address
; }>[]
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a tuple whose first element is a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base58" ; withContext? : boolean ; }> |
Returns
Readonly
<{ account
: TAccount
; pubkey
: Address
; }>[]
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config
):SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
&AccountInfoWithBase58Bytes
>[]>
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
program | Address |
config | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ withContext : true ; }> |
Returns
SolanaRpcResponse
<AccountInfoWithPubkey
<AccountInfoBase
& AccountInfoWithBase58Bytes
>[]>
See
https://solana.com/docs/rpc/http/getprogramaccounts
Call Signature
getProgramAccounts(
program
,config?
):Readonly
<{account
:TAccount
;pubkey
:Address
; }>[]
Fetches information associated with all accounts owned by the program at the given address.
If the accounts have data, it will be returned in the response as a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
program | Address |
config? | Readonly <{ commitment? : Commitment ; encoding? : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; filters? : (GetProgramAccountsDatasizeFilter | GetProgramAccountsMemcmpFilter )[]; minContextSlot? : Slot ; withContext? : boolean ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ withContext? : boolean ; }> |
Returns
Readonly
<{ account
: TAccount
; pubkey
: Address
; }>[]