Random Number Generator (RNG)
Other Documentation
Blockchain Inspection

Blockchain Inspection

get_block

Returns info about a specified block.
1
optional<signed_block_with_info> graphene::wallet::wallet_api::get_block(
2
uint32_t num)
Copied!
Parameters
Return
  • num: height of the block to retrieve
Info about the block, or null if not found.

get_account_count

Returns the number of accounts registered on the blockchain.
1
uint64_t graphene::wallet::wallet_api::get_account_count()const
Copied!
Return
The number of registered accounts

get_global_properties

Returns the block chain’s slowly-changing settings.
This object contains all of the properties of the blockchain that are fixed or that change only once per maintenance interval (daily) such as the current list of witnesses, committee_members, block interval, etc.
See get_dynamic_global_properties() for frequently changing properties.
1
global_property_object graphene::wallet::wallet_api::get_global_properties()const
Copied!
Return
The global properties.

get_dynamic_global_properties

Returns the block chain’s rapidly-changing properties. The returned object contains information that changes every block interval such as the head block number, the next witness, etc.See
get_global_properties() for less-frequently changing properties
1
dynamic_global_property_object graphene::wallet::wallet_api::get_dynamic_global_properties()const
Copied!
Return
The dynamic global properties.

get_object

Returns the blockchain object corresponding to the given id.
This generic function can be used to retrieve any object from the blockchain that is assigned an ID. Certain types of objects have specialized convenience functions to return their objects e.g., assets have get_asset(), accounts have get_account(), but this function will work for any object.
1
variant graphene::wallet::wallet_api::get_object(
2
object_id_type id)const
Copied!
Parameters
Return
  • id: the id of the object to return.
The requested object.