npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

certhis

v1.8.9

Published

Certhis.io SDK

Downloads

168

Readme

CERTHIS-SDK

The Certhis-SDK is a JavaScript library that enables developers to interact with the Certhis API, create accounts, deploy NFT collections, and mint NFTs.

Documentation

✅ Get Data From API

✅ Creating Account (label)

✅ Create NFT Collection From SDK

✅ Mint NFT (2.94 s/NFT)

Installation


$ npm i certhis

Using CommonJS

Requirements (Node.js >= 8.0.0) , WEBJS V4.0.1 .

const { Web3 } = require("web3");
const Certhis = require("certhis").init(Web3);

Usage

(async () => {
  const getLabel = await Certhis.label.one(470);

  console.log(getLabel);
})();

API

Web3 Connector

Create web3 connection

await Certhis.wallet.connect(rpc_url, wallet_passphrase);

Account (Label)

GET

Get single Label object by label_index

await Certhis.label.one(label_index);

Get List of Label Object

await Certhis.label.many(params);

CREATE

Create Label with Web3 (wallet loaded), contract id and label object

await Certhis.label.create({
  web3: web3Inject,
  label_object: {
    creator_address: "0x883f9048236a7Ab0DB1e352fe27760830BcC53B9",
  },
  mulParam: 2,
});

Collection

GET

Get single Collection object by collection_index

await Certhis.collection.one(collection_index);

Get List of Collection Object

await Certhis.collection.many(params);

Get Attributes Collection List by collection_index

await Certhis.collection.attributes(collection_index);

Get number of minted NFT on Collection by collection_index

await Certhis.collection.minted(collection_index);

DEPLOY

Deploy NFT collection on label

await Certhis.collection.create({
  web3: Web3,
  collection_object: {
    collection_name: "Test Collection",
    collection_symbol: "TEST",
    collection_type: true,
  },
  whitelist: ["0x883f9048236a7Ab0DB1e352fe27760830BcC53B9"],
});

Transfer Ownership

await Certhis.collection.transferOwnership({
  web3: Web3,
  collection_index: 979,
  new_owner: "0x883f9048236a7Ab0DB1e352fe27760830BcC53B9",
});

Contract

Get Single Contract Object by contract_id

await Certhis.contract.one(contract_id);

Get Full List of Available Contracts Object

await Certhis.contract.many();

NFT

GET

Get Single NFT Object by nft_id , collection_address and chain_id

await Certhis.nft.one(nft_id, collection_address, chain_id);

Get List of NFT Object

await Certhis.nft.many(params);

MINT

Mint NFT with collection index

await await certhis.nft.mint({
  web3: web3Inject,
  to_wallet: mint_wallet,
  collection_index: 979,
  nft: {
    owner_address: mint_wallet,
    token_uri:
      "https://certhis.mypinata.cloud/ipfs/QmSRE5iGJCnNMti5t6RukoUxPccX3ouDRwKx7Sy5jupcNR/28.json",
  },
  price_value: 0,
  mulParam: 2,
  disable_nonce:false,
  custom_nonce:false,,
  mulParamGasPrice:1
});

User

Get Single User Object by wallet_address

await Certhis.user.one(wallet_address);

Statistic

Get Label Statistics object by label_index

await Certhis.stat.label(label_index);

Get Collection Statistics object by collection_index

await Certhis.stat.collection(collection_index);

Get User Statistics object by wallet_address

await Certhis.stat.user(wallet_address);

Transaction

Get Label Transaction object by label_index

await Certhis.transaction.label(label_index);

Get User Transaction object by wallet_address

await Certhis.transaction.user(wallet_address);

Get Collection Transaction object by collection_index

await Certhis.transaction.collection(collection_index);

Get NFT Transaction object by nft_id and collection_address

await Certhis.transaction.nft(nft_id, collection_address, chain_id, offset_id);

Signature

Generate message signature from Certhis api

await Certhis.sign.sign(wallet_address, sign_header);

Generate safe message signature from Certhis api

await Certhis.sign.SafeSign(wallet_address, sign_header);

Check signature from Certhis api

( sign_id is optional )

await Certhis.sign.check(wallet_address, sign_message, sign_id);