Skip to main content
The Thru REST API provides HTTP endpoints for querying blockchain state, submitting transactions, and retrieving account and block data. The REST API is automatically generated from gRPC service definitions using gRPC-Gateway.

API Endpoints

NetworkEndpointProtocolDescription
Alphanethttps://rest.alphanet.thruput.orgHTTPSREST API over HTTP/1.1

Request Format

All REST API requests use standard HTTP methods:

GET Requests

Retrieve blockchain data including accounts, blocks, and transactions

POST Requests

Submit transactions and execute state-changing operations

Response Format

All responses are returned in JSON format with standard HTTP status codes:
{
  "field1": "value1",
  "field2": "value2"
}
{
  "code": 5,
  "message": "Account not found",
  "details": []
}

Common Features

CORS Support

Cross-Origin Resource Sharing (CORS) is enabled for browser-based applications.

Content Type

Requests should include the appropriate Content-Type header:
Content-Type: application/json