Home

Get token supply

POST
https://sol.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the current supply for an SPL Token mint.

Body

application/json

Returns the current supply for an SPL Token mint.

Object containing the JSON-RPC request fields.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

Solana JSON-RPC method name.

idintegerrequired

Client request identifier echoed by the server.

paramsArray<string | object>required

Ordered positional parameters for the Solana JSON-RPC method:

  1. Token mint public key whose supply should be returned.
  2. Optional configuration object. If sent, commitment is required inside it.
Show child attributes
One of

Pubkey of the token Mint to query, as a base-58 encoded string.

string
commitmentstringprocessedconfirmedfinalizedrequired

Bank commitment level used to evaluate the request. Required whenever the configuration object is present.

Response

200OK

Token supply response

400Bad Request

Bad Request. The Solana JSON-RPC request is malformed or contains invalid parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or Solana node failed while processing the request.