Marketplace
Calls
acceptOffer
Accepts an offer on a token Caller must be token owner
Namespace
Type
auctionNft
Auction a bundle of tokens on the open market to the highest bidder
Tokens must be from the same collection
Tokens with individual royalties schedules cannot be sold in bundles
Caller must be the token owner
payment_asset
fungible asset Id to receive payment withreserve_price
winning bid must be over this thresholdduration
length of the auction (in blocks), uses default duration if unspecified
Namespace
Type
bid
Place a bid on an open auction
amount
to bid (in the seller's requested payment asset)
Namespace
Type
buy
Buy a token listing for its specified price
Namespace
Type
cancelOffer
Cancels an offer on a token Caller must be the offer buyer
Namespace
Type
cancelSale
Close a sale or auction returning tokens Requires no successful bids have been made for an auction. Caller must be the listed seller
Namespace
Type
makeSimpleOffer
Create an offer on a token Locks funds until offer is accepted, rejected or cancelled An offer can't be made on a token currently in an auction (This follows the behaviour of Opensea and forces the buyer to bid rather than create an offer)
Namespace
Type
registerMarketplace
Flag an account as a marketplace
marketplace_account
- if specified, this account will be registered entitlement
- Permill, percentage of sales to go to the marketplace If no marketplace is specified the caller will be registered
Namespace
Type
sellNft
Sell a bundle of tokens at a fixed price
Tokens must be from the same collection
Tokens with individual royalties schedules cannot be sold with this method
buyer
optionally, the account to receive the NFT. If unspecified, then any account may purchase asset_id
fungible asset Id to receive as payment for the NFT fixed_price
ask price duration
listing duration time in blocks from now Caller must be the token owner
Namespace
Type
setFeeTo
Set the FeeTo
account This operation requires root access
Namespace
Type
updateFixedPrice
Update fixed price for a single token sale
listing_id
id of the fixed price listing new_price
new fixed price Caller must be the token owner
Namespace
Type
Storage
feeTo
The pallet id for the tx fee pot
Namespace
Type
listingEndSchedule
Block numbers where listings will close. Value is true
if at block number listing_id
is scheduled to close.
Namespace
Type
listings
NFT sale/auction listings keyed by listing id
Namespace
Type
listingWinningBid
Winning bids on open listings.
Namespace
Type
nextListingId
The next available listing Id
Namespace
Type
nextMarketplaceId
The next available marketplace id
Namespace
Type
nextOfferId
The next available offer_id
Namespace
Type
offers
Map from offer_id to the information related to the offer
Namespace
Type
openCollectionListings
Map from collection to any open listings
Namespace
Type
registeredMarketplaces
Map from marketplace account_id to royalties schedule
Namespace
Type
tokenOffers
Maps from token_id to a vector of offer_ids on that token
Namespace
Type
Events
AuctionClose
An auction has closed without selling
Namespace
Type
AuctionOpen
An auction has opened
Namespace
Type
AuctionSold
An auction has sold
Namespace
Type
Bid
A new highest bid was placed
Namespace
Type
FeeToSet
The network fee receiver address has been updated
Namespace
Type
FixedPriceSaleClose
A fixed price sale has closed without selling
Namespace
Type
FixedPriceSaleComplete
A fixed price sale has completed
Namespace
Type
FixedPriceSaleList
A fixed price sale has been listed
Namespace
Type
FixedPriceSalePriceUpdate
A fixed price sale has had its price updated
Namespace
Type
MarketplaceRegister
An account has been registered as a marketplace
Namespace
Type
Offer
An offer has been made on an NFT
Namespace
Type
OfferAccept
An offer has been accepted
Namespace
Type
OfferCancel
An offer has been cancelled
Namespace
Type
Errors
BidTooLow
Auction bid was lower than reserve or current highest bid
Namespace
InvalidMetadataPath
The metadata path is invalid (non-utf8 or empty)
Namespace
InvalidOffer
No offer exists for the given OfferId
Namespace
IsTokenOwner
The caller owns the token and can't make an offer
Namespace
MarketplaceNotRegistered
The account_id hasn't been registered as a marketplace
Namespace
MaxOffersReached
The maximum number of offers on this token has been reached
Namespace
MixedBundleSale
Selling tokens from different collection is not allowed
Namespace
NoAvailableIds
No more Ids are available, they've been exhausted
Namespace
NoCollectionFound
The collection does not exist
Namespace
NotBuyer
The caller is not the specified buyer
Namespace
NotCollectionOwner
Origin is not the collection owner and is not permitted to perform the operation
Namespace
NotForAuction
The token is not listed for auction sale
Namespace
NotForFixedPriceSale
The token is not listed for fixed price sale
Namespace
NoToken
The token does not exist
Namespace
NotSeller
The caller is not the seller of the NFT
Namespace
NotTokenOwner
Origin does not own the NFT
Namespace
RoyaltiesInvalid
Total royalties would exceed 100% of sale or an empty vec is supplied
Namespace
TokenLocked
Cannot operate on a listed NFT
Namespace
TokenNotListed
The token is not listed for sale
Namespace
TokenOnAuction
Cannot make an offer on a token up for auction
Namespace
ZeroOffer
Offer amount needs to be greater than 0
Namespace
Constants
defaultFeeTo
The default account which collects network fees from marketplace sales
Namespace
Type
defaultListingDuration
Default auction / sale length in blocks
Namespace
Type
palletId
This pallet's Id, used for deriving a sovereign account ID
Namespace
Type
Last updated