GET
/
v1
/
generic
/
allowance
Typescript (SDK)
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.universal.genericAllowance({
    token: "<value>",
    contract: "PendleRouter",
  });

  console.log(result);
}

run();
{
  "amount": 1.5,
  "decimals": 18,
  "token_symbol": "WETH",
  "token_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  "contract_address": "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum
required
Available options:
arbitrum,
base,
ethereum
user
string
default:0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B

The user to get the ERC20 allowance of.

token
default:USDC
required

The symbol or address of the token for which the allowance is checked.. A class representing the token.

This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.

Available options:
1INCH,
AAVE,
AERO,
ARB,
BAL,
BNKR,
cbBTC,
cbETH,
CLANKER,
COPI,
CRV,
crvUSD,
CYBER,
DAI,
DOGINME,
eBTC,
ENS,
ETH,
ETHFI,
ETHx,
EURC,
EUR,
EURS,
eUSDe,
ezETH,
FBTC,
FRAX,
FXS,
GHO,
KNC,
LBTC,
LDO,
LINK,
LsETH,
LUSD,
MAI,
MKR,
osETH,
PT-eUSDE-14AUG2025,
PT-eUSDE-29MAY2025,
PT-sUSDE-25SEP2025,
PT-sUSDE-31JUL2025,
PT-USDe-31JUL2025,
PYUSD,
rETH,
RLUSD,
RPL,
rsETH,
sDAI,
SNX,
STG,
sUSDe,
tBTC,
UNI,
USDbC,
USDCe,
USDC,
USDe,
USDS,
USDtb,
USDT,
VIRTUAL,
WBTC,
weETH,
WELL,
WETH,
wrsETH,
wstETH
contract
default:AaveV3Pool
required

The name or address of the contract to check allowance for.

Available options:
AaveV3Pool,
AerodromeBasicRouter,
AerodromeSlipstreamRouter,
AerodromeSlipstreamNonfungiblePositionManager,
UniswapV3Router,
UniswapV3NFTPositionManager,
Morpho,
SkyDaiUsdsConverter,
SkyUsdcUsdsConverter,
SkyUsdsVault,
PendleRouter,
OdosRouter,
EthenaVault

Response

200
application/json

Successful Response

Response model for token allowance information.