Magpie
https://x402.magpie.capitalAgent-native lending protocol on Solana: live LendingPool state across memecoin (V1), RWA (V3), and in-vault exit (V4) strategies, the approved-collateral catalog (170+ tokens), the permissionless liquidation feed, 24h aggregates, and loan/wallet lookups.
Quality grade
How grading works- ✓ Answers a real HTTP 402 challenge
- ✓ Publishes a /.well-known/x402 descriptor
- ✓ Payment address on record
- ✓ Settlement network declared
- ✓ Price declared
Paid endpoints
20 resource(s) advertised by this origin.
https://x402.magpie.capital/api/v1/pool
Live on-chain LendingPool state for one strategy version — totalDeposits, totalBorrowed, totalLoansIssued, totalLiquidations, totalFeesEarned. Use /api/v1/pools for all three at once.
https://x402.magpie.capital/api/v1/credit-score
Magpie on-chain credit score (300-850) + tier benefits
https://x402.magpie.capital/api/v1/agent/intent
Post a CONDITIONAL borrow: bot watches a trigger condition (price/time/liquidity) and builds the unsigned tx when matched. Agent EITHER polls + signs + submits OR receives an HMAC-signed POST at webhook_url. Single payment covers the entire intent lifecycle. Same anti-exploit gates as direct borrows
https://x402.magpie.capital/api/v1/agent/intents
List all conditional borrow intents for a wallet (newest first, max 100).
https://x402.magpie.capital/api/v1/collateral/eligible
Catalog of every token currently approved as Magpie collateral. Mint, symbol, decimals, category. First-touch endpoint for any agent integrating Magpie.
https://x402.magpie.capital/api/v1/markets/liquidatable
Active V1/V3 loans at or past their on-chain due timestamp — the canonical liquidation-bot data feed, each tagged with program_version. The liquidate ix is permissionless on-chain; any wallet can call it and receive the liquidator reward.
https://x402.magpie.capital/api/v1/agent/activity
Anonymized recent protocol activity — borrows, repays, liquidations. Wallets reduced to Xxxx…Yyyy short forms. First-touch 'is this protocol alive' feed for arriving agents.
https://x402.magpie.capital/api/v1/agent/protocol-pulse
24h protocol aggregates — active loans, active borrowers, borrow volume, liquidation counts. Pure numbers, no per-wallet data.
https://x402.magpie.capital/api/v1/agent/leaderboard
Top wallets by Magpie credit score, anonymized.
https://x402.magpie.capital/api/v1/agent/lp-state
Depositor position state + pool context — shares, deposited lamports, current value, yield earned, share-of-pool.
https://x402.magpie.capital/api/v1/agent/build-liquidate
Build an unsigned liquidate-loan tx for a past-due active loan. Keeper receives keeper_reward_bps share of seized collateral; rest goes to lender authority. Server pre-validates loan status + due time before building.
https://x402.magpie.capital/api/v1/agent/token-risk
Magpie's internal token risk profile — score, dimensions, market data, lending impact, operator flags. Pre-borrow collateral-selection signal.
https://x402.magpie.capital/api/v1/agent/build-deposit
Build an unsigned LP-deposit tx — wraps SOL → wSOL → deposits into the main LendingPool → closes wSOL ATA. Caller signs and submits.
https://x402.magpie.capital/api/v1/agent/build-withdraw
Build an unsigned LP-withdraw tx for the given shares. Server refuses chunks larger than max_safe_shares (avoids the v1 program's u64 overflow on huge positions). For positions above one safe chunk, withdraw in multiple calls.
https://x402.magpie.capital/api/v1/pools
All three strategy pools (V1 memecoin / V3 RWA / V4 exit-order) in one call, fail-soft per version.
https://x402.magpie.capital/api/v1/loan/by-pda/{loanPda}
Single loan by PDA, routed to V1/V3/V4 from the account owner. Returns program_version, category, V4 in-vault exit state, and exits_supported.
https://x402.magpie.capital/api/v1/wallet/{wallet}/loans
Every loan a wallet holds across V1/V3/V4, each tagged with program_version + category + (V4) exit state. Fail-soft per version (a failed version appears in `partial`).
https://x402.magpie.capital/api/v1/agent/build-borrow
Build an unsigned borrow tx. Routed by the bot: no-exits+memecoin → V1, no-exits+RWA → V3, has_exit_arming → V4. x402 payer must equal borrower_wallet.
https://x402.magpie.capital/api/v1/agent/self-limit-close/arm
Arm an in-vault take-profit / stop-loss exit on YOUR OWN V4 loan. Self-custody; no Telegram, no delegation, no custodial keypair. x402 binds payer==signer; the bot enforces ownership + exits-are-V4-only. Free /modify, /cancel, /list companions.
https://x402.magpie.capital/api/v1/agent/self-limit-close/list
List the armed in-vault exit orders for a wallet.
How to call
curl -X GET https://x402.magpie.capital/api/v1/pool
Listed in
Directories this entry was found in.