Phantom Bitcoin Provider API

Bitcoin provider injected at window.phantom.bitcoin exposing requestAccounts (returning BtcAccount objects with address, publicKey, addressType, and purpose), signMessage, and signPSBT for partially signed Bitcoin transactions. Supports Taproot (p2tr), SegWit (p2wpkh), p2sh, and p2pkh address types and distinguishes payment vs. ordinals purposes. Emits accountsChanged events. The window.phantom.bitcoin provider is scheduled for deprecation in an upcoming release.

Phantom Bitcoin Provider API is one of 10 APIs that Phantom publishes on the APIs.io network.

Tagged areas include Bitcoin, Ordinals, PSBT, Provider, and SegWit. The published artifact set on APIs.io includes API documentation.

API entry from apis.yml

apis.yml Raw ↑
aid: phantom:phantom-bitcoin-provider-api
name: Phantom Bitcoin Provider API
tags:
- Bitcoin
- Ordinals
- PSBT
- Provider
- SegWit
- Taproot
- Wallet
humanURL: https://docs.phantom.com/bitcoin/provider-api-reference
properties:
- url: https://docs.phantom.com/bitcoin/provider-api-reference
  type: Documentation
description: Bitcoin provider injected at window.phantom.bitcoin exposing requestAccounts (returning BtcAccount
  objects with address, publicKey, addressType, and purpose), signMessage, and signPSBT for partially
  signed Bitcoin transactions. Supports Taproot (p2tr), SegWit (p2wpkh), p2sh, and p2pkh address types
  and distinguishes payment vs. ordinals purposes. Emits accountsChanged events. The window.phantom.bitcoin
  provider is scheduled for deprecation in an upcoming release.