API Reference

REST and WebSocket APIs for M2 Protocol integration

🚧

In Development - Q2 2026

Our public APIs are currently being developed and will be available after TGE in Q1 2026. Full documentation will be published in Q2 2026.

Planned API Capabilities

REST API

RESTful HTTP endpoints for standard operations:

  • • Transaction queries and history
  • • Account balance and information
  • • Token transfers and operations
  • • Smart contract interactions
  • • Network statistics and status

WebSocket API

Real-time data streaming for:

  • • Live transaction notifications
  • • Account activity monitoring
  • • Block production updates
  • • Network events and alerts

GraphQL API

Flexible query interface for complex data requirements:

  • • Custom data queries
  • • Aggregated statistics
  • • Historical data analysis
  • • Multi-resource fetching

Example: Transaction Query

// Example REST API call (coming Q2 2026)
GET https://api.m2protocol.net/v1/transactions/:txHash
// Response:
{
  "txHash": "0x123...",
  "from": "0xabc...",
  "to": "0xdef...",
  "amount": "1000000",
  "timestamp": 1735689600,
  "status": "confirmed",
  "blockNumber": 12345
}

API Features

Authentication

Secure API key authentication with rate limiting and usage monitoring.

Rate Limits

Generous rate limits for developers with premium tiers available.

Documentation

Interactive API documentation with live testing capabilities.

SDKs

Pre-built SDKs wrapping API calls for easy integration.

Use Cases

Block Explorers

Build custom block explorers and analytics dashboards using our APIs.

Wallet Applications

Create mobile and web wallets with real-time balance updates.

Trading Platforms

Integrate M2 Protocol for automated trading and liquidity provision.

M2M Applications

Build machine-to-machine payment systems for IoT and autonomous devices.

Get API Early Access

Sign up for early API access and be among the first developers to build on M2 Protocol.

Join Developer Community