Skip to main content
To get started, install the latest version of the Bigmi core and client packages.

Installation

The @bigmi/client package provides wallet connectors and tools to integrate Bitcoin wallet extensions with your web applications. This package is essential for building Bitcoin applications that need to interact with various wallet providers.

Configuration

The client works with a config object that manages the core Bigmi client, connectors, storage, and events.

Wallet Interactions

The Bigmi library provides connectors for connecting to 10+ wallets.

Supported Wallets

  • Binance Wallet
  • Xverse
  • Phantom
  • Bitget
  • Ctrl
  • Leather
  • OKX
  • Onekey
  • Oyl
  • Unisat
  • Magic Eden
  • Dynamic (embedded wallet)

Custom Connectors

You can create custom connectors by defining a function that returns a createConnector with config properties and methods implemented.

Advanced Configuration

Transport vs Client Configuration

Bigmi’s createConfig supports two mutually exclusive configuration patterns - you can use either transports or client, but not both:

Static transports Approach

  • Bigmi automatically creates clients using your transport mapping
  • Supports chain-specific properties via objects
  • More concise for straightforward configurations

Dynamic client Approach

  • You control client creation with a factory function
  • Enables conditional logic based on chain properties
  • More flexible for complex configurations

When to Use Each:

Use transports when:
  • Simple static transport mapping is sufficient
  • You want Bigmi to handle client creation automatically
  • Configuration is straightforward and doesn’t need runtime logic
Use client when:
  • You need conditional logic based on chain properties
  • You want full control over client configuration
  • You need environment-specific or complex transport selection