0.2.54 • Published 4 months ago

bitcoinsdk v0.2.54

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

BitcoinSDK - The Ultimate Bitcoin Integration Tool

BitcoinSDK is a powerful and modular JavaScript/TypeScript SDK designed to seamlessly integrate Bitcoin wallets and The OpenBook Protocol into your react applications.

With built-in support for multiple wallet providers, PSBT signing, and atomic swaps via OpenBook, BitcoinSDK provides developers with an efficient and scalable way to interact with the Bitcoin ecosystem.

✨ Features

  • ✅ Multi-wallet support: Connect, sign transactions, and manage wallets effortlessly.
  • ✅ Bitcoin RPC utilities: Fetch balances, send raw transactions, and interact with the Bitcoin blockchain.
  • ✅ OpenBook Protocol Integration: Easily list and trade Counterparty assets via atomic swaps.
  • ✅ React-ready UI components: Prebuilt components for fast integration.
  • ✅ TailwindCSS compatible: Fully customizable UI with Tailwind support.

🚀 Get started today and build the next generation of Bitcoin-powered applications!

⚙️ Instalation

To install use your favorite package manager:

npm install bitcoinsdk

If you are using deno use:

deno add npm:bitcoinsdk

This package is split in two:

🛠 SDK Structure

BitcoinSDK is split into two modules, allowing you to choose based on your needs:

1️⃣ bitcoinsdk/core - For Backend & Core Functionality

If you only need blockchain interaction, use the core package:

import { bitcoinsdk } from "bitcoinsdk/core";

// Get Bitcoin balance
const balance = await const balance = await bitcoinsdk.openbook.getBTCBalance({
  address: "your_bitcoin_address"
})

// Fetch Counterparty asset details
const asset = await bitcoinsdk.counterparty.getAsset({ asset: "XCP" });

// Interact with OpenBook Protocol
const orderbook = await bitcoinsdk.openbook.getAtomicSales({
    page: 1,
    limit: 100
});
  • 🔹 Provides access to Bitcoin, Counterparty, and OpenBook APIs.
  • 🔹 No UI dependencies—perfect for backend use or custom UI projects.

2️⃣ bitcoinsdk/ui - Prebuilt UI Components

If you want to quickly integrate wallet connect button use the web component

<connect-wallet-button></connect-wallet-button>
  • 🔹 Includes prebuilt UI components for React.
  • 🔹 Integrates seamlessly with multiple wallet providers.

if you want to customize the wallet connect button you have this css variables accessible:

:host {
    --wallet-button-bg: #fefefe;
    --wallet-button-text: #000;
    --wallet-button-border: #ff9900;
    --wallet-button-hover-bg: #ff9900;
    --wallet-font-family: "Arial", sans-serif;
    --wallet-width: 184px;
    --wallet-height: 48px;
}

📖 Documentation

📌 More detailed docs will be available soon. 📌 This is an open-source project—contributions are welcome! ❤️

🔗 GitHub Repository: BitcoinSDK on GitHub

🚀 Join us in building the next generation of Bitcoin-powered applications!

0.2.52

4 months ago

0.2.51

4 months ago

0.2.50

4 months ago

0.2.54

4 months ago

0.2.53

4 months ago

0.2.41

4 months ago

0.2.40

4 months ago

0.2.49

4 months ago

0.2.48

4 months ago

0.2.47

4 months ago

0.2.46

4 months ago

0.2.45

4 months ago

0.2.44

4 months ago

0.2.43

4 months ago

0.2.42

4 months ago

0.2.39

4 months ago

0.2.30

4 months ago

0.2.38

4 months ago

0.2.37

4 months ago

0.2.36

4 months ago

0.2.35

4 months ago

0.2.34

4 months ago

0.2.33

4 months ago

0.2.32

4 months ago

0.2.31

4 months ago

0.2.29

4 months ago

0.2.28

4 months ago

0.2.27

4 months ago

0.2.26

4 months ago

0.2.25

4 months ago

0.2.24

4 months ago

0.2.22

5 months ago

0.1.10

5 months ago

0.1.11

5 months ago

0.1.12

5 months ago

0.1.13

5 months ago

0.1.14

5 months ago

0.1.15

5 months ago

0.2.21

5 months ago

0.2.20

5 months ago

0.2.19

5 months ago

0.2.18

5 months ago

0.2.17

5 months ago

0.2.16

5 months ago

0.2.15

5 months ago

0.2.14

5 months ago

0.2.13

5 months ago

0.2.12

5 months ago

0.2.11

5 months ago

0.2.10

5 months ago

0.2.1

5 months ago

0.1.2

5 months ago

0.2.0

5 months ago

0.2.7

5 months ago

0.1.8

5 months ago

0.2.6

5 months ago

0.1.7

5 months ago

0.2.9

5 months ago

0.2.8

5 months ago

0.1.9

5 months ago

0.2.3

5 months ago

0.1.4

5 months ago

0.2.2

5 months ago

0.1.3

5 months ago

0.2.5

5 months ago

0.1.6

5 months ago

0.2.4

5 months ago

0.1.5

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago