0.2.54 • Published 7 months ago

bitcoinsdk v0.2.54

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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

8 months ago

0.2.51

8 months ago

0.2.50

8 months ago

0.2.54

7 months ago

0.2.53

8 months ago

0.2.41

8 months ago

0.2.40

8 months ago

0.2.49

8 months ago

0.2.48

8 months ago

0.2.47

8 months ago

0.2.46

8 months ago

0.2.45

8 months ago

0.2.44

8 months ago

0.2.43

8 months ago

0.2.42

8 months ago

0.2.39

8 months ago

0.2.30

8 months ago

0.2.38

8 months ago

0.2.37

8 months ago

0.2.36

8 months ago

0.2.35

8 months ago

0.2.34

8 months ago

0.2.33

8 months ago

0.2.32

8 months ago

0.2.31

8 months ago

0.2.29

8 months ago

0.2.28

8 months ago

0.2.27

8 months ago

0.2.26

8 months ago

0.2.25

8 months ago

0.2.24

8 months ago

0.2.22

8 months ago

0.1.10

8 months ago

0.1.11

8 months ago

0.1.12

8 months ago

0.1.13

8 months ago

0.1.14

8 months ago

0.1.15

8 months ago

0.2.21

8 months ago

0.2.20

8 months ago

0.2.19

8 months ago

0.2.18

8 months ago

0.2.17

8 months ago

0.2.16

8 months ago

0.2.15

8 months ago

0.2.14

8 months ago

0.2.13

8 months ago

0.2.12

8 months ago

0.2.11

8 months ago

0.2.10

8 months ago

0.2.1

8 months ago

0.1.2

8 months ago

0.2.0

8 months ago

0.2.7

8 months ago

0.1.8

8 months ago

0.2.6

8 months ago

0.1.7

8 months ago

0.2.9

8 months ago

0.2.8

8 months ago

0.1.9

8 months ago

0.2.3

8 months ago

0.1.4

8 months ago

0.2.2

8 months ago

0.1.3

8 months ago

0.2.5

8 months ago

0.1.6

8 months ago

0.2.4

8 months ago

0.1.5

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago