The Mesh team present: "An Aiken library to make devs' day-to-day lives easier" series

Today: the Marketplace contract

This marketplace allows anyone to buy and sell native assets such as NFTs.

Step 1: go to https://meshjs.dev/smart-contracts/marketplace

Step 2: go to “Mint a token to try the demo” and mint the Mesh token.

Step 3: go to “List Assets”, connect your wallet, and click on “List Mesh Token” (yep, the same token you minted in step 2).

Step 4: once listed, go to “Update Listing” and update the listing price of your Mesh token.

Step 5: in this point, you have to options:

  • Option 5.1: go to “Buy Asset” and buy your Mesh token, or

  • Option 5.2: go to “Cancel Listing” and take your token back to your wallet.

Try both! Note: after trying one of the options, you have to repeat steps 2 and 3 to test the next one.

Would you like to take a look at the source code of the contract?

For sure! Go to mesh/packages/contracts/src/marketplace at main · MeshJS/mesh · GitHub


Mesh: making life :sun_behind_small_cloud:easier for developers

Tomorrow: inside the Marketplace contract’s List Asset endpoint.

1 Like