GET
/
v1
/
networks
/
{network}
/
blockchains
/
{blockchainId}
/
vertices
/
{vertexHash}
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  serverURL: "https://api.example.com",
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.primaryNetwork.vertices.getVertexByHash({
    vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr",
    blockchainId: "x-chain",
    network: "mainnet",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "vertexHash": "<string>",
  "parentHashes": [
    "<string>"
  ],
  "vertexHeight": 123,
  "vertexIndex": 123,
  "vertexTimestamp": 123,
  "txCount": 123,
  "transactions": [
    "<string>"
  ],
  "vertexSizeBytes": 123
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Path Parameters

vertexHash
string
required

A vertex hash string.

blockchainId
enum<string>
required

A primary network blockchain id or alias.

Available options:
2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM,
2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm,
2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV,
x-chain
network
enum<string>
required

Either mainnet or testnet/fuji.

Available options:
mainnet,
fuji,
testnet,
devnet

Response

200
application/json
Successful response
vertexHash
string
required
parentHashes
string[]
required
vertexHeight
number
required
vertexIndex
number
required
vertexTimestamp
number
required
txCount
number
required
transactions
string[]
required
vertexSizeBytes
number
required