1
0
Fork 0
forked from lthn/blockchain
blockchain/utils/sdk/client/python/docs/BlockDetailsModel.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

2 KiB
Generated

BlockDetailsModel

Properties

Name Type Description Notes
actual_timestamp int [optional]
already_generated_coins str [optional]
base_reward int [optional]
blob str [optional]
block_cumulative_size int [optional]
block_tself_size int [optional]
cumulative_diff_adjusted str [optional]
cumulative_diff_precise str [optional]
difficulty str [optional]
effective_fee_median int [optional]
height int [optional]
id str [optional]
is_orphan bool [optional]
miner_text_info str [optional]
object_in_json str [optional]
penalty int [optional]
pow_seed str [optional]
prev_id str [optional]
summary_reward int [optional]
this_block_fee_median int [optional]
timestamp int [optional]
total_fee int [optional]
total_txs_size int [optional]
transactions_details List[TransactionDetailsModel] [optional]
type int [optional]

Example

from lthn.models.block_details_model import BlockDetailsModel

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

# convert the object into a dict
block_details_model_dict = block_details_model_instance.to_dict()
# create an instance of BlockDetailsModel from a dict
block_details_model_from_dict = BlockDetailsModel.from_dict(block_details_model_dict)

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