This function allows users to deposit their NFT into the liquidity pool, in order to list the NFT for sale. This operation applies to the sell pool (listing) and the NFT-token trade pool (liquidity mining). When the NFT type is ERC-1155, this function is only available when the NFT to be added by the user and the NFT in the pool belong to the same collection and have the same tokenID.

Request Parameters
_nftaddressAddress of NFT contract0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
idsuint256[]Array of NFT TokenIDs to deposit[1003, 1005]
recipientaddressAddress of the pool recipient0x230c7E45Cc2D73fa46dFb70EAd1F9B965F558030
countsuint256[]Array of the number of tokens to deposit for each[100]

call factory contract

Additional Information
// Data structure
function depositNFTs1155(
        IERC1155 _nft,
        uint256[] calldata ids,
        address recipient,
        uint256[] calldata counts
    ) external 
Return Parameters



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

Code Example

import { ethers, utils } from 'ethers';

const abi = ['function depositNFTs1155(address,uint256[],address,uint256[]) external'];
const signer = new ethers.providers.Web3Provider(window?.ethereum).getSigner();
const contract = new ethers.Contract(factoryAddress, abi, signer);
const txResult = await contract.depositNFTs1155(