Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Dutch Auction for NFT
copy icon
solidity-by-example
• version 1.0.0
Auction
Sale
NFT
Deployable

Dutch Auction for NFT

An auction in which the auctioneer begins with a high asking price in the case of selling, and lowers it until some participant accepts the price, or it reaches a predetermined reserve price. 1) Seller of NFT deploys this contract setting a starting price for the NFT. 2) Auction lasts for 7 days. 3) Price of NFT decreases over time. 4) Participants can buy by depositing ETH greater than the current price computed by the smart contract. 5) Auction ends when a buyer buys the NFT.

*Visit desktop site to download or deploy

Version

1.0.0

Recent Use

🍞 0x555b saved

Last Publish

12/12/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
buy() :
Buys the NFT for the current NFT price.
discountRate() :
The price decrease for every ms since the auction began.
expiresAt() :
The timestamp at which the sale ends.
getPrice() :
The current price of the nft for sale
nft() :
The contract address of the NFT for sale.
nftId() :
The id of the NFT for sale.
seller() :
The NFT seller.
startAt() :
The timestamp at which the sale began.
startingPrice() :
The starting price.

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i dutch-auction
copy icon

Bytecode

Download

Verification

Download

Recent Use

🍞 0x555b saved

Last Publish

12/12/2022

Solidity Compiler

v0.8.17+commit.8df45f5f

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.