Author Topic: CLI doesn't have a command similar to get_transactions_since (height)  (Read 1762 times)

0 Members and 1 Guest are viewing this topic.

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
No doesn't work properly and there is an issue with the 100 record limit since if you have more transactions than that you have no way of knowing unless you manually check each block which as you pointed out won't help without the id and is a huge waste of resources to do hence the need for a get/list since block type function.
« Last Edit: October 26, 2015, 02:49:25 am by ByronP »

Offline monsterer

Ohh u mean calling get block and looking to scan the operations and get ids. Haven't had to do that but for a good explorer or something it would be very useful. I get a list of ids from my history and then call get object with the txid and I get all the details.

Did you work out how to use get_account_history to page through the operations? For me it doesn't work at all.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
Ohh u mean calling get block and looking to scan the operations and get ids. Haven't had to do that but for a good explorer or something it would be very useful. I get a list of ids from my history and then call get object with the txid and I get all the details.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
U can use get_object to get a transaction by id

Transactions don't show the object ID when you call get_block, they only show the TXID hash.
This should be easily fixable!

//edit: since this is demanded by exchanges and partners I added a priority tag to you open issue:
https://github.com/cryptonomex/graphene/issues/395

Offline monsterer

U can use get_object to get a transaction by id

Transactions don't show the object ID when you call get_block, they only show the TXID hash.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
U can use get_object to get a transaction by id

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
You do realize that there is a github issue tracker for feature requests like those?
http://github.com/cryptonomex/graphene/issues

Offline monsterer

So I assume I am not missing anything, Anyone else think this needs to be added? Put your hands up guys (and gals) :-)

listsinceblock has been requested by me. Not sure if it'll get added. Wait until you want to look up a given transaction by txid - that's a barrel of fun.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
So I assume I am not missing anything, Anyone else think this needs to be added? Put your hands up guys (and gals) :-)

Offline ByronP

  • Full Member
  • ***
  • Posts: 70
    • View Profile
Curious as to the logic behind only being able to retrieve the last few transactions instead of having a function that returns all transactions after a given head height? This seems counter intuitive to me. Is there a call I am missing somewhere? It's not life or death not having it but it should be available to avoid wasting bandwidth and time looping through transactions.

Thoughts anyone?