Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Reference — React Kit · Boson Protocol
Skip to content

React Kit

Components

  • <BosonProvider configId="…"> — wraps your app and constructs the SDK.
  • <CommitButton offerId="…" /> — drop-in commit button.
  • <RedemptionFlow exchangeId="…" /> — buyer-side redemption flow.
  • <FinanceCard role="seller" accountId="…" /> — treasury management.

Hooks

  • useCoreSdk() — gets the configured SDK from context.
  • useOffers(filter) — subgraph offers query, React Query-backed.
  • useExchanges(filter) — same for exchanges.
  • useDisputes(filter) — same for disputes.
  • useFunds(entityId) — read available balances.
  • useCommit(offerId) — encapsulates approve + commit.
  • useRedeem(exchangeId) — encapsulates redeem.

Source