tx_list_by_address_with_internals

The query returns all outbound transactions between two Bitcoin addresses.

Returns 1000 money flows and transactions on Ethereum, where initial address is 0x88ad…0caf, tx sender is 0x88ad…0caf and tx to is 0x88ad…0caf, sorted by call depth: currency name, currency symbol, token type, currency address, decimals, sender address, sender type and 22 more fields.

By me · saved 28 March 2023 · run 45 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($limit: Int, $inputAddress: String, $network: EthereumNetwork!) {
  ethereum(network: $network) {
    txs_inbound: coinpath(
      initialAddress: {is: $inputAddress}
      options: {direction: inbound, limit: $limit}
    ) {
      currency {
        name
        symbol
        tokenType
        address
        decimals
      }
      sender {
        address
        type
        annotation
      }
      receiver {
        address
        type
        annotation
      }
      amount
      block {
        timestamp {
          unixtime
          iso8601
        }
      }
      transaction {
        hash
        time {
          iso8601
        }
        value
      }
    }
    txs_outbound: coinpath(
      initialAddress: {is: $inputAddress}
      options: {direction: outbound, limit: $limit}
    ) {
      currency {
        name
        symbol
        tokenType
        address
        decimals
      }
      sender {
        address
        type
        annotation
      }
      receiver {
        address
        type
        annotation
      }
      amount
      block {
        timestamp {
          unixtime
          iso8601
        }
      }
      transaction {
        hash
        time {
          iso8601
        }
        value
      }
    }
    sent: transactions(options: {limit: $limit}, txSender: {is: $inputAddress}) {
      hash
      amount(in: USD)
      currency {
        name
        symbol
      }
      gasValue
      sender {
        address
      }
      to {
        address
      }
    }
    rec: transactions(options: {limit: $limit}, txTo: {is: $inputAddress}) {
      hash
      amountUsd: amount(in: USD)
      amount
      currency {
        name
        symbol
      }
      gasValue
      sender {
        address
      }
      to {
        address
      }
    }
    internals: smartContractCalls(
      options: {asc: "callDepth"}
      txFrom: {is: $inputAddress}
    ) {
      smartContract {
        address {
          address
          annotation
        }
        contractType
        protocolType
      }
      smartContractMethod {
        name
        signatureHash
      }
      address: caller {
        address
        annotation
      }
      success
      amount
      amount_usd: amount(in: USD)
      gasValue
      gas_value_usd: gasValue(in: USD)
      callDepth
      transaction {
        hash
        gas
        gasPrice
        gasValue
        txFrom {
          address
        }
      }
    }
  }
}

Variables

{
  "limit":1000,
  "inputAddress" : "0x88adfd17c642b499679cf6dc9811523768900caf",
  "network":"ethereum"
}

Similar queries