Log In

This function allows users to withdraw their NFT from 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[]Array of NFT TokenIDs to withdraw from the pool[1003]
amountsuint256[]Array of the number of tokens to withdraw for each[100]

call pool contract

Additional Information
// Data structure
function withdrawERC1155(
        IERC1155 _nft,
        uint256[] calldata ids,
        uint256[] calldata amounts
    ) external 
Return Parameters

None

ABI

function withdrawERC1155(address,uint256[],uint256[]) external

Code Example

import { ethers, utils } from 'ethers';

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