Polkadot: Migration guide to the v1 REST API
The underlying Polkadot network infrastructure is transitioning from the legacy Node.js substrate-api-sidecar to the new Rust-based Polkadot REST API. This change follows the upstream deprecation of substrate-api-sidecar by Parity and its replacement with polkadot-rest-api.
The underlying Polkadot network infrastructure is transitioning from the legacy Node.js substrate-api-sidecar to the new Rust-based Polkadot REST API. This change follows the upstream deprecation of substrate-api-sidecar by Parity and its replacement with polkadot-rest-api.
AttentionTatum has deployed support for the new
/v1REST API paths for Polkadot, Kusama, Westend, and Asset Hub networks. The legacy/substrateapipaths remain available in parallel for the time being to give customers time to migrate. However, becausesubstrate-api-sidecaris deprecated upstream, we recommend updating your integrations to the new/v1paths as soon as possible.For complete technical details, see the Official Parity Migration Guide.
What is changing?
Polkadot-based REST API endpoints are moving from the legacy /substrateapi path to the new /v1 path.
For example, the current endpoint:
GET https://polkadot-mainnet.gateway.tatum.io/substrateapi/accounts/15XQrm3X1UtiBF1qBpwb5y9kMMyfK7PxgWhotAJPqv2r6YCD/asset-balances
should be updated to:
GET https://polkadot-mainnet.gateway.tatum.io/v1/accounts/15XQrm3X1UtiBF1qBpwb5y9kMMyfK7PxgWhotAJPqv2r6YCD/asset-balances
In most cases, the migration requires replacing:
/substrateapi
with:
/v1
Affected networks
This migration applies to Polkadot-based REST API endpoints, including:
- Polkadot Mainnet
- Polkadot Asset Hub
- Polkadot Westend
- Kusama Mainnet
- Kusama Asset Hub
Required actions
If your application uses Polkadot, Kusama, Westend, or Asset Hub REST API endpoints through Tatum Gateway, please update your integration.
- Identify all API calls using
/substrateapi. - Replace
/substrateapiwith/v1. - Test the updated endpoints in your application.
- Review response parsing logic for compatibility with the new API.
- Update Postman collections, SDK wrappers, monitoring, and internal documentation where applicable.
Backward compatibilityTatum plans to run both the legacy
/substrateapiendpoints and the new/v1endpoints in parallel for the time being.However, since the underlying
substrate-api-sidecarproject is deprecated upstream, the legacy implementation should not be treated as long-term stable infrastructure. We strongly recommend migrating to the new/v1endpoints as soon as possible.
Updated about 4 hours ago