Uniswap
const sdk = new CryptumSdk({
environment: 'testnet',
apiKey: 'YOUR-API-KEY',
})Get Pools
const pools = await sdk.uniswap.getPools({
protocol,
tokenA: AtokenAddress,
tokenB: BtokenAddress,
})
/*
[
{
poolAddress: '0x50…72df',
poolFee: 100,
},
{
poolAddress: '0xC5…3e0C',
poolFee: 500,
},
{
poolAddress: '0x63…Ea80',
poolFee: 3000,
},
{
poolAddress: null,
poolFee: 10000,
},
]
*/Get Pool Data
Get Token IDs
Get Position
Get Positions
Observe Pool
Get Swap Quotation
Get Mint Position Quotation (Providing Liquidity)
Get Increase Liquidity Quotation
Create Pool
Increase Cardinality
Decrease Liquidity
Collect Fees
Swap
Mint (Provide Liquidity)
Increase Liquidity
Last updated
