Home

Get Approved Token Allowance (v2)

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Updated v2 endpoint that returns approved allowance amounts for all OEP-4 standard tokens, including native ONT/ONG and custom deployed tokens. Uses contract script hash instead of string asset identifiers to support arbitrary 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 "getallowancev2" for this operation.

paramsArray<string>required

Array with three parameters:

  1. Token contract script hash in hexadecimal format (use native hashes for ONT: 0x01..., ONG: 0x02...)
  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.