0.1.10 • Published 2 years ago

@ownerchip/blockchain-sdk-staging v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.1.10

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago