Get User Allowance
<br/>
Retrieves the approved allowance for a specific ERC-20 token, indicating how many tokens a designated spender is authorized to withdraw from an owner’s wallet. It is especially useful for verifying spending limits before initiating transactions, ensuring that decentralized applications or swap interfaces can confirm the available allowance for token transfers.
💡 Compute Unit Value: 60 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/account/v1/allowance
- AuthAPI key in header X-API-Key
Query parameters
Address of the token whose allowance is being queried.
Public address of the owner of the tokens.
Public address of the spender authorized to withdraw tokens on the owner's behalf.
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The abbreviated chain name for queries or transactions.
A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"allowance": "999999999900000",
"prices": {
"usd": [
{
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": "1.0004708182757556"
}
]
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.