1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/sdk/client/python/docs/InfoModel.md
Snider 88d4357628
New API Interface (#27)
This pull request introduces a comprehensive new API interface for the blockchain, leveraging OpenAPI v3 to facilitate direct consumption of chain data by GUI and web applications. This change significantly refines the project's build infrastructure, incorporating Conan for dependency management and CMake for configuration, alongside the integration of an OpenAPI Generator to produce SDKs for multiple languages. 

### Highlights

* **New API Interface**: Introduced a new API interface using OpenAPI v3 to enable GUI/WEB development to consume chain data without needing custom server applications.
* **Build System Enhancements**: Significant updates to the build system, including Makefile, CMake, and Conan configurations, to streamline the build process and support new functionalities.
* **Multi-language SDK Generation**: Integrated OpenAPI Generator to automatically create SDKs for various programming languages, including Go, Angular, and PHP, simplifying client-side integration.
2025-10-19 19:12:37 +01:00

3.1 KiB
Generated

InfoModel

Properties

Name Type Description Notes
height int [optional]
tx_count int [optional]
tx_pool_size int [optional]
alt_blocks_count int [optional]
outgoing_connections_count int [optional]
incoming_connections_count int [optional]
synchronized_connections_count int [optional]
white_peerlist_size int [optional]
grey_peerlist_size int [optional]
current_blocks_median int [optional]
alias_count int [optional]
current_max_allowed_block_size int [optional]
daemon_network_state str [optional]
synchronization_start_height int [optional]
max_net_seen_height int [optional]
mi MaintainersInfoModel [optional]
pos_allowed bool [optional]
pos_difficulty str [optional]
pow_difficulty int [optional]
default_fee int [optional]
minimum_fee int [optional]
is_hardfork_active List[bool] [optional]
net_time_delta_median int [optional]
current_network_hashrate_50 int [optional]
current_network_hashrate_350 int [optional]
seconds_for_10_blocks int [optional]
seconds_for_30_blocks int [optional]
transactions_cnt_per_day List[int] [optional]
transactions_volume_per_day List[int] [optional]
last_pos_timestamp int [optional]
last_pow_timestamp int [optional]
total_coins str [optional]
last_block_size int [optional]
tx_count_in_last_block int [optional]
pos_sequence_factor float [optional]
pow_sequence_factor float [optional]
block_reward int [optional]
last_block_total_reward int [optional]
pos_diff_total_coins_rate int [optional]
last_block_timestamp int [optional]
last_block_hash str [optional]
pos_block_ts_shift_vs_actual int [optional]
outs_stat Dict[str, int] [optional]
performance_data PerformanceModel [optional]
offers_count int [optional]
expiration_median_timestamp int [optional]

Example

from lthn.models.info_model import InfoModel

# TODO update the JSON string below
json = "{}"
# create an instance of InfoModel from a JSON string
info_model_instance = InfoModel.from_json(json)
# print the JSON string representation of the object
print(InfoModel.to_json())

# convert the object into a dict
info_model_dict = info_model_instance.to_dict()
# create an instance of InfoModel from a dict
info_model_from_dict = InfoModel.from_dict(info_model_dict)

[Back to Model list] [Back to API list] [Back to README]