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
List latest transactions
Lists the latest transactions on one of the Primary Network chains.
Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
For P-Chain, you can fetch all L1 validators related transactions like ConvertSubnetToL1Tx, IncreaseL1ValidatorBalanceTx etc. using the unique L1 validation ID. These transactions are further filterable by txTypes and timestamps as well.
Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
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.listLatestPrimaryNetworkTransactions({
addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg",
txTypes: [
"AddValidatorTx",
],
startTimestamp: 1689541049,
endTimestamp: 1689800249,
blockchainId: "p-chain",
network: "mainnet",
sortOrder: "asc",
});
for await (const page of result) {
// Handle the page
console.log(page);
}
}
run();
{
"nextPageToken": "<string>",
"transactions": [
{
"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>",
"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>"
}
}
],
"chainInfo": {
"chainName": "p-chain",
"network": "mainnet"
}
}
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.
11111111111111111111111111111111LpoYY
, 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM
, 2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm
, 2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV
, 2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5
, yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp
, vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu
, p-chain
, x-chain
, c-chain
Either mainnet or testnet/fuji.
mainnet
, fuji
, testnet
, devnet
Query Parameters
A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
Query param for filtering items based on transaction types.
AddValidatorTx
, AddSubnetValidatorTx
, AddDelegatorTx
, CreateChainTx
, CreateSubnetTx
, ImportTx
, ExportTx
, AdvanceTimeTx
, RewardValidatorTx
, RemoveSubnetValidatorTx
, TransformSubnetTx
, AddPermissionlessValidatorTx
, AddPermissionlessDelegatorTx
, BaseTx
, TransferSubnetOwnershipTx
, ConvertSubnetToL1Tx
, RegisterL1ValidatorTx
, SetL1ValidatorWeightTx
, DisableL1ValidatorTx
, IncreaseL1ValidatorBalanceTx
, UNKNOWN
, CreateAssetTx
, OperationTx
Query param for retrieving items after a specific timestamp.
x >= 0
Query param for retrieving items before a specific timestamp.
x >= 0
A 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.
1 <= x <= 100
The 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
A P-Chain transaction hash.
"3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP"
AddValidatorTx
, AddSubnetValidatorTx
, AddDelegatorTx
, CreateChainTx
, CreateSubnetTx
, ImportTx
, ExportTx
, AdvanceTimeTx
, RewardValidatorTx
, RemoveSubnetValidatorTx
, TransformSubnetTx
, AddPermissionlessValidatorTx
, AddPermissionlessDelegatorTx
, BaseTx
, TransferSubnetOwnershipTx
, ConvertSubnetToL1Tx
, RegisterL1ValidatorTx
, SetL1ValidatorWeightTx
, DisableL1ValidatorTx
, IncreaseL1ValidatorBalanceTx
, UNKNOWN
The block finality timestamp.
1648672486
The height of the block in which the transaction was included
The consumed UTXOs of the transaction
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
The index of the UTXO in the transaction
The hash of the transaction that created this UTXO
Indicates whether the UTXO is staked or transferable
STAKE
, TRANSFER
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Block height in which the transaction consuming this UTXO was included
Timestamp in seconds at which this UTXO is used in a consuming transaction
Timestamp in seconds after which this UTXO can be consumed
VALIDATOR
, DELEGATOR
, VALIDATOR_FEE
Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
The minimum number of signatures required to spend this UTXO
Timestamp in seconds after which the staked UTXO will be unlocked.
Timestamp in seconds at which the staked UTXO was locked.
The newly created UTXOs of the transaction
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
The index of the UTXO in the transaction
The hash of the transaction that created this UTXO
Indicates whether the UTXO is staked or transferable
STAKE
, TRANSFER
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Block height in which the transaction consuming this UTXO was included
Timestamp in seconds at which this UTXO is used in a consuming transaction
Timestamp in seconds after which this UTXO can be consumed
VALIDATOR
, DELEGATOR
, VALIDATOR_FEE
Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
The minimum number of signatures required to spend this UTXO
Timestamp in seconds after which the staked UTXO will be unlocked.
Timestamp in seconds at which the staked UTXO was locked.
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Source chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Destination chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Reward transaction hash for the completed validations or delegations
Staking transaction corresponding to the RewardValidatorTx
Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
Locktime in seconds after which Subnet owners can control this Subnet.
0
Minimum number of signatures required to sign the Subnet update transactions.
1
Addresses that are eligible to sign the Subnet update transactions.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
A token, which can be sent as pageToken
to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
A P-Chain transaction hash.
"3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP"
AddValidatorTx
, AddSubnetValidatorTx
, AddDelegatorTx
, CreateChainTx
, CreateSubnetTx
, ImportTx
, ExportTx
, AdvanceTimeTx
, RewardValidatorTx
, RemoveSubnetValidatorTx
, TransformSubnetTx
, AddPermissionlessValidatorTx
, AddPermissionlessDelegatorTx
, BaseTx
, TransferSubnetOwnershipTx
, ConvertSubnetToL1Tx
, RegisterL1ValidatorTx
, SetL1ValidatorWeightTx
, DisableL1ValidatorTx
, IncreaseL1ValidatorBalanceTx
, UNKNOWN
The block finality timestamp.
1648672486
The height of the block in which the transaction was included
The consumed UTXOs of the transaction
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
The index of the UTXO in the transaction
The hash of the transaction that created this UTXO
Indicates whether the UTXO is staked or transferable
STAKE
, TRANSFER
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Block height in which the transaction consuming this UTXO was included
Timestamp in seconds at which this UTXO is used in a consuming transaction
Timestamp in seconds after which this UTXO can be consumed
VALIDATOR
, DELEGATOR
, VALIDATOR_FEE
Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
The minimum number of signatures required to spend this UTXO
Timestamp in seconds after which the staked UTXO will be unlocked.
Timestamp in seconds at which the staked UTXO was locked.
The newly created UTXOs of the transaction
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
The index of the UTXO in the transaction
The hash of the transaction that created this UTXO
Indicates whether the UTXO is staked or transferable
STAKE
, TRANSFER
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Block height in which the transaction consuming this UTXO was included
Timestamp in seconds at which this UTXO is used in a consuming transaction
Timestamp in seconds after which this UTXO can be consumed
VALIDATOR
, DELEGATOR
, VALIDATOR_FEE
Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
The minimum number of signatures required to spend this UTXO
Timestamp in seconds after which the staked UTXO will be unlocked.
Timestamp in seconds at which the staked UTXO was locked.
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Source chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Destination chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
Reward transaction hash for the completed validations or delegations
Staking transaction corresponding to the RewardValidatorTx
Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
Locktime in seconds after which Subnet owners can control this Subnet.
0
Minimum number of signatures required to sign the Subnet update transactions.
1
Addresses that are eligible to sign the Subnet update transactions.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
A token, which can be sent as pageToken
to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
Unique ID for this transaction.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Represents chain format this transaction is included in.
non-linear
, linear
"non-linear"
Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
1600762738
Type of transaction.
BaseTx
, CreateAssetTx
, OperationTx
, ImportTx
, ExportTx
, UNKNOWN
Hex encoded memo bytes for this transaction.
"0x546865204176616c616e6368652050726f6a656374"
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
Transaction ID that created this output.
"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
Locktime in seconds after which this output can be consumed.
0
Postion of this output in a list of lexiographically sorted outputs of a transaction.
"38"
Minimum number of signatures required to consume this output.
1
Unix timestamp in seconds at which this outptut was created.
1599696000
Type of output.
"mint"
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Unix timestamp in seconds at which this output was consumed.
1599696000
Credentials that signed the transaction to consume this utxo
Signature provided to consume the output.
"bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA"
Public key associated with the signature.
"AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"
Index representing the minting set for the NFT mint output.
Hex encoded data for NFT assets.
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
Transaction ID that created this output.
"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
Locktime in seconds after which this output can be consumed.
0
Postion of this output in a list of lexiographically sorted outputs of a transaction.
"38"
Minimum number of signatures required to consume this output.
1
Unix timestamp in seconds at which this outptut was created.
1599696000
Type of output.
"mint"
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Unix timestamp in seconds at which this output was consumed.
1599696000
Credentials that signed the transaction to consume this utxo
Signature provided to consume the output.
"bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA"
Public key associated with the signature.
"AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"
Index representing the minting set for the NFT mint output.
Hex encoded data for NFT assets.
Assets unlocked by inputs of this transaction.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Assets created by outputs of this transaction.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
A transaction on X-Chain can be accepted over multiple vertices.
Vertex ID of the vertex this transaction belongs to.
"82qPRREHmh8Cfta4PGD6GymY9ZLyvgYugqW6hj9FykpMVRz1S"
Vertex height of the vertex this transaction belongs to.
1961
Timestamp in seconds this vertex was accepted.
1600762738
Source chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Destination chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
AssetAmount details of the asset created in CreateAssetTx
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Timestamp in seconds this asset was created on.
1675444720
Cap represents if an asset is a variable or fixed cap asset.
fixed
, variable
A token, which can be sent as pageToken
to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
Unique ID for this transaction.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Height of the block this transaction belongs to.
1005
Hash of the block this transaction belongs to.
"0x57a5cb7704561d1d59bd563b6421021b7563960c05ba3ae0e36fc36917c742ee"
Latest timestamp in seconds this transaction was accepted.
1600762738
Hex encoded memo bytes for this transaction.
"0x546865204176616c616e6368652050726f6a656374"
Assets unlocked by inputs of this transaction.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Assets created by outputs of this transaction.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Source chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Destination chain for an atomic transaction.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Type of transaction.
ExportTx
"ExportTx"
EVM address from which the asset is exported in ExportTx.
"0xD0f2898e49d941D6d479B381d3C8F0bd8d983b4c"
AssetAmount details for the asset being transferred.
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Credentials that signed this transaction.
Signature provided to consume the output.
"bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA"
Public key associated with the signature.
"AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"
Addresses that are eligible to sign the consumption of this output.
[
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
Unique ID for an asset.
"th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof"
Name of this asset.
"Avalanche"
Symbol for this asset (max 4 characters).
"AVAX"
Denomination of this asset to represent fungibility.
9
Type of asset like SECP256K1 or NFT.
secp256k1
, nft
Amount of the asset.
"5001000"
Blockchain ID on which this output is consumed on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
Blockchain ID on which this output is created on.
"2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
UTXO ID for this output.
"68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
Transaction ID that created this output.
"FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z"
Locktime in seconds after which this output can be consumed.
0
Postion of this output in a list of lexiographically sorted outputs of a transaction.
"38"
Minimum number of signatures required to consume this output.
1
Unix timestamp in seconds at which this outptut was created.
1599696000
Type of output.
"mint"
Transaction ID that consumed this output.
"3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c"
Unix timestamp in seconds at which this output was consumed.
1599696000
Credentials that signed the transaction to consume this utxo
Signature provided to consume the output.
"bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA"
Public key associated with the signature.
"AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI"
Index representing the minting set for the NFT mint output.
Hex encoded data for NFT assets.
A token, which can be sent as pageToken
to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
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.listLatestPrimaryNetworkTransactions({
addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg",
txTypes: [
"AddValidatorTx",
],
startTimestamp: 1689541049,
endTimestamp: 1689800249,
blockchainId: "p-chain",
network: "mainnet",
sortOrder: "asc",
});
for await (const page of result) {
// Handle the page
console.log(page);
}
}
run();
{
"nextPageToken": "<string>",
"transactions": [
{
"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>",
"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>"
}
}
],
"chainInfo": {
"chainName": "p-chain",
"network": "mainnet"
}
}