Agent Tools
Back to directory

Magpie

https://x402.magpie.capital
● healthy finance

Agent-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.

Category
finance
Chains
solana:5eykt4usfv8p8njdtrepy1vzqkqzkvdp
Price
—

Quality grade

How grading works
C+ 60.0 / 100
Availability 40.0 / 40
Endpoint responded (HTTP 200)
Payability 20.0 / 20
  • ✓ Answers a real HTTP 402 challenge
  • ✓ Publishes a /.well-known/x402 descriptor
  • ✓ Payment address on record
  • ✓ Settlement network declared
  • ✓ Price declared
Demand 0.0 / 40
Payment address on record, not yet queried on-chain
Owner verified 0.0 / 3
Nobody has claimed this listing yet
Endpoint last checked 6 h ago. Availability and on-chain demand are both re-probed daily; the grade updates automatically on the next pass.

Paid endpoints

20 resource(s) advertised by this origin.

GET 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.

GET https://x402.magpie.capital/api/v1/credit-score

Magpie on-chain credit score (300-850) + tier benefits

POST 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

GET https://x402.magpie.capital/api/v1/agent/intents

List all conditional borrow intents for a wallet (newest first, max 100).

GET 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.

GET 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.

GET 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.

GET 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.

GET https://x402.magpie.capital/api/v1/agent/leaderboard

Top wallets by Magpie credit score, anonymized.

GET https://x402.magpie.capital/api/v1/agent/lp-state

Depositor position state + pool context — shares, deposited lamports, current value, yield earned, share-of-pool.

POST 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.

GET 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.

POST 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.

POST 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.

GET 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.

GET 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.

GET 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`).

POST 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.

POST 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.

GET 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 · x402-fetch / x402-axios will auto-handle 402
curl -X GET https://x402.magpie.capital/api/v1/pool
/.well-known/x402.json
https://x402.magpie.capital/.well-known/x402

Listed in

Directories this entry was found in.

pay-skills-pr