List NFT
This is a guide used to list an NFT in DripVerse.
Get Contract Signer
Make sure you've contractSigner object before proceeding.
Please make sure your contractSigner
from previous step is derived from the right contract and call the functions below accordingly.
const price = 25;
The price is in native tokens. For example, if your network is Polygon, the above will represent 25 MATIC tokens.
List Data:
const listData = {
nftId: "1"
};
In case of ERC1155, you'd need to add amount:
listData.amount = 4; // If you want to list 4 tokens.
Finally, call list
method:
drip.list(listData, price, contractSigner);