signMessageWithCustomOptions
Signs a message with custom options, allowing you to specify the address type and signing protocol. This is useful when you need more control over the signing process than the standard signMessage function provides.
Usage
Parameters
Address Types
payment - Use the standard payment address
ordinals - Use the ordinals (inscriptions) address
Protocols
ecdsa - Standard ECDSA signature
bip322-simple - BIP-322 simple signature format
Note: If the wallet provider does not support specifying an address type or protocol, it will use the default values.
Returns
Promise<{ signature: string }> - A promise that resolves to an object containing the signature.
Errors
Last modified on January 26, 2026