Skip to content

Display UD in transaction history

this issue was recycled but indexer-side UD history is not yet available

The transaction history should be displayed. Cesium v1 can be a source of inspiration: image

The duniter-squid query could look like:

query TxHistoryView($account_id: String!) {
  accountById(id: $account_id) {
    id
    transfersIssued(limit: 10, orderBy: blockNumber_DESC) {
      to {
        id
      }
      comment
      amount
      timestamp
    }
    transfersReceived(limit: 10, orderBy: blockNumber_DESC) {
      from {
        id
      }
      comment
      amount
      timestamp
    }
  }
}

BUT

  • since the number of transfers can be high, some kind of limit should be used, here I used "limit: 10" which is no relevant because the date will not match, we then have to think about a pagination strategy, please discuss it on the forum to see if we need to implement something server-side
  • transaction comments might not be stored in the same indexer depending on the offchain storage strategy, so not too much effort should be put there for the moment
  • we do not have a good indexer-side option to display UDs for the moment, no effort should be put here either at the moment
Edited by Hugo Trentesaux