Provider API Reference
Methods
requestAccounts
requestAccounts
Description
Connects to the user’s Phantom account.
Parameters
None
Response
Property | Type | Description |
---|---|---|
|
| Array of the connected user’s |
BtcAccount
Response Object Properties
BtcAccount
Response Object PropertiesProperty | Type | Description |
---|---|---|
|
| The Bitcoin address owned by the user |
|
| The address's format |
|
| A hex string representing the bytes of the public key of the account |
|
| The general purpose of the address. If |
signMessage
signMessage
Description
Signs a message with the user’s Phantom account.
Parameters
Property | Type | Description |
|
| The message to be signed |
|
| One of the user’s addresses that should be used to sign the message |
Response
Property | Type | Description |
|
| Object containing the signature |
signPSBT
signPSBT
Description
Signs a Partially-Signed Bitcoin Transaction.
Parameters
Property | Type | Description |
---|---|---|
|
| A serialized PSBT |
|
| Configuration options for signing the PSBT |
options
parameters
options
parametersProperty | Type | Description |
---|---|---|
|
| An array containing the indexes of which transaction inputs to sign, and how to sign them. |
Response
Property | Type | Description |
---|---|---|
|
| A serialized PSBT where the inputs belonging to the user’s account have been signed. |
Events
accountsChanged
accountsChanged
Description
The event that is emitted when a user changes their connected Phantom account.
Properties
Property | Type | Description |
|
| The array of |
BtcAccount
Response Object Properties
BtcAccount
Response Object PropertiesProperty | Type | Description |
|
| The Bitcoin address owned by the user |
|
| The address’s format (see: https://bitcoin.design/guide/glossary/address/) |
|
| A hex string representing the bytes of the public key of the account |
|
| The general purpose of the address. If |
Last updated