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
}Methods
getAccountInfo
Returns all information associated with an account of provided Pubkey.
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
Available options:
2.0 Available options:
getAccountInfo Account address and optional config object
Required array length:
2 elementsExample:
[ "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb", { "encoding": "base64" } ]
Was this page helpful?

