Home

Get Approved Token Allowance (v1)

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the amount of native ONT or ONG tokens that an approved spender is allowed to transfer on behalf of the token owner. This is the legacy v1 endpoint, supporting only native network tokens.

Body

application/json
jsonrpcstringrequired

The JSON-RPC protocol version. Must be "2.0" per JSON-RPC 2.0 specification.

methodstringrequired

The RPC method name. Must be "getallowance" for this operation.

paramsArray<string>required

Array with three parameters:

  1. Asset identifier ("ont" for Ontology token, "ong" for Ontology Gas token)
  2. Owner address (ONT address format)
  3. Spender address (ONT address format)
idintegerrequired

Unique client-generated request ID to correlate responses with requests.

Response

200OK

Successful response with allowance amount.