Cardano Inbound and Outbound

Returns 10 outputs and inputs on Cardano, where output address is addr1q…fhk7 and input address is addr1q…fhk7, sorted by block height transaction index, highest first: block height, timestamp time, transaction hash, output index, output direction, value, currency symbol and 4 more fields.

By gaurav · saved 25 August 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  cardano(network: cardano) {
   inbound: outputs(
      date: {since: null, till: null}
      outputAddress: {is: "addr1qyqcer6pyd8ltpwwsd3zpyx94v2tvrg5cx89wsmcgjg0lz6rgrg0km7td4ldj5k9yg2fhm72frp3hyj6zar8p6tuthjsg9fhk7"}
      options: {desc: ["block.height", "outputIndex"], limit: 0, offset: 10}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        hash
      }
      outputIndex
      outputDirection
      value
      currency {
        symbol
      }
    }
    outbound:  inputs(date: {since: null, till: null}, inputAddress: {is: "addr1qyqcer6pyd8ltpwwsd3zpyx94v2tvrg5cx89wsmcgjg0lz6rgrg0km7td4ldj5k9yg2fhm72frp3hyj6zar8p6tuthjsg9fhk7"}, options: {desc: ["block.height", "transaction.index"], limit: 10, offset: 0}) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      outputTransaction {
        hash
        index
      }
      transaction {
        hash
        index
      }
      inputIndex
      value
      currency {
        symbol
      }
    }
  }
}

Similar queries