BitShares Forum

Main => Technical Support => Topic started by: kinglaw0577 on December 30, 2015, 07:47:35 am

Title: How to get the count of objects?
Post by: kinglaw0577 on December 30, 2015, 07:47:35 am
I know  "operation_history" object is 1.11.x,I can use get_objects to get it,
but how to get the count of this?
Title: Re: How to get the count of objects?
Post by: xeroc on December 30, 2015, 09:21:12 am
What "count"?
if you need an identifier for that particular operation, it is the number that comes after "1.11."
Title: Re: How to get the count of objects?
Post by: svk on December 30, 2015, 09:35:08 am
He probably means the number of objects of that type.

As far as I know it's not possible, so you'll need to query objects in a loop until you find the first one that's undefined (or null or whatever the witness_node returns for objects that don't exist)
Title: Re: How to get the count of objects?
Post by: kinglaw0577 on December 31, 2015, 05:00:54 am
He probably means the number of objects of that type.

As far as I know it's not possible, so you'll need to query objects in a loop until you find the first one that's undefined (or null or whatever the witness_node returns for objects that don't exist)

Yes,I want to get the recent n transactions,so I hope get  the last identifier of objects of that type.
Title: Re: How to get the count of objects?
Post by: xeroc on December 31, 2015, 12:13:44 pm
Each account has a balance object that states the latest operation id that caused a change in your account .. i think it is 2.6.x with x being the id of your account 1.2.x