List vertices by height
Lists vertices at the given vertex height on the X-Chain.
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://build.avax.network/console/utilities/data-api-keys.
In: header
Path Parameters
A primary network blockchain id or alias.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "x-chain"Either mainnet or testnet/fuji.
"mainnet" | "fuji" | "testnet"Query Parameters
The height of a vertex.
0 <= valueA page token, received from a previous list call. Provide this to retrieve the subsequent page.
The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
101 <= value <= 100The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the sortBy query parameter, if provided.
"asc" | "desc"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://data-api.avax.network/v1/networks/mainnet/blockchains/x-chain/vertices:listByHeight?vertexHeight=123&pageSize=10&sortOrder=asc"{
"nextPageToken": "string",
"vertices": [
{
"vertexHash": "string",
"parentHashes": [
"string"
],
"vertexHeight": 0,
"vertexIndex": 0,
"vertexTimestamp": 0,
"txCount": 0,
"transactions": [
"string"
],
"vertexSizeBytes": 0
}
],
"chainInfo": {
"chainName": "p-chain",
"network": "mainnet"
}
}{
"message": "string",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "string",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "string",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "string",
"statusCode": 404,
"error": "Not Found"
}{
"message": "string",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "string",
"statusCode": 500,
"error": "Internal Server Error"
}{
"message": "string",
"statusCode": 502,
"error": "Bad Gateway"
}{
"message": "string",
"statusCode": 503,
"error": "Service Unavailable"
}Is this guide helpful?