Skip to main content

Parameters

chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getTokenLargestAccounts"
required
JSON-RPC method name.
params
object
required
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

result
array
Array of the 20 largest token accounts for the specified mint.
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": []
}