V1 Deprecated
Deprecated: The V1 Light Client API has been replaced by V2 with WebSocket support and selective field queries.
Warning
The V1 Light Client API has been deprecated.
All V1 endpoints have equivalent V2 replacements. Please migrate to the V2 API.
What replaced it
How to migrate
/v1/ to /v2/ in your endpoint paths. All V1 endpoints have direct V2 equivalents:
| V1 endpoint | V2 equivalent |
|---|---|
/v1/version | GET /v2/version |
/v1/status | GET /v2/status |
/v1/blocks/{n} | GET /v2/blocks/{n} |
/v1/blocks/{n}/header | GET /v2/blocks/{n}/header |
/v1/blocks/{n}/data | GET /v2/blocks/{n}/data?fields=data,extrinsic |
/v1/submit | POST /v2/submit |
New in V2
- WebSocket API — real-time subscriptions for block and data availability events
- Selective field queries — request only the fields you need (e.g.,
?fields=data,extrinsic)
How is this guide?