React components
Beta components that drop a whole LOC flow into a React app, and the helper that ships beside them.
These are whole pieces of UI, not headless state.
CreateLOCFlow wraps a form, a
workflow hook, and the sign-and-confirm steps into one element a Creator uses end to end, and
RedeemLOCFlow does the same for
a Beneficiary.
UnconfirmedTransaction
is the screen to show when a send may have landed but the wallet couldn’t confirm it.
They’re beta: props and presentation can change between releases, and the hooks
are the supported React surface. Import the components from @anvilresearchlabs/sdk/components and
the AnvilProvider they read from
@anvilresearchlabs/sdk/react.
One helper ships from the same entry: bindOnAccountChanged follows the browser wallet’s account
switches and returns a handle that stops following them.
Add a create-LOC form embeds
CreateLOCFlow step by step.
Primary APIs
Functions
CreateLOCFlow—BetaRedeemLOCFlow—BetaUnconfirmedTransaction—Beta