live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/react


@orangecheck/react / OcGateProps

Interface: OcGateProps

Defined in: src/gate.tsx:23

Properties

PropertyTypeDescriptionDefined in
<a id="property-address"></a> address?stringBitcoin address. Pick one of address / attestationId / identity.src/gate.tsx:25
<a id="property-attestationid"></a> attestationId?stringAttestation ID (SHA-256 hex).src/gate.tsx:27
<a id="property-children"></a> children?| ReactNode | ((result: CheckResult) => ReactNode)Rendered when the check passes. The resolved CheckResult is passed through.src/gate.tsx:37
<a id="property-fallback"></a> fallback?| ReactNode | ((result: CheckResult | null) => ReactNode)Rendered when the check fails. Receives the CheckResult so you can explain why.src/gate.tsx:41
<a id="property-identity"></a> identity?&#123; identifier: string; protocol: string; &#125;Identity binding, e.g. { protocol: 'github', identifier: 'alice' }.src/gate.tsx:29
identity.identifierstring-src/gate.tsx:29
identity.protocolstring-src/gate.tsx:29
<a id="property-loading"></a> loading?ReactNodeRendered while the check is pending. Default null.src/gate.tsx:39
<a id="property-mindays"></a> minDays?numberMinimum days unspent. Default 0.src/gate.tsx:34
<a id="property-minsats"></a> minSats?numberMinimum sats bonded. Default 0.src/gate.tsx:32
<a id="property-onresult"></a> onResult?(result: CheckResult) => voidOptional callback when the check resolves (pass or fail).src/gate.tsx:44
<a id="property-relays"></a> relays?string[]Override discovery relays.src/gate.tsx:47