relevant tag icon
English Auction
copy icon
solidity-by-example
• version 1.0.0
Auction
Sale
NFT
English
Deployable

English Auction

Auction 1) Seller of NFT deploys this contract. 2) Auction lasts for 7 days. 3) Participants can bid by depositing ETH greater than the current highest bidder. 4) All bidders can withdraw their bid if it is not the current highest bid. After the auction 1) Highest bidder becomes the new owner of NFT. 2) The seller receives the highest bid of ETH.

*Visit desktop site to download or deploy

Version

1.0.0

Recent Use

🍞 0x77CA downloaded
🥐 0x77CA downloaded
🥖 0x77CA saved

Last Publish

12/12/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
bid() :
Adds a bid greater than the current highest bid.
bids(address) :
A list of the current bids for an address.
end() :
Ends the current auction.
endAt() :
The time at which the auction ends.
ended() :
Whether or not the auction is ended.
highestBid() :
The current highest bid.
highestBidder() :
The current highest bidder.
nft() :
The address of the NFT for sale.
nftId() :
The ID of the NFT for sale.
seller() :
The seller of the NFT for sale.
start() :
The timestamp at which the auction begins.
started() :
Whether or not the auction has begun.
withdraw() :
Withdraws bids for an account if that address is not the current highest bidder.

Get Cookin'
share iconShare

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

Bytecode

Download

Verification

Download

Recent Use

🍞 0x77CA downloaded
🥐 0x77CA downloaded
🥖 0x77CA 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.