sd

Returns 10 money flows and smart contract calls on Ethereum, Algorand and Tron, where initial address is 0x52bc…e3b5, currency is ETH and parent block hash is ANN, sorted by amount, highest first: sender address, annotation, contract type, currency symbol, currency name, currency address, decimals and 51 more fields.

By Aleksey · saved 4 February 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "Tx&%", desc: "amount", limitBy: {each: "depth", limit: $limit}, limit: 10, maximumAddressTxCount: 10, maximumTotalTxCount: 10, minimumTxAmount: 1.5, seed: 10}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            address
            decimals
            tokenId
            tokenType
          }
          protocolType
        }
      }
      receiver {
        address
        annotation
        smartContract {
          currency {
            symbol
            name
            tokenId
            tokenType
          }
          protocolType
        }
      }
      amount(in: USD)
      currency {
        symbol
      }
      depth
      count
      transaction {
        hash
        value
      }
      transactions {
        timestamp
        height
        amount
        txHash
        txValue
      }
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
            address
            decimals
            tokenId
            tokenType
          }
          protocolType
        }
      }
      receiver {
        address
        annotation
        smartContract {
          currency {
            symbol
            name
            tokenId
            tokenType
          }
          protocolType
        }
      }
      amount(in: USD)
      currency {
        symbol
      }
      depth
      count
      transaction {
        hash
        value
      }
      transactions {
        timestamp
        height
        amount
        txHash
        txValue
      }
    }
    smartContractCalls(success: true, txFrom: {in: ""}, time: {}) {
      amount(smartContractAddress: {}, external: true, caller: {}, success: true)
      any(of: date)
      callDepth
      block
      count(success: true)
    }
  }
  algorand(network: algorand) {
    address(address: {})
    coinpath
    arguments(txHash: {}) {
      smartContract {
        bytecode
        source
      }
      transaction
    }
  }
  tron {
    transfers(success: true, external: true, date: {}, entityId: {is: ""}) {
      txTo(txTo: {}) {
        annotation
        address
      }
      sender {
        address
        annotation
      }
      success(success: true)
      netUsage(
        calculate: maximum
        amount: {between: 1.5, lteq: 1.5, lt: 1.5}
        time: {}
        external: true
        success: true
      )
      amount(
        success: $success
        height: {between: 10}
        external: true
        date: {since: "Infinity"}
        entityId: $entityId
      )
      count(success: true, entityId: {}, external: true, uniq: txs)
      block(time: {}) {
        height
        timestamp {
          unixtime
          year
          second
          time(format: "MM/DD/YEAR")
          month
          hour
          iso8601
          minute
          dayOfMonth
          dayOfWeek
        }
      }
      contractType
      fee(amount: {}, external: true, date: {after: "", till: ""}, success: true)
      entityId
      energyUsageTotal(calculate: maximum, external: true, success: true)
      external(external: true)
      receiver {
        address
      }
      date {
        year
        startOfInterval(unit: year, format: "")
        month
        dayOfMonth
      }
      any(of: date)
    }
    address(address: {})
    blocks(parentBlockHash: {in: "", is: "ANN"}, time: {since: "2014"}, version: {}) {
      txTrieRoot
      parentBlockHash(parentBlockHash: {is: "ANN"})
      version(version: {})
      witness {
        annotation
      }
      witnessSignature
    }
    coinpath {
      amount
      block {
        height
        timestamp {
          unixtime
          iso8601
          year
        }
      }
      count
    }
    contracts(success: true) {
      block
      currency {
        tokenId
        symbol
        tokenType
        name
        decimals
        address
      }
      success(success: $success)
      txHash
      netUsage(calculate: maximum, txHash: {}, success: true)
      txOwner(txOwner: {is: "F&K"}) {
        address
        annotation
      }
    }
    smartContractCalls(external: true, success: true) {
      external(external: true)
      success(success: true)
      txFrom
    }
  }
  search(string: "doge,dogecoin") {
    subject {
      ... on Address {
        annotation
      }
      ... on Currency {
        address
        name
        tokenId
        decimals
        symbol
        tokenType
      }
      ... on HederaAccount {
        __typename
        account
      }
      ... on SmartContract {
        annotation
        protocol
        address
        contractType
      }
      ... on TransactionHash {
        __typename
        hash
      }
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 100,
  "offset": 0,
  "network": "ethereum",
  "address": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5",
  "currency": "ETH",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries