Skip to main content

Parameters

chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getProgramAccounts"
required
JSON-RPC method name.
params
object
required
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

result
array
Array of account info objects. If withContext=true, response will be wrapped in RpcResponse object.