oc · docs
docs / documentation

@orangecheck/react


@orangecheck/react / OcChallengeButtonProps

Interface: OcChallengeButtonProps

Defined in: challenge.tsx:34

Properties

PropertyTypeDescriptionDefined in
<a id="property-address"></a> addressstringBitcoin address the user claims to control.challenge.tsx:36
<a id="property-apibase"></a> apiBase?stringVerifier base URL. Default https://ochk.io.challenge.tsx:50
<a id="property-audience"></a> audience?stringOptional origin-binding.challenge.tsx:43
<a id="property-children"></a> children?anyOverride button contents.challenge.tsx:56
<a id="property-classname"></a> className?stringclassName 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) => voidCalled when any step fails.challenge.tsx:53
<a id="property-onverified"></a> onVerified(result: OcChallengeVerified) => voidCalled when verification succeeds with the proven address.challenge.tsx:40
<a id="property-purpose"></a> purpose?stringOptional purpose label.challenge.tsx:45
<a id="property-sign"></a> sign(message: string) => Promise&lt;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?numberChallenge TTL in seconds. Default: server default (300).challenge.tsx:47