import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
network: "mainnet",
});
async function run() {
const result = await avalanche.data.primaryNetwork.vertices.getByHash({
vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr",
blockchainId: "x-chain",
});
console.log(result);
}
run();{
"vertexHash": "<string>",
"parentHashes": [
"<string>"
],
"vertexHeight": 123,
"vertexIndex": 123,
"vertexTimestamp": 123,
"txCount": 123,
"transactions": [
"<string>"
],
"vertexSizeBytes": 123
}Gets a single vertex on the X-Chain.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche({
network: "mainnet",
});
async function run() {
const result = await avalanche.data.primaryNetwork.vertices.getByHash({
vertexHash: "haP1CW56cspZY7aEuqHNrtpvhqCaMTxQaYe6j5u2Mbn4L2Gqr",
blockchainId: "x-chain",
});
console.log(result);
}
run();{
"vertexHash": "<string>",
"parentHashes": [
"<string>"
],
"vertexHeight": 123,
"vertexIndex": 123,
"vertexTimestamp": 123,
"txCount": 123,
"transactions": [
"<string>"
],
"vertexSizeBytes": 123
}Documentation Index
Fetch the complete documentation index at: https://developers.avacloud.io/llms.txt
Use this file to discover all available pages before exploring further.
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
A vertex hash string.
A primary network blockchain id or alias.
2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm, x-chain Either mainnet or testnet/fuji.
mainnet, fuji, testnet Was this page helpful?