Skip to content

Creating a marketplace

hugomartinez edited this page Dec 11, 2023 · 3 revisions

Creating a marketplace

The AtomicMarket is designed to not have a centralized entity that receives all the fees. Instead, fees are paid to the marketplaces that facilitate the creation of sales and auctions as well as the marketplaces that facilitate the purchases of sales and the bids for auctions.

Registering a new marketplace

If you plan to run a marketplace and what to receive these fees, the first step is to call the regmarket action to register a new market. This name can either be your own account name or any 12 character name that is not also used by another account. This is to prevent impersonation.

Use your marketplace name in actions

The following actions have parameters for the marketplace that facilitates the action:

When your marketplace facilitates any of these actions, fill the respective marketplace parameter with the marketplace name you just created.

Withdraw collected fees

Fees are automatically added to your balance when a sale listing is purchased and when the seller / creator of an auction claims his tokens. You can then use the withdraw action to withdraw these tokens.