Get Approved Token Allowance (v2)
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-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
jsonrpcstringrequiredThe JSON-RPC protocol version. Must be "2.0" per JSON-RPC 2.0 specification.
methodstringrequiredThe RPC method name. Must be "getallowancev2" for this operation.
paramsArray<string>requiredArray with three parameters:
- Token contract script hash in hexadecimal format (use native hashes for ONT: 0x01..., ONG: 0x02...)
- Owner address (ONT address format)
- Spender address (ONT address format)
idintegerrequiredUnique client-generated request ID to correlate responses with requests.
Response
200OK
Successful response with allowance amount.