Skip to main content
Before a user can participate in an offer, they have to satisfy its requirements: identity verification, a signed tax document, a connected wallet, a jurisdiction check, a CoinList account. Which ones apply is decided per offer option, by CoinList. An Ondo order or a Centrifuge deposit names its option, and CoinList checks that option’s requirements before it builds the order, so show the user the checklist of the option they will buy. RequirementsChecklistContainer renders the whole checklist and resolves every requirement type in-app. It is the highest rung (L3, components) and the one to start from.

Prerequisites

Render it

That is the whole integration. The container is self-scoped: it renders fully styled with no style provider in the tree. When the user is signed out it renders its error state and fetches nothing, so mount it only for a logged-in CoinList user and render CoinListSignInCardContainer yourself otherwise. A wallet session renders the error state too.

What it does for you

Clicking a requirement’s action button does the right thing per type, with no wiring from you: The fallback for everything is passage.requirements.handle, which opens the corresponding CoinList page in a new tab where the type has one.
Omit onRequirementActionOverride and rely on the defaults. Pass your own handler only if you need custom navigation, or null to disable the action button entirely. The same applies to onContactSupportOverride, which defaults to passage.support.contact.

Resolving wallet requirements in-app

Pass a wallet and the checklist resolves external_wallet and whitelisted_wallet requirements without leaving your app. It only needs signing capability, so a ConnectWallet (an EvmSigner plus the chain it signs on) is enough - no gas, no transaction.
When wallet is omitted entirely - or is null with no onRequestConnect to act on - wallet requirements fall back to opening CoinList in a new tab.

Props

data skips the requirements fetch, but connected-wallet addresses are not part of RequirementsData and are always fetched client-side.
RequirementsData is { requirements, statuses }: the results of passage.requirements.forOffer(offerId) and passage.requirements.statuses(offerId) on PassageServer. statuses is per user, so the server needs a CoinList user’s session for it.

Wallet sessions

A wallet session is a sign-in with a wallet, for a user with no CoinList account. CoinList checks every requirement against a CoinList user, so statuses refuses a wallet session and the checklist renders its error state. A wallet session can still read what an option requires, because that describes the offer and not a user. signInMethodFor, from @passage-cl/react/universal, turns an option’s list into the sign-in it asks for: 'coinlist' for any requirement, not only coinlist_account, and 'wallet' for none. With an app-level token, your server can decide this before any user is known:
In the browser, useOfferRequirements reads the same list on a session of either kind:
Pass data with the requirements your server read to skip the first read. refetch() still reads after a data seed, and does nothing while enabled is false. The Ondo checkouts and the Centrifuge deposit checkout run this check for you. On a wallet session, an option with any requirement shows “Sign in to continue” in place of the checkout. See Building the Checkout flow.

The screens the checklist opens

The identity verification flow, the tax document modal and the connect-wallet modal are internal to RequirementsChecklistContainer, and the SDK does not export them. To build your own checklist, use the data hooks below: useKycToken for a Sumsub token, useTaxDocument for the tax document, and useConnectWallet for the wallet ownership proof and binding.
useRequirementsChecklistViewModel backs the container. It takes the container’s props except the loading, error and className slots, and returns { state, onEvent }. In the content state, continueAction is { enabled, label } with your continueLabel, or null when you passed no onContinue. Below it are the requirements data hooks, each usable on its own:
useRequirements reports not-authenticated straight away, with no request, when the user is signed out. It also reports not-authenticated on a wallet session, because it reads statuses. refetch() still fetches after a data seed, and does nothing while enabled is false.See SDK structure for the conventions they share.
passage.requirements is a plain namespace with no React. It is available on both the browser client and PassageServer, except handle, which needs a browser.
A requirement type (RequirementType, from @passage-cl/react/universal) is one of kyc_approved, external_wallet, whitelisted_wallet, jurisdiction, accreditation, document, coinlist_account. coinlist_account is new in v0.14.0, so an exhaustive switch on RequirementType in your code, for example in a getLabel, needs a case for it. A status is not_started, in_progress, action_needed, completed, or rejected.statuses, createKycToken, getPii, and submitDocument require a CoinList user and throw NotAuthenticatedError otherwise, on a wallet session too. forOffer throws it only with no session of either kind, and on the server not at all when you pass an app-level token. handle needs no session, since it only opens a CoinList page.Wallet ownership proof lives on passage.wallets rather than here, because it is provider-agnostic. See Wallets.

Next step

Building the Checkout flow

Once requirements are satisfied, render CheckoutContainer and let it pick the provider. Pass it the same option as optionId, which every checkout requires.