Provider API (Signet): Bitcoin-Compatible Chain Integration Guide

·

What Is Injected Provider API (Signet)?

The OKX Injected Providers API (Signet) is a JavaScript model embedded by OKX into websites, enabling DApps to:

Note: BTC Signet requires OKX Extension v2.82.32 or higher.


Core Functions

1. Connect Wallet

okxwallet.bitcoinSignet.connect()

Returns:

Example Use Case:
Initialize wallet access before transaction signing.


2. Sign Messages

okxwallet.bitcoinSignet.signMessage(signStr[, type])

Parameters:

Returns:

Best Practice: Use BIP-322 for Taproot compatibility.


3. Sign PSBT Transactions

okxwallet.bitcoinSignet.signPsbt(psbtHex[, options])

Key Parameters:

Note: Include publicKey for Taproot inputs.

Returns:

👉 Master Bitcoin PSBT Signing


4. Batch Sign PSBTs

okxwallet.bitcoinSignet.signPsbts(psbtHexs[, options])

Parameters:

Returns:


FAQ

Q1: Which OKX versions support BTC Signet?

A: Extension v2.82.32 or newer.

Q2: How to handle Taproot address signing?

A: Always include publicKey in PSBT inputs.

Q3: Can I disable auto-finalization?

A: Yes, set autoFinalized: false in options.

Q4: What’s the default message signing method?

A: ECDSA (override with "bip322-simple" for advanced use).


SEO Keywords

  1. Bitcoin Signet API
  2. PSBT signing
  3. OKX wallet integration
  4. DApp development
  5. Taproot transactions
  6. Blockchain provider
  7. BTC Signet

👉 Explore OKX Developer Tools