This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Add support for extra TonCenter API endpoints and utility methods#26
Open
B14ckP4nd4 wants to merge 1 commit intoyungwine:masterfrom
Open
Add support for extra TonCenter API endpoints and utility methods#26B14ckP4nd4 wants to merge 1 commit intoyungwine:masterfrom
B14ckP4nd4 wants to merge 1 commit intoyungwine:masterfrom
Conversation
- Added support for the following TonCenter API methods in `TonCenterClient`: - `get_address_information`: Fetches general information about a given address. - `get_wallet_information`: Retrieves wallet-specific details for a given address. - `get_extended_address_information`: Provides extended information for a given address. - Added utility functions: - `from_nanotons(amount)`: Converts nanotons to tons. - `to_nanotons(amount)`: Converts tons to nanotons. These changes extend the capability to work with more endpoints and improve TON amount conversions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds new methods to the TonCenterClient service provider to support additional API endpoints from the TON Network that are not currently available in the original repository. The following methods have been added:
Additionally, two utility methods have been added to handle TON amount conversions:
These enhancements extend the functionality of the TonCenterClient, enabling developers to interact with more endpoints in the TonCenter API and simplifying TON-related calculations.