$ pnpm install
# build
$ make build
# lint
$ make lint
# lint test build
$ make check
# clean dist
$ make clean
# clean dist + node_modules
$ make hard-clean
# start
$ pm2 start ecosystem.yaml
# stop
$ pm2 stop ecosystem.yaml
# view log
$ pm2 log 1
The SDK for interact with blockchain fanzeal version v3.2.1
Repository https://bitbucket.org/chromawallet/fanzeal-blockchain/src/v3.2.1
npm install fanzeal-blockchain-sdk
# or
pnpm install fanzeal-blockchain-sdk
import { BlockchainSDK } from 'fanzeal-blockchain-sdk'
const sdk = await BlockchainSDK.init({
nodeURLPool: 'https://chromia.dev.stuttgart.murdoch-partners.com',
blockchainRID: '397061BDD0B5BBCFE0C3D0272853CD8FF317BAD48A0AA177724A6FC3399974A0'
})
// from module
const collections = await sdk.collection.getAllCollectionsQueryObject()
// from query object
const collections = await sdk.query({ name: "collection.get_all_collections" })
const signer = new ethers.Wallet("<ACCOUNT_PRIVATE_KEY>")
await sdk.login(signer)
const isAuthenticated = await sdk.isAuthenticated()
// 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] })