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:"getLargestAccounts"
required
JSON-RPC method name.
Parameters for method getLargestAccounts: [config]Positional parameters for getLargestAccounts:params[]: Optional configuration object.
Returns
An array of account balance objects.
An object containing an address and its lamport balance.
Base-58 encoded address of the account.
Number of lamports in the account.
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": "getLargestAccounts",
"params": [
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 54
},
"value": [
{
"address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ",
"lamports": 999974
},
{
"address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL",
"lamports": 42
}
]
}
}