Overview
CSPR.cloud REST API is an HTTP-based API that dApps can use to programmatically query Casper network data. It has predictable resource-oriented endpoints and uses standard HTTP response codes, authentication, and verbs.
CSPR.cloud Streaming API is WebSocket-based and follows the WebSocket standard conventions.
Base URLs
The APIs can be accessed using the following base URLs
Mainnet
CSPR.cloud REST API
CSPR.cloud Streaming API
Casper Node RPC API
Casper Node SSE API
Testnet
CSPR.cloud REST API
CSPR.cloud Streaming API
Casper Node RPC API
Casper Node SSE API
Authorization
Rate limits and quotas
Responses
The API sends data in the JSON format. Successful REST API responses contain the data
property, which contains the response data:
The Streaming API messages additionally include the action
and timestamp
properties:
Pagination
Requests that potentially may return an unlimited number of items are paginated. Endpoints that return paginated responses accept the page
and limit
query parameters to control the page and the number of items per page, correspondingly. Paginated responses contain two additional properties providing information on the total number of items and the total number of pages:
Sorting
Filtering
Optional properties
Errors
Error responses contain the error
property with optional code
, message
, and description
properties providing more information about the error that occurred:
Versions
Last updated