Selling a Token
Once a token has been created, it can then be put up for sale.
Minter strategy contracts are separate contracts that hold minting logic, but the main 1155 is called for minting.
Check out the [minting](./Minting Tokens.md) section to learn more about minters.
View the list of deployed contract addresses here.
To create a sale you must use the callSale
function on the 1155 contract.
This will set the sale in the appropriate minter.
The data that is passed into the minter is used to call the setSale
function.
Each minter has a unique salesConfig.
Fixed Price Sale
Calling callSale
on an 1155 contract will create a sale for an NFT, but the FIXED_PRICE_SALE_STRATEGY
address must be specified.
The salesConfig
for a fixed price is structured as follows:
Merkle Sale
Create a allow list sale with a Merkle proof.
Note, the price and the max mint amount per address are specified when creating the Merkle tree.
The Merkle sales config is as follows:
Royalty
Royalties are set on the main 1155 contract.
royaltyBPS
: The royalty amount in basis points for secondary sales.royaltyRecipient
: The address that will receive the royalty payments.
This can be set at both the contract and token level.
Withdrawing Funds
Admin can withdraw all funds to the msg.sender
.
Admin can withdraw a certain amount to a specific address.
Last updated