How to get the count of objects?

Started by kinglaw0577, December 30, 2015, 07:47:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeroc

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

kinglaw0577

Quote from: 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)

Yes,I want to get the recent n transactions,so I hope get  the last identifier of objects of that type.
☆bitshares Richlist富豪榜 http://richlist.btsabc.org☆
☆BTSABC wallet online比特帝国在线钱包 https://bit.btsabc.org☆

svk

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)
Worker: dev.bitsharesblocks

xeroc

What "count"?
if you need an identifier for that particular operation, it is the number that comes after "1.11."

kinglaw0577

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?
☆bitshares Richlist富豪榜 http://richlist.btsabc.org☆
☆BTSABC wallet online比特帝国在线钱包 https://bit.btsabc.org☆