Creates an instance of Signer.
The client instance.
The provider instance.
Optional_preferredNetworks: NetworkPreference[]Optionalnetwork: WalletNetworkNameGets the Bitcoin account address.
A promise that resolves to the Bitcoin account address.
Gets the Bitcoin public key.
A promise that resolves to the Bitcoin public key.
Connects to the provider by requesting accounts.
A promise that resolves when the connection is established.
Disconnects to the signer.
A promise that resolves when the signer is disconnected.
Register a listener to be called when this signer is replaced.
A function for unregister
Checks if the signer is connected.
A promise that resolves to true if connected, false otherwise.
Signs a raw message with the Bitcoin account.
The message to sign.
A promise that resolves to the signed message.
Signs a PSBT using Xverse wallet.
The hex string of PSBT to sign.
Optionaloptions: SignPsbtOptionsLike
Options for signing the PSBT
A promise that resolves to the signed PSBT as a Hex string
Xverse accepts:
Xverse returns:
Xverse has no equivalent of autoFinalized, so when it is enabled the
requested inputs are finalized locally after signing. sighashTypes is
checked locally against new or replaced signatures; the RPC cannot pass
it to Xverse. disableTweakSigner is not supported and is ignored.
Transaction, prevout, and signature-policy checks also run when
autoFinalized is false. Wallet-added final scripts are rejected.
Broadcasts a PSBT to the Bitcoin network.
Optional_options: SignPsbtOptionsLikeSign and broadcast a PSBT.
The hex string of PSBT to sign and broadcast.
Optionaloptions: SignPsbtOptionsLike
Options for signing the PSBT.
A promise that resolves to the transaction ID as a Hex string.
Class representing a Bitcoin signer that extends SignerBtc