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

Authorizations

X-API-Key
string
header
required

Body

application/json
seqno
required

Block or wallet sequence number. For blocks, this is the block height. For wallets, increment this for each outgoing transaction.

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.