Socket
Socket
Sign inDemoInstall

atomicmarket

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomicmarket

js module to fetch data from the atomicmarket contract


Version published
Weekly downloads
29
increased by26.09%
Maintainers
4
Weekly downloads
 
Created
Source

AtomicMarket JavaScript

JS Library to read data from the atomicmarket contract which is based on the atomicassets NFT standard.

Contract / General Documentation can be found on https://github.com/pinknetworkx/atomicmarket-contract/wiki

Usage

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install atomicmarket

Initialize

Web library can be found in the dist folder

// standard import
const {AtomicMarketApi} = require("atomicmarket");
// ES6 import
import {AtomicMarketApi} from "atomicmarket"

Documentation

There are two methods available to fetch data from the blockchain.

  • ExplorerAPI: uses an hosted API which proves simple and fast REST API endpoints
  • RpcAPI: uses only native nodeos calls

Explorer API

The explorer API uses eosio-contract-api to query data about the NFTs. A documentation of each endpoint and its responses can be found here. It is recommended to self-host the API for the best performance.

Example
// init Explorer Api
// endpoint: server where atomicmarket api is deployed
// namespace: used namespace for the API
// options:
// - fetch: either node-fetch module or the browser equivalent
const api = new AtomicMarketApi("https://test.wax.api.atomicassets.io", "atomicmarket", {fetch});

const sale = await api.getSale("100");

Keywords

FAQs

Package last updated on 13 Sep 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc