@beincom/nft-builder
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

Build Status

NFT Background Builder

Installation

#npm
npm install @beincom/nft-builder
#or yarn
yarn add @beincom/nft-builder

Node.js

const express = require('express');
const nft = require('@beincom/nft-builder/nft');
const builder = require('@beincom/nft-builder/builder');

async function bootstrap() {
  await nft.initContracts({
    rpcUrl: 'https://sepolia-rollup.arbitrum.io/rpc',
    configUrl:''// bic-chain-config-url.
  });
  const app = express()
  const port = 3000

  app.get('/:type/:tokenId', async (req, res) => {
    const { type, tokenId } = req.params
    const name = await nft.getNftName(type, tokenId);
    const nftSvg = builder.generate(type,name);
    res.send(nftSvg)
  })

  app.listen(port, () => {
    console.log(`Example app listening on port ${port}`)
  })


}

Readme

Keywords

none

Package Sidebar

Install

npm i @beincom/nft-builder

Weekly Downloads

52

Version

0.0.14

License

Apache-2.0

Unpacked Size

6.18 MB

Total Files

76

Last publish

Collaborators

  • huyvu-bic
  • vietkhiem-bic
  • bicnpmmember
  • bicnpmadmin
  • thanhlam-bic
  • phuongnamevol
  • nguyenthi
  • quangminh-bic
  • hoangquocviet
  • nhuphuoc
  • xuanhao-bic
  • thienna-beincomm
  • minhtrong
  • minhdat
  • thevan-beincom