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
Parameter | Type | Description | Example |
---|---|---|---|
_nft | address | Address of NFT contract | 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 |
ids | uint256[] | 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]
);