When the NFT in the sell pool created by the user is sold and the curve changes, the user can continue to add new NFT to the pool for sale. 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.
Request Parameters
Parameter | Type | Description | Example |
---|---|---|---|
_nft | address | Address of NFT contract | 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 |
ids | uint256[] | NFT TokenIDs to deposit | [1003, 1005] |
recipient | address | Pool address | 0x230c7E45Cc2D73fa46dFb70EAd1F9B965F558030 |
call factory contract
Additional Information
// Data structure
function depositNFTs(
IERC721 _nft,
uint256[] calldata ids,
address recipient
) external
Return Parameters
None
ABI
function depositNFTs(address,uint256[],address) external
Code Example
import { ethers, utils } from 'ethers';
const abi = ['function depositNFTs(address,uint256[],address) external'];
const signer = new ethers.providers.Web3Provider(window?.ethereum).getSigner();
const contract = new ethers.Contract(factoryAddress, abi, signer);
const txResult = await contract.depositNFTs(
'0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
[1,2,3],
'0x230c7E45Cc2D73fa46dFb70EAd1F9B965F558030'
);