Your one-stop SDK for Web3 and Dapp Development. Simplify your Dapp development of decentralized applications journey using our comprehensive SDK. Our SDK acts as an umbrella, offering seamless integration and support for various services within KrypCore Web3, including infrastructure, decentralized identity (DID), wallets, NFTs, fungible tokens (FTs), and more.
- Web3 utils for common tasks.
- Simplified API calls to interact with blockchain endpoints.
- Built-in support for NFTs, wallets, and smart contracts.
- Seamless integration with KrypCore services.
To install the SDK, use npm:
npm install @krypc/krypcore-web3-sdk
To use the SDK, first initialize it with the required parameters:
const krypcoreWeb3SDK = require("@krypc/krypcore-web3-sdk").default;
const Web3Engine = await krypcoreWeb3SDK.initialize({
authorization: process.env.authorization,
dappId: process.env.dappId,
});
You can access various wrapper packages like ethers
through Web3Engine.wrappers
:
const ethers = Web3Engine.wrappers.ethers;
The SDK provides power methods like wallet, utils, etc:
const balance = await Web3Engine.Wallet.getBalance("0xE6D5514b8De7ef9E5F5c4cc2E8cA0207129DEB65", 80001);
console.log(balance);
The SDK provides access to various core service API methods. Here are a few examples:
const WalletMgrService = new Web3Engine.Services.WalletManager();
const StorageMgrService = new Web3Engine.Services.StorageManager();
const DidManagerService = new Web3Engine.Services.DidManager();
const EasyNftService = new Web3Engine.Services.EasyNFT();
const FTManagerService = new Web3Engine.Services.FTManager();
You can use these service instances to call various methods provided by the respective core services.
For comprehensive documentation, usage examples, and API reference, please check out the Documentation.
We welcome contributions from the community! Please see our Contribution Guidelines before getting started.
Please review our Code of Conduct that outlines the expectations for all community participants.