cosmos transfers sent and received

Returns the latest 10 transfers on cosmoshub, where sender is cosmos…3udz, receiver is cosmos…3udz and time since 2024-08-08: timestamp time, block height, sender address, receiver address, currency symbol, message index, signer address and 4 more fields.

By gaurav · saved 8 August 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: CosmosNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cosmos(network: $network) {
    sent: transfers(
      sender: {is: "cosmos144fzpepuvdftv4u4r9kq8t35ap2crruv4u3udz"}
      options: {desc: "block.height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      currency {
        symbol
      }
      messageIndex
      transaction {
        signer {
          address
        }
        hash
      }
      type
      valueDecimal
      messageType
    }
    received: transfers(
      receiver: {is: "cosmos144fzpepuvdftv4u4r9kq8t35ap2crruv4u3udz"}
      options: {desc: "block.height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      currency {
        symbol
      }
      messageIndex
      transaction {
        hash
        signer {
          address
        }
      }
      type
      valueDecimal
      messageType
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "cosmoshub",
  "from": "2024-08-08T17:18:44.000Z",
  "till": "2024-08-08T17:48:44.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries