Parameters
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
string
default:"2.0"
required
JSON-RPC version.
string
default:"getProgramAccounts"
required
JSON-RPC method name.
Parameters for method getProgramAccounts: [programId, config]Positional parameters for getProgramAccounts:params[0]: Pubkey of the program (base-58 encoded).params[1]: Optional configuration object.
Returns
Array of account info objects. If withContext=true, response will be wrapped in RpcResponse object.
Program account object.
Account Pubkey (base-58 encoded).
Account data object.
Lamports assigned to this account.
Pubkey of the program this account has been assigned to.
Tuple of [encoded data string, encoding type].
Tuple of [encoded data string, encoding type].
JSON object representing program-specific state (if jsonParsed).
True if the account contains a program (strictly read-only).
Epoch at which this account will next owe rent.
Data size of the account (in bytes).