Whether the wallet supports a single call to sign + broadcast (combined flow). Default false; override in implementations like Xverse/JoyID.
Sign and broadcast a PSBT in one call when supported, otherwise falls back to sign then push. Prefer this over manual sign+push to avoid double popups.
Optionaloptions: SignPsbtOptionsGets the internal address, which is the Bitcoin account in this case.
A promise that resolves to a string representing the internal address.
Gets the identity, which is the Bitcoin public key in this case.
A promise that resolves to a string representing the identity
Gets an array of Address objects representing the known script addresses for the signer.
A promise that resolves to an array of Address objects.
prepare a transaction before signing. This method is not implemented and should be overridden by subclasses.
The transaction to prepare, represented as a TransactionLike object.
A promise that resolves to the prepared Transaction object.
Signs a transaction without modifying it.
The transaction to sign, represented as a TransactionLike object.
A promise that resolves to a signed Transaction object.
Connects to the client. This implementation does nothing as the class is read-only.
A promise that resolves when the connection is complete.
Check if the signer is connected.
A promise that resolves the connection status.
Signs a Partially Signed Bitcoin Transaction (PSBT).
The hex string of PSBT to sign
Optional__: SignPsbtOptionsOptions for signing the PSBT
A promise that resolves to the signed PSBT hex string
Pushes a PSBT to the Bitcoin network.
For wallets that support a single call for signing and broadcasting (where supportsSingleCallSignAndBroadcast is true),
this method takes an unsigned PSBT, signs it, and broadcasts it.
For other wallets, this method takes a signed PSBT and only broadcasts it.
The hex string of the PSBT to push. Can be signed or unsigned depending on the wallet's capabilities.
Optional__: SignPsbtOptionsOptions for signing the PSBT. Only used by wallets that perform signing in this step.
A promise that resolves to the transaction ID.
StaticverifyRegister a listener to be called when this signer is replaced.
A function for unregister
Disconnects to the signer.
A promise that resolves when the signer is disconnected.
Gets the recommended Address object for the signer.
Optional_preference: unknownOptional preference parameter.
A promise that resolves to the recommended Address object.
Gets the recommended address for the signer as a string.
Optionalpreference: unknownOptional preference parameter.
A promise that resolves to the recommended address as a string.
Gets an array of addresses associated with the signer as strings.
A promise that resolves to an array of addresses as strings.
Find cells of this signer
The filter for the search key.
OptionalwithData: null | booleanWhether to include cell data in the response.
Optionalorder: "asc" | "desc"The order of the returned cells, can be "asc" or "desc".
Optionallimit: numberThe maximum number of cells for every querying chunk.
A async generator that yields all matching cells
Find cells of this signer
OptionalwithData: null | booleanOptionalorder: "asc" | "desc"Optionallimit: numberA async generator that yields all matches cells
Find transactions of this signer
OptionalgroupByTransaction: null | falseOptionalorder: "asc" | "desc"Optionallimit: numberA async generator that yields all matches transactions
Find transactions of this signer
Optionalorder: "asc" | "desc"Optionallimit: numberA async generator that yields all matches transactions
Find transactions of this signer
OptionalgroupByTransaction: null | booleanOptionalorder: "asc" | "desc"Optionallimit: numberA async generator that yields all matches transactions
Gets balance of all addresses
A promise that resolves to the balance
Signs a message and returns signature only. This method is not implemented and should be overridden by subclasses.
The message to sign, as a string or BytesLike object.
A promise that resolves to the signature as a string.
Sends a transaction after signing it.
The transaction to send, represented as a TransactionLike object.
A promise that resolves to the transaction hash as a Hex string.
Signs a transaction.
The transaction to sign, represented as a TransactionLike object.
A promise that resolves to the signed Transaction object.
A class extending SignerBtc that provides read-only access to a Bitcoin public key and account. This class does not support signing operations.