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:"getTokenSupply"
required
JSON-RPC method name.
params
object
required
Parameters for method getTokenSupply: [mintAddress, config]Positional parameters for getTokenSupply:
  • params[0]: Pubkey of the token Mint to query (base-58 encoded string).
  • params[1]: Optional configuration object.

Returns

result
object
Token supply information for the given 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": "getTokenSupply",
    "params": [
      "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 1114
    },
    "value": {
      "amount": "100000",
      "decimals": 2,
      "uiAmount": 1000,
      "uiAmountString": "1000"
    }
  }
}