UNPKG

@rather-labs/nrc-721-sdk

Version:

SDK for interacting with NFTs under NRC-721 strandard in Layer 1 of Nervos Network

35 lines (28 loc) 564 B
const CKB = require("@nervosnetwork/ckb-sdk-core").default; const utils = require("./utils/utils"); const initialize = async ({ nodeUrl, indexerUrl, }) => { const ckb = new CKB(nodeUrl); await ckb.loadDeps(); const cellCollector = require("./utils/cellCollector")(indexerUrl); const factoryCell = require("./factory")({ cellCollector, ckb, }); const nftCell = require("./nft")({ factoryCell, cellCollector, ckb, }); return { factoryCell, nftCell, utils, ckb, }; }; module.exports = { initialize };