seredat / karbowanec

Karbo (Karbovanets) - Digital Exchange Medium - cryptocurrency made in Ukraine, CryptoNote protocol implementation.
https://karbo.io/
Other
104 stars 66 forks source link

New RPC method gettransactionsbyheights #131

Closed aivve closed 4 years ago

aivve commented 4 years ago

This one is intended to use with a web/lite wallet to speed up its sync by faster-returning transactions.

Request example:

{
  "jsonrpc": "2.0",
  "id": "test",
  "method": "gettransactionsbyheights",
  "params": {
   "heights":[1,2,3,4,5],
   "include_miner_txs":true,
   "exclude_signatures":true,
   "range":false
  }
}

If range is set to true then heights has to have two values: the beginning and the end of the range. If include_miner_txs is set to false, it omits coinbase transactions. If exclude_signatures is set to true it omits ring signatures in transactions, to save traffic as they are large and not needed.