Get Approved Token Allowance (v1)
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-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
jsonrpcstringrequiredThe JSON-RPC protocol version. Must be "2.0" per JSON-RPC 2.0 specification.
methodstringrequiredThe RPC method name. Must be "getallowance" for this operation.
paramsArray<string>requiredArray with three parameters:
- Asset identifier ("ont" for Ontology token, "ong" for Ontology Gas token)
- 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.