- Base path:
/api/v0/dapp(configurable viaserver.dappPath) - Protocol: JSON-RPC 2.0, per CIP-0103
- Authentication: JWT bearer token (obtained through a session)
Build dApps with the dApp SDK, which implements the
dApp API and adds a high-level interface, session handling, wallet discovery, and multi-transport
support. Use the raw API only for lower-level infrastructure. The SDK documentation is the
reference for methods, events, and error handling.
Full specification
The complete OpenRPC specification is available at openrpc-dapp-api.json.Real-time events (SSE)
The dApp API supports Server-Sent Events for real-time notifications. Connect to the/events
path relative to the dApp API base URL (for example /api/v0/dapp/events), authenticating with
the JWT as the token query parameter (the Authorization: Bearer header is also supported):
txChanged), account
changes (accountsChanged), and session state (connected, statusChanged).