Skip to main content
POST
/
getTokenSupply
curl --request POST \
  --url https://rpc.raze.bot/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTokenSupply",
  "params": [
    "So11111111111111111111111111111111111111112"
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 418263087
    },
    "value": {
      "amount": "0",
      "decimals": 9,
      "uiAmount": 0,
      "uiAmountString": "0"
    }
  }
}

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
Example:

"2.0"

method
enum<string>
required
Available options:
getTokenSupply
Example:

"getTokenSupply"

params
any[]
required

[mint, commitment?]

Example:
[
"So11111111111111111111111111111111111111112"
]
id
Example:

1

Response

200 - application/json

JSON-RPC response. Inspect result (success) or error (failure).

jsonrpc
string
required
Example:

"2.0"

result
any
required
id
Example:

1