curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBalance",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 372910193
},
"value": 0
}
}Returns the lamport balance of the account at the specified address. This method provides the native SOL balance for any Solana account.
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBalance",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 372910193
},
"value": 0
}
}The JSON-RPC protocol version.
2.0 A unique identifier for the request.
"1"
getBalance Parameters for the request.
The Pubkey of the account to query (base-58 encoded string).
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
Was this page helpful?