Log In

This function allows users to withdraw their NFT that has been added to the liquidity pool, in order to cancel the listing status of the NFT. This operation applies to the sell pool (listing) and the NFT-token trade pool (liquidity mining).

Request Parameters
ParameterTypeDescriptionExample
_nftaddressAddress of NFT contract0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
idsuint256[]NFT TokenIDs to withdraw[1003, 1005]

call pool contract

Additional Information
// Data structure
function withdrawERC721(IERC721 a, uint256[] calldata nftIds) external
Return Parameters

None

ABI

['function withdrawERC721(address,uint256[]) external']

Code Example

import { ethers, utils } from 'ethers';

const abi = ['function withdrawERC721(address,uint256[]) external'];
const signer = new ethers.providers.Web3Provider(window?.ethereum).getSigner();
const contract = new ethers.Contract(poolAddress, abi, signer);
const txResult = await contract.withdrawERC721(
	'0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
   [1003, 1005]
);