ethereum transactions

Returns transactions on Ethereum, where tx hash is 0x8866…fff0 or 0x78ce…46ec: amount, count, success, error, iso8601, currency address, decimals and 10 more fields.

By qiyh42an · saved 24 September 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $hashes: [String!]!) {
  ethereum(network: $network) {
    transactions(any: {txHash: {in: $hashes}}) {
      amount
      count
      success
      error
      block {
        timestamp {
          iso8601
        }
      }
      currency {
        address
        decimals
        name
        symbol
        tokenId
        tokenType
      }
      sender {
        address
        annotation
        smartContract {
          contractType
          protocolType
        }
      }
      creates {
        address
        annotation
        smartContract {
          contractType
          protocolType
        }
      }
      to {
        address
        annotation
        smartContract {
          contractType
          protocolType
        }
      }
    }
  }
}

Variables

{
  "network": "ethereum",
  "hashes": [
    "0x8866477325646b6de90a87a784f73fba9b6e32e8a0ac08bc1b81f43a67b4fff0",
    "0x78ce4b45fdadf6312ec5f9b0892192f3f3a53fb70fa6b5489278aede04a546ec"
  ]
}

Similar queries