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:"getTokenLargestAccounts"
required
JSON-RPC method name.
Parameters for method getTokenLargestAccounts: [mintAddress, config]Positional parameters for getTokenLargestAccounts:params[0]: Pubkey of the token Mint to query (base-58 encoded string).params[1]: Optional configuration object.
Returns
Array of the 20 largest token accounts for the specified mint.
Largest token account object.
Token account address (base-58 encoded).
Raw token balance without decimals (string representation of u64).
Number of base 10 digits to the right of the decimal place.
Deprecated. Token balance using mint-prescribed decimals.
Token balance as a string using mint-prescribed decimals.
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": "getTokenLargestAccounts",
"params": [
"3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": []
}