Stake a liquidity position
Stakes a PancakeSwap V3 position in MasterChefV3 to earn CAKE: the wallet sends the position NFT to the farm. It is a separate user operation, signed after the entry (or after a rebalance), because the NFT id is only known once the position exists. Only pools whose farm is live (allocation points above zero) can be staked. Its network fee is taken out of the position, so the wallet needs no balance: see payGasFeeToken. Collects, removals and top-ups of a staked position keep working through the regular endpoints, and an exit of the whole position takes it out of the farm on its own. The response amounts are the position current amounts, for information; nothing is paid out.
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 stakes the position.
application/json- response
operation*