vocdoni / interoperability

Private repository to manage the interoperability between protocol, API, SDK, UIs and documentation
1 stars 0 forks source link

Implement TX list by block height #190

Closed selankon closed 1 week ago

selankon commented 1 month ago

Actually the way to get the tx list on a block is to get every single tx using the data.txs.length of the block and looping every index /chain/transactions/:height/:index.

After talk with @altergui he said that a refactor will be done backend side to return a list of transactions by block height.

Explorer related issue https://github.com/vocdoni/explorer/issues/50

selankon commented 1 month ago

The method actually exists https://developer.vocdoni.io/vocdoni-api/transactions-in-a-block

But we still need to get the total number of transactions on the block information

altergui commented 1 month ago

But we still need to get the total number of transactions on the block information

addressed in https://github.com/vocdoni/vocdoni-node/pull/1329/commits/f16e92db3c653c629b55fdcf301bcbc039f91c1a

selankon commented 1 month ago

This need to be implemented on the SDK types and on to the explorer when merged