BitShares Forum

Main => General Discussion => Topic started by: ByronP on October 25, 2015, 01:20:17 am

Title: CLI doesn't have a command similar to get_transactions_since (height)
Post by: ByronP on October 25, 2015, 01:20:17 am
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?
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: ByronP on October 25, 2015, 04:17:54 pm
So I assume I am not missing anything, Anyone else think this needs to be added? Put your hands up guys (and gals) :-)
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: monsterer on October 25, 2015, 04:23:55 pm
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.
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: xeroc on October 25, 2015, 04:24:28 pm
You do realize that there is a github issue tracker for feature requests like those?
http://github.com/cryptonomex/graphene/issues
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: ByronP on October 25, 2015, 04:26:32 pm
U can use get_object to get a transaction by id
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: monsterer on October 25, 2015, 04:34:07 pm
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.
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: xeroc on October 25, 2015, 04:35:22 pm
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
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: ByronP on October 25, 2015, 04:39:43 pm
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.
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: monsterer on October 25, 2015, 04:45:08 pm
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.
Title: Re: CLI doesn't have a command similar to get_transactions_since (height)
Post by: ByronP on October 25, 2015, 04:48:41 pm
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.