Reference
Account
Name | Type | Description |
---|---|---|
address | string | The address of the account |
addressType | AddressType | The type of the address |
publicKey | string | The public key of the account |
purpose | AddressPurpose | The purpose of the address |
AddressType (enum)
Name | Value |
---|---|
P2PKH | "P2PKH" |
P2WPKH | "P2WPKH" |
P2TR | "P2TR" |
AddressPurpose (enum)
Name | Value |
---|---|
Ordinals | "Ordinals" |
Payment | "Payment" |
Config
Name | Type | Description |
---|---|---|
networks | BitcoinNetwork[] | The available Bitcoin networks |
connectors | Connector[] | The available connectors |
currentConnection | Connector | undefined | The current connection |
network | BitcoinNetwork | The current Bitcoin network |
setState | (state: Partial<ConfigState>) => void | Sets the configuration state |
getState | () => ConfigState | Gets the current configuration state |
subscribe | (callback: (newState: ConfigState | undefined) => void) => () => void | Subscribes to configuration changes |