Skip to main content

Instant Loans Flow Example

Use examples/instant-loans-flow as the starting point for accountless borrow UX.

It covers:

AreaWhat to inspect
Wallet connectionDynamic-powered browser wallet setup
Pool selectionMarket data and frozen-pool handling
LTV previewClient-side quote validation before creation
Loan creationclient.instantLoans.create(...) request shape
Status reloadclient.instantLoans.get({ ref })
Activity statusclient.activities.list(...) and client.activities.getStatus(...)
Recoveryclient.instantLoans.findByAddress(...)

Run it from the SDK root:

pnpm install
cp examples/instant-loans-flow/.env.example examples/instant-loans-flow/.env
pnpm --filter @liquidium/example-instant-loans-flow dev

Set VITE_INFURA_API_KEY when your flow needs Ethereum reads through Infura.