@ownerchip/blockchain-sdk-dev
TypeScript icon, indicating that this package has built-in type declarations

0.1.17 • Public • Published

OwnerChip Blockchain SDK

OwnerChip Blockchain SDK is simplified interface to interact with the multi-chain blockchain layer of OwnerChip solutions without prior knowledge of the smart-contracts.

How to use this package:

First, add the package to your package.json and install it.
You can then import it wherever needed:

import {OcBlockchainSdk} from '@ownerchip/blockchain-sdk';

Optionally, you can initialize the SDK with different parameters. Otherwise, the default multi-chain configuration will be used. The default config parameters can be found here.

import type {OcBlockchainSdkParameters} from '@ownerchip/blockchain-sdk';

const myParams: OcBlockchainSdkParameters = { ... };

const ocBlockchainSdk = new OcBlockchainSdk(
    params: myParams
)

Once initialized, the SDK can be used to retrieve data like this:

ocBlockchainSdk.getCollectionOfTokenId("0x...")

Development

To install and use this npm package from source, run the following command (it generates types from smart contract ABIs automatically)

npm i
npm run build:prod

Readme

Keywords

none

Package Sidebar

Install

npm i @ownerchip/blockchain-sdk-dev

Weekly Downloads

7

Version

0.1.17

License

MIT

Unpacked Size

1.12 MB

Total Files

7

Last publish

Collaborators

  • kinggongzilla
  • f13r