Transactions
Get transaction
Get Started
Learn
- Tutorials
Health Check
- Health Check
EVM
- Chains
- Blocks
- Transactions
- Balances
- Contracts
- NFTs
Primary Network
- Network, Chains & subnet
- Validators & Delegators
- Blocks
- Vertices
- Transactions
- Balances & UTXOs
- Rewards
- Assets
ICM Services
- Teleporter
- Interchain Messaging
- Signature Aggregator
Operations
- Operations
Usage Metrics
- Usage Metrics
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}
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.transactions.get({
blockchainId: "p-chain",
network: "mainnet",
txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP",
});
// Handle the result
console.log(result);
}
run();
{
"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",
"amount": "<string>",
"assetId": "<string>",
"blockNumber": "<string>",
"blockTimestamp": 123,
"consumingBlockNumber": "<string>",
"consumingBlockTimestamp": 123,
"platformLocktime": 123,
"outputIndex": 123,
"rewardType": "VALIDATOR",
"stakeableLocktime": 123,
"staked": true,
"threshold": 123,
"txHash": "<string>",
"utxoEndTimestamp": 123,
"utxoStartTimestamp": 123,
"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",
"amount": "<string>",
"assetId": "<string>",
"blockNumber": "<string>",
"blockTimestamp": 123,
"consumingBlockNumber": "<string>",
"consumingBlockTimestamp": 123,
"platformLocktime": 123,
"outputIndex": 123,
"rewardType": "VALIDATOR",
"stakeableLocktime": 123,
"staked": true,
"threshold": 123,
"txHash": "<string>",
"utxoEndTimestamp": 123,
"utxoStartTimestamp": 123,
"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": 123,
"endTimestamp": 123,
"delegationFeePercent": "<string>",
"nodeId": "<string>",
"subnetId": "<string>",
"l1ValidatorManagerDetails": {
"blockchainId": "<string>",
"contractAddress": "<string>"
},
"l1ValidatorDetails": [
{
"validationId": "<string>",
"validationIdHex": "<string>",
"nodeId": "<string>",
"subnetId": "<string>",
"weight": 123,
"remainingBalance": 123,
"balanceChange": 123,
"blsCredentials": {}
}
],
"estimatedReward": "<string>",
"rewardTxHash": "<string>",
"rewardAddresses": [
"<string>"
],
"memo": "<string>",
"stakingTxHash": "<string>",
"subnetOwnershipInfo": {
"locktime": 0,
"threshold": 1,
"addresses": [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
},
"blsCredentials": {
"publicKey": "<string>",
"proofOfPossession": "<string>"
}
}
Authorizations
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
Path Parameters
A primary network blockchain id or alias.
Available options:
11111111111111111111111111111111LpoYY
, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM
, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm
, 2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV
, 2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5
, yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp
, vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu
, p-chain
, x-chain
, c-chain
Either mainnet or testnet/fuji.
Available options:
mainnet
, fuji
, testnet
A primary network (P or X chain) transaction hash.
Response
200
application/json
Successful response
The response is of type object
.
The response is of type object
.
The response is of type object
.
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
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.transactions.get({
blockchainId: "p-chain",
network: "mainnet",
txHash: "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP",
});
// Handle the result
console.log(result);
}
run();
{
"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",
"amount": "<string>",
"assetId": "<string>",
"blockNumber": "<string>",
"blockTimestamp": 123,
"consumingBlockNumber": "<string>",
"consumingBlockTimestamp": 123,
"platformLocktime": 123,
"outputIndex": 123,
"rewardType": "VALIDATOR",
"stakeableLocktime": 123,
"staked": true,
"threshold": 123,
"txHash": "<string>",
"utxoEndTimestamp": 123,
"utxoStartTimestamp": 123,
"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",
"amount": "<string>",
"assetId": "<string>",
"blockNumber": "<string>",
"blockTimestamp": 123,
"consumingBlockNumber": "<string>",
"consumingBlockTimestamp": 123,
"platformLocktime": 123,
"outputIndex": 123,
"rewardType": "VALIDATOR",
"stakeableLocktime": 123,
"staked": true,
"threshold": 123,
"txHash": "<string>",
"utxoEndTimestamp": 123,
"utxoStartTimestamp": 123,
"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": 123,
"endTimestamp": 123,
"delegationFeePercent": "<string>",
"nodeId": "<string>",
"subnetId": "<string>",
"l1ValidatorManagerDetails": {
"blockchainId": "<string>",
"contractAddress": "<string>"
},
"l1ValidatorDetails": [
{
"validationId": "<string>",
"validationIdHex": "<string>",
"nodeId": "<string>",
"subnetId": "<string>",
"weight": 123,
"remainingBalance": 123,
"balanceChange": 123,
"blsCredentials": {}
}
],
"estimatedReward": "<string>",
"rewardTxHash": "<string>",
"rewardAddresses": [
"<string>"
],
"memo": "<string>",
"stakingTxHash": "<string>",
"subnetOwnershipInfo": {
"locktime": 0,
"threshold": 1,
"addresses": [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
},
"blsCredentials": {
"publicKey": "<string>",
"proofOfPossession": "<string>"
}
}