# Loopscale Docs > Learn about the core concepts of Loopscale, a modular, order book-based lending protocol on Solana. - [Loopscale Documentation](https://docs.loopscale.com/introduction/overview.md) - [Why Loopscale?](https://docs.loopscale.com/introduction/why-loopscale.md) - [Lend with Loopscale Vaults](https://docs.loopscale.com/using-loopscale/lend/lend.md) - [Advanced Lending](https://docs.loopscale.com/using-loopscale/lend/advanced-lend.md) - [Earn Vaults](https://docs.loopscale.com/using-loopscale/earn-vaults.md) - [Loop](https://docs.loopscale.com/using-loopscale/loop.md) - [Borrow on Loopscale Markets](https://docs.loopscale.com/using-loopscale/borrow/overview.md) - [Health & Liquidations](https://docs.loopscale.com/using-loopscale/borrow/health-and-liquidations.md) - [Refinancing](https://docs.loopscale.com/using-loopscale/borrow/refinances.md) - [LP Collateral Management](https://docs.loopscale.com/using-loopscale/borrow/lp-collateral-management.md) - [Points on Loopscale](https://docs.loopscale.com/using-loopscale/points.md) - [Overview](https://docs.loopscale.com/protocol-concepts/overview.md) - [Loans & Orders](https://docs.loopscale.com/protocol-concepts/loans-and-orders.md) - [Credit Order Book](https://docs.loopscale.com/protocol-concepts/credit-order-book.md) - [Loopscale Vaults](https://docs.loopscale.com/protocol-concepts/loopscale-vaults.md) - [Loops](https://docs.loopscale.com/protocol-concepts/loops.md) - [Risks & Security](https://docs.loopscale.com/resources/risks-and-security.md) - [Assets and Oracles](https://docs.loopscale.com/resources/asset-parameters.md): Last updated May 26, 2026 - [Addresses](https://docs.loopscale.com/resources/addresses.md) - [FAQ](https://docs.loopscale.com/resources/faq.md) - [Formation](https://docs.loopscale.com/resources/formation.md) - [Audits & Bug Bounty](https://docs.loopscale.com/resources/audits.md) - [Brand Kit](https://docs.loopscale.com/resources/brand-kit.md) - [Terms of Use](https://docs.loopscale.com/resources/terms.md): _Last updated: August 4, 2026_ - [Privacy Policy](https://docs.loopscale.com/resources/privacy.md): _Updated: April 10, 2025_ - [Disclaimer](https://docs.loopscale.com/resources/disclaimer.md): _Last updated: April 10, 2025_ - [Loopscale API](https://docs.loopscale.com/api-reference/introduction/introduction.md) - [Create loan](https://docs.loopscale.com/api-reference/transactions/borrow/create-loan.md): Creates a new loan with initial collateral and requested principal borrows, returning both the loan address and the serialized transaction needed to initialize it. - [Borrow principal](https://docs.loopscale.com/api-reference/transactions/borrow/borrow-principal.md): Borrows additional principal against an existing loan and can optionally refinance the targeted ledger in the same transaction. - [Flash borrow](https://docs.loopscale.com/api-reference/transactions/borrow/flash-borrow.md): Atomically creates a new loan and executes optional CPIs before depositing collateral. Supports deferred collateralization. Returns a transaction message and resulting loan address. - [Build loan](https://docs.loopscale.com/api-reference/transactions/borrow/build-loan.md): Builds or mutates a loan through a sequence of high-level actions. Supported step types currently include `repay`, `flashBorrow`, and `swapCollateral`. - [Repay loan](https://docs.loopscale.com/api-reference/transactions/borrow/repay-loan.md): Partially or fully repay an active loan. Allows for the withdrawal of collateral for optional use in CPIs before repayment. - [Simple repay loan](https://docs.loopscale.com/api-reference/transactions/borrow/simple-repay-loan.md): A simplified repay endpoint that handles a single strategy at a time. Unlike the full repay endpoint, it does not support CPI instructions, collateral withdrawals, or setup instructions. If a ledger is fully repaid on a multi-ledger loan, weight matrix updates are automatically generated to redistri… - [Deposit collateral](https://docs.loopscale.com/api-reference/transactions/borrow/deposit-collateral.md): Adds more collateral to an existing loan position. - [Withdraw collateral](https://docs.loopscale.com/api-reference/transactions/borrow/withdraw-collateral.md): Withdraws collateral from an existing loan. Full collateral removal may include internal weight-matrix and loan-lock handling before the transaction is returned. - [Swap collateral](https://docs.loopscale.com/api-reference/transactions/borrow/swap-collateral.md): Enables safe rebalancing of collateral by withdrawing a selected asset, executing CPIs (e.g. swaps or liquidity provision), and depositing a new asset in its place. - [Refinance loan](https://docs.loopscale.com/api-reference/transactions/borrow/refinance-loan.md): Update the duration of the loan. - [Sell ledger](https://docs.loopscale.com/api-reference/transactions/borrow/sell-ledger.md): Sells a loan ledger from one strategy into another strategy, using the expected sale price guard provided in the request. - [Close loan](https://docs.loopscale.com/api-reference/transactions/borrow/close-loan.md): In the event a loan is fully repaid and all collateral is withdrawn, but wasn't closed, this directly closes the loan account and refunds the user. - [Claim Orca fees](https://docs.loopscale.com/api-reference/transactions/clmm/claim-orca-fees.md): Claim accrued fees for an Orca CLMM collateral position on a loan. - [Update Orca liquidity](https://docs.loopscale.com/api-reference/transactions/clmm/update-orca-liquidity.md): Increase or decrease liquidity on an Orca CLMM collateral position while keeping the loan collateralized. - [Transfer Orca position](https://docs.loopscale.com/api-reference/transactions/clmm/transfer-orca-position.md): Reposition an Orca CLMM collateral position to a new tick range on an existing loan. - [Update Raydium liquidity](https://docs.loopscale.com/api-reference/transactions/clmm/update-raydium-liquidity.md): Increase or decrease liquidity on a Raydium CLMM collateral position while keeping the loan collateralized. - [Transfer Raydium position](https://docs.loopscale.com/api-reference/transactions/clmm/transfer-raydium-position.md): Reposition a Raydium CLMM collateral position to a new tick range on an existing loan. - [Deposit to Vault](https://docs.loopscale.com/api-reference/transactions/vault/deposit.md): Deposit funds into a target lending Vault. On an additional deposit, the previous stake account and reward schedule is deleted and a new one is created. - [Withdraw from Vault](https://docs.loopscale.com/api-reference/transactions/vault/withdraw.md): Withdraw funds from a target lending Vault. If any deposits remain, the previous stake account and reward schedule is deleted and a new one is created. - [Claim Vault rewards](https://docs.loopscale.com/api-reference/transactions/vault/claim-rewards.md): Claim rewards from a target lending Vault. This will harvest from all available rewards schedules and close empty accounts to refund SOL to requesting wallet. - [Acknowledge Earn Vault](https://docs.loopscale.com/api-reference/transactions/earn/acknowledge.md): Records that a wallet accepted a vault's deposit terms. Vaults with `requiresAcknowledgment: true` expect this call before a wallet's first deposit. It writes no transaction and is idempotent. - [Deposit to Earn Vault](https://docs.loopscale.com/api-reference/transactions/earn/deposit.md) - [Withdraw from Earn Vault](https://docs.loopscale.com/api-reference/transactions/earn/withdraw-request.md) - [Claim Earn Withdrawal](https://docs.loopscale.com/api-reference/transactions/earn/claim-withdrawal.md) - [Cancel Earn Withdrawal](https://docs.loopscale.com/api-reference/transactions/earn/cancel-withdrawal.md) - [Create strategy](https://docs.loopscale.com/api-reference/transactions/strategy/create-strategy.md): Creates a new lending strategy, deposits the initial principal amount, and may return multiple transactions when lookup-table setup or external yield account initialization is required. - [Deposit into strategy](https://docs.loopscale.com/api-reference/transactions/strategy/deposit-strategy.md): Deposits additional principal into an existing lending strategy. - [Withdraw from strategy](https://docs.loopscale.com/api-reference/transactions/strategy/withdraw-strategy.md): Withdraws principal from an existing lending strategy, optionally closing out the full position. - [Update strategy](https://docs.loopscale.com/api-reference/transactions/strategy/update-strategy.md): Updates strategy settings and collateral terms. Large collateral-term updates may be split across multiple returned transactions. - [Close strategy](https://docs.loopscale.com/api-reference/transactions/strategy/close-strategy.md): Closes an existing lending strategy and returns the serialized transaction required to do so. - [Edit vault deposits](https://docs.loopscale.com/api-reference/transactions/vault/edit-deposits.md): Enable or disable deposits for a lending vault. - [Create vault timelocks](https://docs.loopscale.com/api-reference/transactions/vault/create-timelocks.md): Create one or more timelock updates for vault collateral, rates, allocation, caps, and settings changes. - [Cancel vault timelocks](https://docs.loopscale.com/api-reference/transactions/vault/cancel-timelocks.md): Cancel one or more pending timelock entries. - [Create rewards schedule](https://docs.loopscale.com/api-reference/transactions/vault/create-rewards-schedule.md): Create a new vault rewards schedule and optionally deposit reward tokens into it. - [Edit rewards schedule](https://docs.loopscale.com/api-reference/transactions/vault/edit-rewards-schedule.md): Edit an existing vault rewards schedule and optionally extend its end time while depositing additional rewards. - [Get quotes](https://docs.loopscale.com/api-reference/data/markets/get-quotes.md): Returns a list of current lend orders available for the specified principal token, collateral, and target duration. Results are sorted by APY and support pagination. - [Get best quote](https://docs.loopscale.com/api-reference/data/markets/get-best-quote.md): Returns the top quote for each specified collateral asset based on available liquidity. This endpoint is designed for minimizing rate slippage for a borrow with known inputs. - [Get loan info](https://docs.loopscale.com/api-reference/data/positions/get-loan-info.md): Returns a list of loans filtered by request. Results support pagination. - [Get Loop info](https://docs.loopscale.com/api-reference/data/loops/get-loop-info.md): Returns Loop vault info keyed by Loop vault identifier. You can filter by explicit vault identifiers and/or by tags. - [Get Vaults](https://docs.loopscale.com/api-reference/data/vaults/get-vaults.md): Returns a list of raw Vault metadata and data that match filters. - [Get Vault depositors](https://docs.loopscale.com/api-reference/data/user/get-vault-depositors.md): Fetches a list of users and total balances grouped by Vault. - [Get Earn Vaults](https://docs.loopscale.com/api-reference/data/earn/get-earn-vaults.md): Returns every registered Earn vault with its latest snapshot (share supply, NAV per share, AUM, realized and display APY). - [Get Earn Vault](https://docs.loopscale.com/api-reference/data/earn/get-earn-vault.md): Returns one Earn vault and its latest snapshot by on-chain vault address. `parsedAccountJson` holds the decoded provider account, including token entries, strategy positions and withdrawal configuration. - [Get Earn Vault History](https://docs.loopscale.com/api-reference/data/earn/get-earn-vault-history.md): Returns snapshot history for a vault. `timeLookback` is the window in seconds back from now; `sampleIntervalSecs` optionally buckets the points (for example `3600` for hourly). - [Get Earn Position](https://docs.loopscale.com/api-reference/data/earn/get-earn-position.md): Returns a wallet's position in one Earn vault: share balance, cost basis and realized PnL, plus its open withdrawal requests. Use `openWithdrawalRequests[].onChainRequestAddr` as the `requestId` for claiming or cancelling a queued withdrawal. - [Get Earn Portfolio](https://docs.loopscale.com/api-reference/data/earn/get-earn-portfolio.md): Returns a wallet's positions across every Earn vault it holds, in the same shape as Get Earn Position. - [Get Earn Withdrawal Queue](https://docs.loopscale.com/api-reference/data/earn/get-earn-withdrawal-queue.md): Returns open withdrawal requests, filterable by vault (`address` or `vaultAddresses`) and `wallet`, with queue depth in shares. Set `includeClosed` to also return claimed and cancelled requests. `sortDirection` is `0` ascending, `1` descending. - [Get strategies](https://docs.loopscale.com/api-reference/data/strategies/get-strategies.md): Returns a list of strategy data matching the filters. - [Get collateral holders](https://docs.loopscale.com/api-reference/data/user/get-collateral-holders.md): Fetches a list of users and total balances for one or more specified collateral mints. - [Get historical collateral holders](https://docs.loopscale.com/api-reference/data/user/get-historical-collateral-holders.md): Returns, for each holder, the integral of their collateral balance over the requested time window — expressed as deposit-seconds (decimal-adjusted collateral units multiplied by seconds held). Useful for time-weighted depositor rewards, retroactive incentive splits, etc. - [Get Vault depositors](https://docs.loopscale.com/api-reference/data/user/get-vault-depositors.md): Fetches a list of users and total balances grouped by Vault. - [Calculate Vault & Loop Metrics](https://docs.loopscale.com/api-reference/guides/vault-and-loop-metrics.md) - [Integrate Earn Vaults](https://docs.loopscale.com/api-reference/guides/earn-integration.md) - [How Loopscale Works](https://docs.loopscale.com/partners/issuers/how-loopscale-works.md) - [Integration Types](https://docs.loopscale.com/partners/issuers/integrate.md) - [Real-World Assets](https://docs.loopscale.com/partners/issuers/rwa.md) - [Loopscale Vault Curation](https://docs.loopscale.com/partners/curators/curation.md) - [Vault Manager UI Guide](https://docs.loopscale.com/partners/curators/vault-manager-ui.md) - [Loopscale Vault Architecture](https://docs.loopscale.com/partners/curators/vault-architecture.md) - [Security at Loopscale](https://docs.loopscale.com/partners/curators/security.md) - [Deposit to Loopscale Vaults](https://docs.loopscale.com/partners/guides/deposit.md) - [Withdraw from Loopscale Vaults](https://docs.loopscale.com/partners/guides/withdraw.md) - [Manage Loopscale Vault Position](https://docs.loopscale.com/partners/guides/manage.md) - [Genesis Vaults Risk Framework](https://docs.loopscale.com/partners/archived/genesis-risk-framework.md) ## OpenAPI Specs - [earn](/api-reference/data/earn/earn.json) - [loops](/api-reference/data/loops/loops.json) - [markets](/api-reference/data/markets/markets.json) - [positions](/api-reference/data/positions/positions.json) - [strategies](/api-reference/data/strategies/strategies.json) - [user](/api-reference/data/user/user.json) - [vaults](/api-reference/data/vaults/vaults.json) - [openapi.source](/api-reference/openapi.source.json) - [borrow](/api-reference/transactions/borrow/borrow.json) - [clmm](/api-reference/transactions/clmm/clmm.json) - [earn](/api-reference/transactions/earn/earn.json) - [strategy](/api-reference/transactions/strategy/strategy.json) - [vault](/api-reference/transactions/vault/vault.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.