LendingMarket account on-chain with default settings and your wallet (or a multisig) as the owner. Reserves, oracles, and feature flags are configured in subsequent steps.
The market is empty (no reserves) until you add reserves, and cannot accept deposits or borrows until at least one reserve is active.
- SDK
- API
- Kamino CLI
Create a market via SDK
UseKaminoManager from @kamino-finance/klend-sdk to build and submit the create-market instruction.Build the create-market instructions
createMarketIxs returns:market: aTransactionSignerfor the market account; itsaddressis the new market’s pubkeyixs: the instructions needed to create and initialize the market
marketSigner.address value — every subsequent operation references it.Targeting staging or devnet
Pass the staging or devnet program ID when constructingKaminoManager:https://api.devnet.solana.com and use the devnet program ID from your environment.Multisig from the start
If you want the market owned by a multisig from inception, pass the multisig pubkey as a noop signer foradmin:What happens on-chain
The instruction initializes aLendingMarket account with:
lending_market_ownerset to your adminquote_currencyset to a default (override later viaupdate-lending-market-from-config)- All feature flags (
borrow_disabled,emergency_mode,withdraw_ticket_*,borrow_order_*,obligation_order_*,autodeleverage_enabled,immutable) initialized to0 - All elevation groups empty
- Default values for liquidation tunables and minimum deposit thresholds
What’s next
Add reserves
Add the first asset to your market with a reserve config.
Configure oracles
Wire each reserve to a Scope price feed.
Reference
- Market config reference — every editable
LendingMarketfield - CLI command index — every market-related kamino-manager command
market-operationsCLI reference — full flag detail