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.