Get allowance - Protocol
In decentralized finance (DeFi) protocols such as Uniswap or AAVE, users must set a token allowance to authorize the protocol to spend a specified amount of their tokens on their behalf.
This is a crucial step before engaging in any transactions or operations within these protocols, ensuring that the protocol has the necessary permissions to manage the user’s tokens securely and efficiently.
Body
Request model for getting an ERC20 token allowance.
The chain to use.
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
The user to get the ERC20 allowance of.
"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
The symbol of the token for which the allowance is checked. Note the supported tokens per chain.
1INCH
, AAVE
, BAL
, cbBTC
, cbETH
, CRV
, crvUSD
, DAI
, ENS
, ETHx
, FRAX
, FXS
, GHO
, KNC
, LDO
, LINK
, LUSD
, MKR
, osETH
, PYUSD
, rETH
, RPL
, rsETH
, sDAI
, SNX
, STG
, sUSDe
, tBTC
, UNI
, USDC
, USDe
, USDS
, USDT
, WBTC
, weETH
, WETH
, wstETH
, ARB
, EURS
, MAI
, USDCe
, AERO
, EUR
, VIRTUAL
The name of the contract to check allowance for.
AaveV3Pool
, AaveV3Oracle
, AaveV3ProtocolDataProvider
, AerodromeBasicFactory
, AerodromeSlipstreamFactory
, AerodromeBasicRouter
, AerodromeSlipstreamRouter
, AerodromeBasicPool
, AerodromeSlipstreamPool
, AerodromeSlipstreamNonfungiblePositionManager
, UniswapV3Pool
, UniswapV3Router
, UniswapV3Factory
, UniswapV3NFTPositionManager
, UniswapV3Quoter
, ChainlinkEACAggregatorProxy
, Multicall
Response
Response model for token allowance information.
Amount of tokens allowed to be spent by spender
1.5
Number of decimals of the token
18
Symbol of the token Note the supported tokens per chain.
1INCH
, AAVE
, BAL
, cbBTC
, cbETH
, CRV
, crvUSD
, DAI
, ENS
, ETHx
, FRAX
, FXS
, GHO
, KNC
, LDO
, LINK
, LUSD
, MKR
, osETH
, PYUSD
, rETH
, RPL
, rsETH
, sDAI
, SNX
, STG
, sUSDe
, tBTC
, UNI
, USDC
, USDe
, USDS
, USDT
, WBTC
, weETH
, WETH
, wstETH
, ARB
, EURS
, MAI
, USDCe
, AERO
, EUR
, VIRTUAL
Address of the token
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
Address of the contract
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
Was this page helpful?