0.9.27 • Published 6 months ago

@zoidpay-tech/zoidcore-web3-toolkit v0.9.27

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

@zoidpay-tech/zoidcore-web3-toolkit

Introduction

ZoidCore, a developer toolkit of APIs and SDKs, will let any company transition from Web 2.0 to Web 3.0 easily and effectively.

At this moment, the supported chains are MultiversX, Polygon, Binance and Ethereum

🌟 Highlights

  • Web3 transaction payload creation
  • Smart contract build
  • Integrated compile process
  • Consistent data types
  • Utility API calls for contract verification, status and more

Installation

Run the following command:

npm i @zoidpay-tech/zoidcore-web3-toolkit

🪄 Get your API Key

Usage

Import the package into your project:

import { ZoidCore } from '@zoidpay-tech/zoidcore-web3-toolkit';

Once the package has been insalled, instantiate ZoidCore with your api key:

const zoid = new ZoidCore(process.env.MY_API_KEY as string);

Then, with only one line of code, access one of the classes (ethereum, multivesX, binance or polygon) and the desired function:

const response = await zoid.ethereum.ethCreateToken(ethCreatePayload);

Types

Your payload can be typed. The package exports types as ZoidModels, import as follows:

import { ZoidModels } from '@zoidpay-tech/zoidcore-web3-toolkit';

Full transaction code snippet should look like this:

import { ZoidCore } from '@zoidpay-tech/zoidcore-web3-toolkit';
import { ZoidModels } from '@zoidpay-tech/zoidcore-web3-toolkit';

const ethCreatePayload: ZoidModels.EthTokenCreate = {
    address: '0x365f14a97a16b380dd64b677ea0a92bafa6f606e',
    chainId: 11155111,
    currentAddress: '0x365f14a97a16b380dd64b677ea0a92bafa6f606e',
    supply: 100,
    tokenName: 'MyAmazingToken',
    tokenSymbol: 'AMZG',
    networkProvider: 'https://rpc.sepolia.org',
    numberOfDecimals: 10,
    canMint: true,
    canBurn: true,
    environment: "testnet"
}

const zoid = new ZoidCore(process.env.MY_API_KEY as string);
const response = await zoid.ethereum.ethCreateToken(ethCreatePayload);

Other Utility Functions

FunctionDescription
Get Tx Status
zoid.multiversx.multiversXstatusGet the status of a multiversx transaction
zoid.polygon.polygonGetTxStatusGet the status of a polygon transaction
zoid.ethereum.ethTxStatusGet the status of a ethereum transaction
zoid.bsc.bscTxStatusGet the status of a binance transaction
Verify smart contract
zoid.ethereum.ethVerifyTokenVerifies an ethereum token smart contract
zoid.ethereum.ethVerifyNftVerifies an ethereum nft smart contract
zoid.polygon.polygonVerifyTokenVerifies polygon token smart contract
zoid.polygon.polygonVerifyNftVerifies polygon nft smart contract
zoid.bsc.bscVerifySmartContractTokenVerifies a binance token smart contract
zoid.bsc.bscVerifySmartContractNftVerifies a binance nft smart contract

✨ This is just a brief presentation and does not encompass all the features of ZoidCore ToolKit. For more information, please check the complete documentation here: https://apidocs.zoidcore.com/

Conclusion

The ZoidCore Web3 Toolkit package provides a convenient way to build or migrate to web3. By following the steps outlined in this documentation, you can easily integrate this package into your applications.

0.9.25

10 months ago

0.9.26

10 months ago

0.9.27

6 months ago

0.9.24

10 months ago

0.9.23

10 months ago

0.9.22

10 months ago

0.9.21

10 months ago

0.9.20

10 months ago

0.9.19

11 months ago

0.9.18

11 months ago

0.9.17

11 months ago

0.9.16

11 months ago

0.9.15

11 months ago

0.9.14

11 months ago

0.9.13

11 months ago

0.9.12

11 months ago

0.9.11

11 months ago

0.9.10

11 months ago

0.9.9

11 months ago

0.9.8

11 months ago

0.9.7

11 months ago