📄️ Installation
Install @magma-protocol/sdk, instantiate MagmaClient, and configure base URL, auth, timeouts, and a custom fetch.
📄️ Quickstart
Common MAGMA SDK flows — browse narratives, read conviction, submit a backing, read DeFi APYs, and pull the leaderboard.
📄️ Client Reference
Full reference for every MagmaClient resource — narratives, oracle, users, nova, defi, leaderboard, categories, config, bot, and admin.
📄️ x402 Payments
Use withX402Payments to let an agent pay for gated MAGMA endpoints automatically with an x402-capable wallet.
📄️ Error Handling
MagmaError shape, status handling, the GET-only retry and exponential backoff behavior, and request timeouts/abort.