2.2.6 • Published 15 days ago

@cometh/marketplace-sdk v2.2.6

Weekly downloads
-
License
MIT
Repository
-
Last release
15 days ago

@cometh/marketplace-sdk

This is a TypeScript SDK for interacting with the Marketplace API. It simplifies the process of making requests to the API by providing convenient methods for various operations related to NFTs and their orders. It also provides all the necessary Typescript typing you might need.

The possible operations include registering new collections, searching for assets, creating and searching orders, analyzing your marketplace palce statistics etc...

Main documentation

SDK Reference documentation

API reference documentation

Installation

To add the @cometh/marketplace-sdk to your project, you can use npm or yarn:

npm install @cometh/marketplace-sdk
yarn add @cometh/marketplace-sdk

Usage

After installation, you can import MarketplaceSdk from the SDK in your TypeScript code:

import { MarketplaceSdk } from '@cometh/marketplace-sdk';

Create an instance of MarketplaceSdk and call its methods to interact with the Marketplace API.

const networkApiUrl = 'https://api.marketplace.prod.core.cometh.tech/v1/doc'

const marketplaceSdk = new MarketplaceSdk({
  BASE: networkApiUrl,
  HEADERS: {
    apikey: 'YOUR_API_KEY'
  }
})

Once initialized, the SDK is ready to be used.

const assetsSearch = await marketplaceSdk.asset.searchAssets({
  owner: userAddress,
  contractAddress: MY_COLLECTION_ADDRESS
})
2.2.6

15 days ago

2.1.2

16 days ago

2.2.5

17 days ago

2.2.4

25 days ago

2.2.3

28 days ago

2.2.1

1 month ago

2.2.2

1 month ago

2.1.1

2 months ago

2.0.2

3 months ago

2.1.0

3 months ago

2.0.1

3 months ago

1.0.13

3 months ago

2.0.0

3 months ago

1.0.12

3 months ago

1.0.11

4 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago