get_marginfi_positions
Enumerate a Solana wallet's MarginFi lending positions, showing supplied and borrowed balances, USD values, health factor, and any bank-level warnings.
Instructions
READ-ONLY — enumerate a Solana wallet's MarginFi lending positions. Probes the first 4 MarginfiAccount PDAs under the wallet (accountIndex 0..3) and returns one entry per existing account. Each entry reports the supplied and borrowed balances per bank (human amount + USD value), aggregate totals, and the health factor (assets/liabilities, >1 safe, <1 liquidatable, Infinity when no debt). Bank-level pause warnings surface in the warnings field. Parallel to EVM's get_compound_positions / get_morpho_positions. Returns an empty array when the wallet has no MarginfiAccount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | Solana wallet to enumerate MarginFi positions for. Probes the first 4 MarginfiAccount PDAs under this wallet (accountIndex 0..3) and returns one entry per existing account. |