@orangecheck/wallet-adapter / getSigner
Function: getSigner()
function getSigner(wallet: WalletId, opts: SignOptions): SignFn;
Defined in: sign.ts:32
Return a SignFn bound to a particular wallet. The returned function takes a canonical message string and resolves to a BIP-322 signature.
const sign = getSigner('unisat', { address }); const signature = await sign(challenge.message);
Throws on unknown wallet IDs or when the wallet isn't available on window.
Parameters
| Parameter | Type |
|---|---|
wallet | WalletId |
opts | SignOptions |