āš™ļøAPI

For anyone looking to integrate our contracts into their Front-End.

// function to create shortcut
createShortcut(address pool, uint8 pType, uint256 _cId)

You can call our API to receive the arguments above. This will return the pool with the highest WETH liquidity.

End Point

https://create.onthis.xyz/api/highest-pool-tvl/[address]/[chainId]

Example

GMX Token: 0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a

Arbitrum One Chain Id: 42161

Returns

Return the highest pool liquidity by WETH TVL.

{
"pType": 0,
"pool": "0x80A9ae39310abf666A87C743d6ebBD0E8C42158E"
}

Last updated