0.0.10 • Published 10 months ago

fanzeal-blockchain-sdk v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Blockchain Fanzeal SDK Library

The SDK for interact with blockchain fanzeal version v3.2.1

Repository https://bitbucket.org/chromawallet/fanzeal-blockchain/src/v3.2.1

Requirements

  • Node 16 or higher

Installation

npm install ethers@5.7.2 fanzeal-blockchain-sdk
# or
pnpm install ethers@5.7.2 fanzeal-blockchain-sdk

Usage

  • create SDK instance
import { BlockchainSDK } from 'fanzeal-blockchain-sdk'

const sdk = await BlockchainSDK.init({
    nodeURLPool: 'https://chromia.dev.stuttgart.murdoch-partners.com',
    blockchainRID: '397061BDD0B5BBCFE0C3D0272853CD8FF317BAD48A0AA177724A6FC3399974A0'
})
  • Make query
// from module
const collections = await sdk.collection.getAllCollectionsQueryObject()

// from query object
const collections = await sdk.query({ name: "collection.get_all_collections" })
  • Login account
const signer = new ethers.Wallet('<PRIVATE_KEY>')
await sdk.login(signer)
  • Check authenticated
const isAuthenticated = await sdk.isAuthenticated()
  • Send transaction
// from module
const transactionReceipt = await sdk.collection.addCollectionOperation('Pack', 'Pack size 1', 100)

// from operation
const transactionReceipt = await sdk.call({ name: "collection.add_collection", args: [name, description, maxCount] })
0.0.3

10 months ago

0.0.10

10 months ago

0.0.2

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.1

10 months ago