Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Transaction Query Fields

Akhila Raju edited this page Jul 26, 2018 · 1 revision

The following fields can be queried on a transaction. For information on each field, search the Document Explorer in the EthQL demo for the 'Transaction' field. Fiddle with this query.

{
  transaction(hash: "0x7cc930cef131502bb78c13012caf0d99117892601b81fb95958aac98191fe6fb") {
    hash
    nonce
    index
    from {
      address
    }
    to {
      address
    }
    value
    gasPrice
    gas
    inputData
    status
    block {
      hash
    }
  }
}

The example query above returns the following:

{
  transaction(hash: "0x7cc930cef131502bb78c13012caf0d99117892601b81fb95958aac98191fe6fb") {
    hash: "0x7cc930cef131502bb78c13012caf0d99117892601b81fb95958aac98191fe6fb",
    nonce: 768,
    index: 67
    from {
      address: "0xBaA705866f77Af9194A8a91B8104438b20272958"
    }
    to {
      address: "0x9e6B2B11542f2BC52f3029077acE37E8fD838D7F"
    }
    value: 0
    gasPrice: 4000000002
    gas: 500000
    inputData: "0xa9059cbb000000000000000000000000f477dc44297101ab68e7f05936d8f0810a2238780000000000000000000000000000000000000000000000000000001c3e0a3a88"
    status: "SUCCESS"
    block {
      hash: "0x7d5a4369273c723454ac137f48a4f142b097aa2779464e6505f1b1c5e37b5382"
    }
  }
}