Allowance
Get Allowance details for a token
allowance
GET https://api.unifront.io/v1/utils/getAllowance
This endpoint allows you to get allowance for a particular token.
Query Parameters
Name
Type
Description
spender
string
Exchange or Smart Contract which is going to execute the transaction on your behalf
contract
string
Token contract address
owner
string
wallet address - owner
Headers
Name
Type
Description
API_key
string
API Key for authentication - [Not Required]
{
"allowance": "999999999975.9"
}{
"name": "BadRequestError",
"message": "Invalid queries, check 'errors' property for more info.",
"errors": [
{
"target": {
"contract": "0x0d8775f648430679a709e98d2b0cb6250d2887ef",
"owner": "0x78f32a27559170f9a005b319Ed53441b9e852158"
},
"property": "spender",
"children": [],
"constraints": {
"isString": "spender must be a string",
"isNotEmpty": "spender should not be empty"
}
}
]
}Last updated
Was this helpful?