GET v1/{chainID}/transaction/allowance
Checks how many user’s tokens the exchange smart contract has access to
Input Parameters
Name
Required
Description
chainID
+
The ID of the blockchain the token is located on (supported networks - /v1/platforms
).
tokenAddress
+
Smart contract address of the token for which access is being checked.
walletAddress
+
Wallet of the user for which access is being checked.
Response Options
Name
Data Type
Description
remaining
str
The number of tokens in decimals of the token the smart contract has access to.
Request Example
https://api.yad.finance/v1/1/transaction/allowance?tokenAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7&walletAddress=0x58f58219e2d2598588c1b457bb6da65c34d99310
Response Example
{
"remaining": "11579208923731620000"
}
Last updated