Methods
requestAccounts
Description
Connects to the user’s Phantom account.Parameters
NoneResponse
BtcAccount response object properties
The address’s format. For details, see Bitcoin Design Glossary.
The general purpose of the address. If
ordinals, the user prefers to store Ordinals on this address. If payment, the user prefers to store Bitcoin on this address.signMessage
Description
Signs a message with the user’s Phantom account.Parameters
Response
signPSBT
Description
Signs a Partially-Signed Bitcoin Transaction (PSBT).Parameters
options parameters
An array containing the indexes of which transaction inputs to sign, and how to sign them.Response
Events
accountsChanged
Description
The event that is emitted when a user changes their connected Phantom account.Properties
BtcAccount response object properties
The address’s format. For details, see Bitcoin Design Glossary.