New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mobit-sdk

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobit-sdk

A comprehensive SDK for integrating with the Mobit platform, supporting operations on Nervos CKB and Bitcoin for RGBPP assets, including transfers, leaps, and token management.

latest
npmnpm
Version
2.3.2
Version published
Maintainers
1
Created
Source

Mobit SDK

npm version npm downloads license

Overview

The Mobit SDK is a comprehensive toolkit designed for interacting with the CKB (Nervos Network) and Bitcoin networks. It provides a set of utilities for handling XUDT tokens and RGBPP assets, enabling developers to create, manage, and transfer assets across these networks with ease.

Installation

To install the Mobit SDK, run the following command:

npm install mobit-sdk

Usage

Initializing the SDK

To start using the SDK, you need to initialize the RgbppSDK class with the appropriate network configuration. Here’s how you can do it:

import { RgbppSDK } from "mobit-sdk";

const isMainnet = true; // Set to false for testnet
const sdk = new RgbppSDK(isMainnet);

CKB Helper

The CkbHelper class provides a way to interact with the CKB network, depending on whether you're on the mainnet or testnet.

import { CkbHelper } from "mobit-sdk";

const ckbHelper = new CkbHelper(true); // true for mainnet, false for testnet

BTC Helper

The BtcHelper class provides utilities for interacting with the Bitcoin network.

import { BtcHelper, AbstractWallet } from "mobit-sdk";

const wallet: AbstractWallet = // Initialize your wallet instance
const networkType = "mainnet" || "testnet";
const btcTestnetType = "testnet" || undefined;
const btcHelper = new BtcHelper(wallet, networkType, btcTestnetType);

Transactions

The SDK provides several functions to create different types of transactions. For detailed usage and parameters, refer to the API Documentation on GitHub.

XUDT Transactions

Leap Transactions

RGBPP Functions

Spore Functions

Preparing Transactions

The SDK also provides functions to prepare unsigned transactions and PSBTs (Partially Signed Bitcoin Transactions). For detailed usage and parameters, refer to the API Documentation on GitHub.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

FAQs

Package last updated on 05 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts