@orangecheck/react / OcChallengeButtonProps
Interface: OcChallengeButtonProps
Defined in: src/challenge.tsx:34
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-address"></a> address | string | Bitcoin address the user claims to control. | src/challenge.tsx:36 |
<a id="property-apibase"></a> apiBase? | string | Verifier base URL. Default https://ochk.io. | src/challenge.tsx:50 |
<a id="property-audience"></a> audience? | string | Optional origin-binding. | src/challenge.tsx:43 |
<a id="property-children"></a> children? | ReactNode | Override button contents. | src/challenge.tsx:56 |
<a id="property-classname"></a> className? | string | className for the root button. | src/challenge.tsx:58 |
<a id="property-disabled"></a> disabled? | boolean | - | src/challenge.tsx:60 |
<a id="property-onerror"></a> onError? | (err: Error) => void | Called when any step fails. | src/challenge.tsx:53 |
<a id="property-onverified"></a> onVerified | (result: OcChallengeVerified) => void | Called when verification succeeds with the proven address. | src/challenge.tsx:40 |
<a id="property-purpose"></a> purpose? | string | Optional purpose label. | src/challenge.tsx:45 |
<a id="property-sign"></a> sign | (message: string) => Promise<string> | Wallet signing adapter. Given a canonical message, returns a BIP-322 signature. | src/challenge.tsx:38 |
<a id="property-style"></a> style? | CSSProperties | - | src/challenge.tsx:59 |
<a id="property-ttlseconds"></a> ttlSeconds? | number | Challenge TTL in seconds. Default: server default (300). | src/challenge.tsx:47 |