Solana RPC · Accounts & balances
POST getAccountInfo
All information for a single account.
Endpoint
POST https://solrpc.infinityblocks.io/<API_KEY>
Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
address | string | yes | Base-58 account pubkey. |
config | object | no | encoding ("base64"/"jsonParsed"), commitment, dataSlice. |
Request
curl -s https://solrpc.infinityblocks.io/<API_KEY> \
-X POST -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getAccountInfo","params":["<ADDRESS>",{"encoding":"base64","commitment":"confirmed"}]}'
With @solana/web3.js
const acct = await rpc.getAccountInfo(new PublicKey("<ADDRESS>"));
Response
{ "jsonrpc": "2.0", "id": 1, "result": { "context": { "slot": 423214981 },
"value": { "lamports": 12480000, "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"data": ["…base64…","base64"], "executable": false, "rentEpoch": 18446744073709552000, "space": 165 } } }
Try it
Run getAccountInfolive · POST
Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.
—