Skip to main content
POST
curl --request POST \
  --url https://devnet-as.magicblock.app/ \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "getAccountInfo",
  "jsonrpc": "2.0",
  "params": [
    "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb",
    {
      "encoding": "base64"
    }
  ],
  "id": 0
}'
{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "apiVersion": "2.2.1",
      "slot": 85838062
    },
    "value": {
      "data": [
        "KLUv/QBYQQAAAgAAAAAAAAA=",
        "base64"
      ],
      "executable": false,
      "lamports": 946560,
      "owner": "11111111111111111111111111111111",
      "rentEpoch": "18446744073709551615",
      "space": 8
    }
  },
  "id": 1
}
curl --request POST \
  --url https://devnet-as.magicblock.app/ \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "getAccountInfo",
  "jsonrpc": "2.0",
  "params": [
    "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb",
    {
      "encoding": "base64"
    }
  ],
  "id": 0
}'

Body

application/json
jsonrpc
enum<string>
default:2.0
required
Available options:
2.0
id
integer
default:1
required
method
enum<string>
default:getAccountInfo
required
Available options:
getAccountInfo
params
(string | object)[]
required

Account address and optional config object

Required array length: 2 elements
Example:
[
"5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb",
{ "encoding": "base64" }
]

Response

200 - application/json

Successful response

jsonrpc
enum<string>
default:2.0
required
Available options:
2.0
id
required
result
object
required