An easy to use TypeScript API for interacting with the nightmarket.io marketplace contract.
This API is used by the Night Market front end.
We welcome contributions to Night Market from the community -- please open a pull request!
Feel free to join the Motley DAO Discord to talk to the team and other community members.
All contributions are automatically licensed under the Apache 2.0 license.
You can install the package with NPM or using Yarn.
npm install @motleylabs/mtly-nightmarket
yarn add @motleylabs/mtly-nightmarket
The beta
branch is available by using the @motleylabs/mtly-nightmarket@beta
package.
All marketplace actions are implemented as functions of the NightmarketClient
.
Each action returns the instructions to add to a Solana Web3.js VersionedTransaction
.
Example usge of the API can be found in the examples
directory.