Skip to main content
GET
/
api
/
v2
/
getShards
Get Shards
curl --request GET \
  --url https://toncenter.com/api/v2/getShards \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "result": "<string>",
  "@extra": "<string>",
  "jsonrpc": "<string>",
  "id": "<string>"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

seqno
integer
required

The block sequence number. Each shard numbers its blocks starting from 0. For masterchain, this is also called the block height. Higher numbers are more recent blocks.

Response

OK

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
required

The response data. Only present when ok is true.

@extra
string
required

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.

jsonrpc
string

JSON-RPC protocol version, always "2.0".

id
string

Request ID. Pass any string and it will be echoed in the response.