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