Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getAccountInfo"
required
JSON-RPC method name.
Parameters: [pubkey, config]Positional parameters for getAccountInfo:params[0]: Base-58 encoded public key of the account to query.params[1]: Optional configuration object.
Returns
Requested account information or if the account doesn`t exist null
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getAccountInfo",
"params": [
"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
{
"encoding": "base58"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"apiVersion": "2.0.15",
"slot": 341197053
},
"value": {
"data": [
"",
"base58"
],
"executable": false,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": "18446744073709551615",
"space": 0
}
}
}