bsc transaction

Returns transactions on Ethereum and BNB Chain, where tx hash is 0x1d98…53db: block height, timestamp time, amount, currency symbol, creates address, annotation, error and 7 more fields.

By gaurav · saved 7 August 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $hash: String!) {
  ethereum(network: $network) {
    transactions(txHash: {is: $hash}) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      amount
      amount_usd: amount(in: USD)
      currency {
        symbol
      }
      creates {
        address
        annotation
      }
      error
      success
      sender {
        address
        annotation
      }
      to {
        address
        annotation
      }
      gas
      gasPrice
      gasCurrency {
        symbol
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "hash": "0x1d989f707061ba9b25b4b44e130689f2e769ae8590fb5bff728da4b35d1553db"
}

Similar queries