Granite Upgrade Activates in12d:21h:37m:23s
Transactions

Get transaction

Gets the details of a single transaction on one of the Primary Network chains.

GET
/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}
x-glacier-api-key<token>

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

In: header

Path Parameters

blockchainIdstring

A primary network blockchain id or alias.

Value in"11111111111111111111111111111111LpoYY" | "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM" | "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm" | "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5" | "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp" | "p-chain" | "x-chain" | "c-chain"
networkstring

Either mainnet or testnet/fuji.

Value in"mainnet" | "fuji" | "testnet"
txHashstring

A primary network (P or X chain) transaction hash.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://glacier-api.avax.network/v1/networks/mainnet/blockchains/p-chain/transactions/3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP"
{
  "txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP",
  "txType": "AddDelegatorTx",
  "blockTimestamp": 1648672486,
  "blockNumber": "string",
  "blockHash": "string",
  "consumedUtxos": [
    {
      "addresses": [
        "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
      ],
      "asset": {
        "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
        "name": "Avalanche",
        "symbol": "AVAX",
        "denomination": 9,
        "type": "secp256k1",
        "amount": "5001000"
      },
      "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
      "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC",
      "utxoBytes": "string",
      "amount": "string",
      "assetId": "string",
      "blockNumber": "string",
      "blockTimestamp": 0,
      "consumingBlockNumber": "string",
      "consumingBlockTimestamp": 0,
      "platformLocktime": 0,
      "outputIndex": 0,
      "rewardType": "VALIDATOR",
      "stakeableLocktime": 0,
      "staked": true,
      "threshold": 0,
      "txHash": "string",
      "utxoEndTimestamp": 0,
      "utxoStartTimestamp": 0,
      "utxoType": "STAKE"
    }
  ],
  "emittedUtxos": [
    {
      "addresses": [
        "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
      ],
      "asset": {
        "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
        "name": "Avalanche",
        "symbol": "AVAX",
        "denomination": 9,
        "type": "secp256k1",
        "amount": "5001000"
      },
      "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
      "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC",
      "utxoBytes": "string",
      "amount": "string",
      "assetId": "string",
      "blockNumber": "string",
      "blockTimestamp": 0,
      "consumingBlockNumber": "string",
      "consumingBlockTimestamp": 0,
      "platformLocktime": 0,
      "outputIndex": 0,
      "rewardType": "VALIDATOR",
      "stakeableLocktime": 0,
      "staked": true,
      "threshold": 0,
      "txHash": "string",
      "utxoEndTimestamp": 0,
      "utxoStartTimestamp": 0,
      "utxoType": "STAKE"
    }
  ],
  "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
  "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
  "value": [
    {
      "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
      "name": "Avalanche",
      "symbol": "AVAX",
      "denomination": 9,
      "type": "secp256k1",
      "amount": "5001000"
    }
  ],
  "amountBurned": [
    {
      "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
      "name": "Avalanche",
      "symbol": "AVAX",
      "denomination": 9,
      "type": "secp256k1",
      "amount": "5001000"
    }
  ],
  "amountStaked": [
    {
      "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
      "name": "Avalanche",
      "symbol": "AVAX",
      "denomination": 9,
      "type": "secp256k1",
      "amount": "5001000"
    }
  ],
  "amountL1ValidatorBalanceBurned": [
    {
      "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
      "name": "Avalanche",
      "symbol": "AVAX",
      "denomination": 9,
      "type": "secp256k1",
      "amount": "5001000"
    }
  ],
  "startTimestamp": 0,
  "endTimestamp": 0,
  "delegationFeePercent": "string",
  "nodeId": "string",
  "subnetId": "string",
  "l1ValidatorManagerDetails": {
    "blockchainId": "string",
    "contractAddress": "string"
  },
  "l1ValidatorDetails": [
    {
      "validationId": "string",
      "validationIdHex": "string",
      "nodeId": "string",
      "subnetId": "string",
      "weight": 0,
      "remainingBalance": 0,
      "balanceChange": 0,
      "blsCredentials": {}
    }
  ],
  "estimatedReward": "string",
  "rewardTxHash": "string",
  "rewardAddresses": [
    "string"
  ],
  "memo": "string",
  "stakingTxHash": "string",
  "subnetOwnershipInfo": {
    "locktime": 0,
    "threshold": 1,
    "addresses": [
      "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
    ]
  },
  "blsCredentials": {
    "publicKey": "string",
    "proofOfPossession": "string"
  },
  "blockchainInfo": {
    "chainName": "string",
    "vmId": "string",
    "genesisData": {}
  }
}
{
  "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?