Unstake a liquidity position
Takes a staked PancakeSwap V3 position out of MasterChefV3: the pending CAKE is paid to the wallet and the position NFT returns to it. Its network fee is taken out of the position, as a stake's is: see payGasFeeToken. An exit of the whole position does not need it first; it leaves the farm on its own. The response amounts are the position current amounts, for information.
x-api-keyx-api-key<token>application/json- body
liquidityProvider?stringProvider of the position. Only PANCAKESWAP_V3 has a farm. Required unless nftAddress is sent; there is no default here.
"UNISWAP_V3""PANCAKESWAP_V3""UNISWAP_V4"nftAddress?|Position manager (NFT contract) of the position: the nftAddress returned when the position was created. Required unless liquidityProvider is sent; if both are sent they must name the same provider.
chainId*numberThe blockchain network of the position. Supported EVM chains:
- Arbitrum One: 42161
- Avalanche: 43114
- Base: 8453
- BNB Smart Chain: 56
- Ethereum: 1
- Gnosis: 100
- OP Mainnet: 10
- Polygon: 137
- X Layer Mainnet: 196
- Robinhood Chain: 4663
nftId*stringID of the NFT that represents the liquidity
walletAddress*stringThe wallet address (in hexadecimal format) that owns the position.
payGasFeeToken*stringThe token address (in hexadecimal format) used to pay the transaction fee: one of the position's two tokens, since the fee is taken out of the position. Its uncollected fees in that token pay first, and only the fee is collected from them; when they fall short, a sliver of liquidity covers the rest and what the sliver frees beyond the fee goes to the wallet. Refused with BAD_DEDUCT_FEE_TOKEN for another token, and INSUFFICIENT_FUNDS when the position holds too little of it (try the other token). Not charged when the project sponsors gas for this operation.
metadata?Custom metadata. Key-value pairs with string values. Max 1KB size.
The user operation that unstakes the position.
application/json- response
operation*