EVM Transactions

List transactions for a block

Lists the transactions that occured in a given block.

get/v1/chains/{chainId}/blocks/{blockId}/transactions

Request

  • Base URL: https://data-api.avax.network
  • URL: https://data-api.avax.network/v1/chains/{chainId}/blocks/{blockId}/transactions
  • Auth: one of:
    • API key in header x-glacier-api-key
    • none

Path parameters

chainIdstring required

A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.

blockIdstring required

A block identifier which is either a block number or the block hash.

Query parameters

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 0. The maximum pageSize is 100.

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": [
    {
      "blockNumber": "339",
      "blockTimestamp": 1648672486,
      "blockTimestampMilliseconds": 1648672486000,
      "blockMinDelayExcess": 7477290,
      "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c",
      "chainId": "43114",
      "txHash": "0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4",
      "txStatus": "1",
      "txType": 1,
      "gasLimit": "51373",
      "gasUsed": "51373",
      "gasPrice": "470000000000",
      "nonce": "1",
      "from": {
        "name": "Wrapped AVAX",
        "symbol": "WAVAX",
        "decimals": 18,
        "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
        "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
      },
      "to": {
        "name": "Wrapped AVAX",
        "symbol": "WAVAX",
        "decimals": 18,
        "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
        "address": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
      },
      "method": {
        "methodHash": "0xa9059cbb",
        "methodName": "transfer(address,uint256)"
      },
      "value": "10000000000000000000"
    }
  ]
}

Changes

No recorded changes to this operation across all 3 revisions of this API.