Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@cometh/marketplace-sdk

Package Overview
Dependencies
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cometh/marketplace-sdk

SDK to use Cometh Marketplace API

latest
npmnpm
Version
2.2.9
Version published
Maintainers
6
Created
Source

@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
})

FAQs

Package last updated on 02 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts