v1

latestOpenAPI 3.1.02026-07-1288262495.0 KB
Primary Network Transactions

List staking transactions

Lists active staking transactions on the P-Chain for the supplied addresses.

get/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking

Path parameters

blockchainId'11111111111111111111111111111111LpoYY' | 'p-chain' required

A primary network blockchain id or alias.

network'mainnet' | 'fuji' | 'testnet' required

Either mainnet or testnet/fuji.

Query parameters

addressesstring

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".

txTypesPrimaryNetworkTxType[]

Query param for filtering items based on transaction types.

startTimestampinteger

Query param for retrieving items after a specific timestamp.

endTimestampinteger

Query param for retrieving items before a specific timestamp.

pageTokenstring

A page token, received from a previous list call. Provide this to retrieve the subsequent page.

pageSizeinteger

The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.

sortOrder'asc' | 'desc'

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.

Response

Successful response

nextPageTokenstring

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.

Example response

{
  "transactions": [
    {
      "txHash": "3P91K6nuDFvDodcRuJTsgdf9SvYe5pMiKk38HppsoeAiEztCP",
      "blockTimestamp": 1648672486,
      "consumedUtxos": [
        {
          "addresses": [
            "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
          ],
          "asset": {
            "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
            "name": "Avalanche",
            "symbol": "AVAX",
            "denomination": 9,
            "amount": "5001000"
          },
          "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
          "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
          "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
          "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
        }
      ],
      "emittedUtxos": [
        {
          "addresses": [
            "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
          ],
          "asset": {
            "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
            "name": "Avalanche",
            "symbol": "AVAX",
            "denomination": 9,
            "amount": "5001000"
          },
          "consumedOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
          "consumingTxHash": "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
          "createdOnChainId": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
          "utxoId": "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC"
        }
      ],
      "sourceChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "destinationChain": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
      "value": [
        {
          "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
          "name": "Avalanche",
          "symbol": "AVAX",
          "denomination": 9,
          "amount": "5001000"
        }
      ],
      "amountBurned": [
        {
          "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
          "name": "Avalanche",
          "symbol": "AVAX",
          "denomination": 9,
          "amount": "5001000"
        }
      ],
      "amountStaked": [
        {
          "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
          "name": "Avalanche",
          "symbol": "AVAX",
          "denomination": 9,
          "amount": "5001000"
        }
      ],
      "amountL1ValidatorBalanceBurned": [
        {
          "assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
          "name": "Avalanche",
          "symbol": "AVAX",
          "denomination": 9,
          "amount": "5001000"
        }
      ],
      "subnetOwnershipInfo": {
        "threshold": 1,
        "addresses": [
          "avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
        ]
      },
      "blockchainInfo": {
        "genesisData": {
          "airdropHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "alloc": {
            "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": {
              "balance": "0x52b7d2dcc80cd2e4000000",
              "code": "0x6080604052...",
              "storage": {
                "0x0": "0x1"
              }
            }
          },
          "coinbase": "0x0000000000000000000000000000000000000000",
          "config": {
            "chainId": 43114,
            "eip150Hash": "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0",
            "feeConfig": {
              "baseFeeChangeDenominator": 36,
              "blockGasCostStep": 200000,
              "gasLimit": 12000000,
              "maxBlockGasCost": 1000000,
              "minBaseFee": 25000000000,
              "targetBlockRate": 2,
              "targetGas": 60000000
            },
            "warpConfig": {
              "blockTimestamp": 1690000000,
              "quorumNumerator": 67,
              "requirePrimaryNetworkSigners": true
            },
            "txAllowListConfig": {
              "adminAddresses": [
                "0x1234..."
              ],
              "managerAddresses": [
                "0x5678..."
              ],
              "enabledAddresses": [
                "0x9abc..."
              ]
            },
            "contractDeployerAllowListConfig": {
              "adminAddresses": [
                "0x1234..."
              ],
              "managerAddresses": [
                "0x5678..."
              ],
              "enabledAddresses": [
                "0x9abc..."
              ]
            },
            "contractNativeMinterConfig": {
              "adminAddresses": [
                "0x1234..."
              ],
              "managerAddresses": [
                "0x5678..."
              ],
              "enabledAddresses": [
                "0x9abc..."
              ]
            },
            "feeManagerConfig": {
              "adminAddresses": [
                "0x1234..."
              ],
              "managerAddresses": [
                "0x5678..."
              ],
              "enabledAddresses": [
                "0x9abc..."
              ]
            },
            "rewardManagerConfig": {
              "adminAddresses": [
                "0x1234..."
              ],
              "managerAddresses": [
                "0x5678..."
              ],
              "enabledAddresses": [
                "0x9abc..."
              ]
            }
          },
          "difficulty": "0x0",
          "extraData": "0x",
          "gasLimit": "0xb71b00",
          "gasUsed": "0x0",
          "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "nonce": "0x0",
          "number": "0x0",
          "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "timestamp": "0x64f0a000"
        }
      }
    }
  ]
}