Welcome to the BitkubNextSDK Cookbook! This repository contains a collection of practical recipes for using the BitkubNextSDK to interact with the Bitkub Chain Network. Whether you're new to blockchain development or looking to integrate specific functionalities, this cookbook provides step-by-step guides to help you achieve common tasks using the BitkubNextSDK.
For more in-depth information about this cookbook, please check out the detailed article on Medium:
📝 Read the full article on Medium
BitkubNextSDK is a JavaScript library designed for developers to interact with the Bitkub Chain blockchain network. It offers various methods for managing user authentication, retrieving user information, and executing transactions on the blockchain.
To follow along with the recipes in this cookbook, you'll first need to run:
npm install
or
pnpm install
or
yarn install
The @bitkub-chain/sdk.js
dependency will be included in your package.json
file. This is the core library used throughout the cookbook. For more information about @bitkub-chain/sdk.js, including detailed documentation and usage, Click here.
To set up and initialize the cookbook, follow these steps:
-
Generate Your Credentials:
- Go to the Bitkub Chain Playground and generate your
clientID
andprojectID
.
- Go to the Bitkub Chain Playground and generate your
-
Configure Your SDK Cookbook:
- Insert your
clientID
andprojectID
into thesrc/lib/bitkubchain-sdk.js
file.
- Insert your
Here’s an example:
import { Network, initializeSDK } from '@bitkub-chain/sdk.js'
// Replace with your actual Client ID and Project ID
export const sdk = initializeSDK(
'your-client-id', // Client ID from Bitkub Chain Playground
'your-project-id', // Project ID from Bitkub Chain Playground
Network.BKC_TESTNET,
)
- Now you should be able to start the project! 🚀
For any questions or feedback, don’t hesitate to reach out!
Website : https://www.bitkubchain.com/
Facebook : https://www.facebook.com/bitkubchainofficial
Discord : https://discord.gg/WkJ6j279
Telegram : https://t.me/+jiM6dAP5cxUzZTM1