@imtbl/blockchain-data
TypeScript icon, indicating that this package has built-in type declarations

2.4.3 • Public • Published

About

The Blockchain Data SDK provides a set of wrapper functions for interacting with the Immutable Blockchain Data APIs. It provides a simple and easy-to-use interface for querying blockchain data, such as assets, orders, and trades.

Read more about the Blockchain Data APIs in our docs here.

Table of Contents

Usage

You can find an example usage of this package in the example set up here

Installation

Individual Package Installation

To install this package, run the following command:

npm add @imtbl/blockchain-data
# or
pnpm add @imtbl/blockchain-data
# or
yarn add @imtbl/blockchain-data

SDK Installation

This package is also included within the @imtbl/sdk NPM package and can be re-exported directly from there.

Conditional Exports

If your environment supports conditional exports, you can import the contents of this package directly from the @imtbl/sdk package using the @imtbl/sdk/blockchain_data import path like so:

import { APIError, BlockchainData } from '@imtbl/sdk/blockchain_data';

This is the recommended way of consuming this package, as it allows for better tree-shaking and smaller bundle sizes.

Direct Imports

If your environment does not support conditional exports, you will need to import the contents of this package directly from the @imtbl/sdk package like so:

import { blockchainData } from '@imtbl/sdk';

const { APIError, BlockchainData } = blockchainData;

However this method will result in a larger bundle size as the entire @imtbl/blockchain-data package will be included in your bundle.

Readme

Keywords

none

Package Sidebar

Install

npm i @imtbl/blockchain-data

Weekly Downloads

3,260

Version

2.4.3

License

Apache-2.0

Unpacked Size

46.7 kB

Total Files

12

Last publish

Collaborators

  • tcurtin88
  • alex-immutable
  • platform-sa
  • immutable-npm