Liquidity pools
Collect fees from liquidity
Collects the fees received by the liquidity NFT. This will both create a user operation to be executed and will show how much will be collected, so you can choose if you really want to collect it or not. Always collects the full amount.
x-api-key<token>
In: header
liquidityProvider?string
Optional provider for entering a liquidity pool. If not provided, Uniswap v3 will be used.
Value in
"UNISWAP_V3"
chainIdnumber
The blockchain network where the liquidity will be provided. Supported EVM chains:
- Arbitrum One: 42161
- Avalanche: 43114
- Base: 8453
- BNB Smart Chain: 56
- Ethereum: 1
- Gnosis: 100
- OP Mainnet: 10
- Polygon: 137
nftIdstring
ID of the NFT that represents the liquidity
walletAddressstring
The wallet address (in hexadecimal format) who owns the liquidity.
Match
^0x[a-fA-F0-9]{40}$
payGasFeeTokenstring
The token address (in hexadecimal format) used to pay the transaction fee.
Match
^0x[a-fA-F0-9]{40}$
metadata?object
Empty Object
Response Body
curl -X POST "https://api.notus.team/api/v1/liquidity/collect" \ -H "Content-Type: application/json" \ -d '{ "chainId": 42161, "nftId": "2375619234", "walletAddress": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464", "payGasFeeToken": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1" }'
{
"operation": {
"liquidityProvider": "UNISWAP_V3",
"walletAddress": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464",
"toAddress": "0x1337133713371337133713371337133713371337",
"chainId": 42161,
"transactionFeePercent": 2.5,
"payGasFeeToken": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"gasFeePaymentMethod": "ADD_TO_AMOUNT",
"token0": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
"token1": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"poolFeePercent": 1,
"token0Amount": "26.2345",
"token1Amount": "1823.2",
"minPrice": 83475.12,
"maxPrice": 102300.5,
"slippage": 1.2,
"metadata": {
"key": "value"
}
}
}
{
"statusCode": 400,
"id": "NOT_AUTHORIZED_TOKENS",
"message": ""
}
{
"statusCode": 403,
"id": "UNAVAILABLE_COMPUTE_UNITS",
"message": "The project doesn't have enough compute units to perform this action. Please upgrade your plan."
}
{
"statusCode": 500,
"id": "BLOCKCHAIN_ERROR",
"message": "We had a problem fetching the data from the blockchain. If the problem persists, contact our support."
}