Skip to main content

Build on MAGMA

MAGMA is a yield-bearing narrative capital market on Solana. Participants back narratives with capital; principal is routed into DeFi yield while a Conviction Score and on-chain oracle determine how that yield is multiplied or redistributed. These pages are the technical reference for everything you need to build against the protocol — the REST API, the TypeScript SDK, the x402 machine-payable endpoints, and the protocol internals underneath.

Who these docs are for

This is the developer & integrator portal — API contracts, SDK references, oracle/pool mechanics, and partner-grade material (MAGMA Shield, DeFi yield routing, MWA flows). For consumer onboarding and product walkthroughs, see docs.magmaprotocol.xyz.

Start here

The shape of an integration

A typical integration reads narratives and conviction data, submits backings (signed by the user's wallet), and tracks positions and yield. Everything the API exposes is also available through the SDK with full TypeScript types.

Conventions used throughout

ConventionMeaning
https://api.magmaprotocol.xyzProduction REST base URL (devnet beta)
GET POSTHTTP method for an endpoint
AUTHEndpoint requires wallet/admin authentication
:wallet, :idPath parameters you substitute
Beta on devnet

MAGMA is experimental software running on Solana devnet. Contracts, economic parameters, and endpoints may change. Do not commit capital you cannot afford to lose entirely. See Legal & Compliance and Security.