Authorizations
Body
application/json
curl --request POST \
--url https://rpc-mainnet.solanatracker.io/ \
--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/ \
--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
}
}
Was this page helpful?