Pytonapi

Latest version: v0.4.3

Safety actively analyzes 681935 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.1.3

What's Changed

- Address Update: EQ » UQ

Change Details

By the end of this year, the TON network will transition to a new wallet address format. Instead of the familiar EQ prefix, addresses will now start with UQ. This update changes how user addresses are displayed in the TON network, making addressing more user-friendly and intuitive.

Changes Made

- Updated the [raw_to_userfriendly](https://github.com/nessshon/pytonapi/commit/778a2ef9d4b5e090d160d87c54e0fdc7a2390981) function to support the new address format.
- Added the `is_bounceable` parameter to enable the display of UQ addresses.

Address Examples

- Old Address:
`EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess`
- New Address:
`UQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNbbp`

0.1.1

What's Changed

- Fixed method parameters from `start_data` and `end_data` to `start_date` and `end_date`.

0.1.0

What's Changed
Updated requirements packages:

- Updated **pydantic** to version 2.* but still uses version 1 from pydantic.v1.
- Updated **aiohttp** to version >=3.8.5.
- Updated **requests** to version >=2.31.0.

Added limit exceeding processing:
The Tonapi now returns a 429 response with a rate limit error when limits are exceeded.
To deal with this, it was added:
- **TONAPITooManyRequestsError** - raised if the limit is exceeded.
- **max_retries** - parameter for Tonapi and AsyncTonapi (default 3), For repeated requests in case of exceeding the rate limit.
If all retries fail, a TONAPITooManyRequestsError exception is thrown.

Added methods:
Accounts
- get_jettons_history (**passed!**) - "/v2/accounts/{account_id}/jettons/history"
- get_jettons_history_by_jetton (**passed!**) - "/v2/accounts/{account_id}/jettons/{jetton_id}/history"
- get_event (**passed!**) - "/v2/accounts/{account_id}/events/{event_id}"
- get_events (**passed!**) - "/v2/accounts/{account_id}/events"
- get_nft_history (**passed!**) - "v2/accounts/{account_id}/nfts/history"
- search_by_domain (**passed!**) - "/v2/accounts/search"
- get_subscriptions (**passed!**) - "/v2/accounts/{account_id}/subscriptions"
- get_expiring_dns (**passed!**) - "/v2/accounts/{account_id}/dns/expiring"
- get_public_key (**passed!**) - "/v2/accounts/{account_id}/publickey"
- get_balance_change (**passed!**) - "/v2/accounts/{account_id}/diff"
- reindex (**passed!**) - "/v2/accounts/{account_id}/reindex"
Blockchain
- get_transaction_by_message (**passed!**) - "/v2/blockchain/messages/{msg_id}/transaction"
- get_validators (_not implemented_) - "/v2/blockchain/validators"
- get_last_masterchain_block (**passed!**) - "/v2/blockchain/masterchain-head"
- get_account_info (**passed!**) - "/v2/blockchain/accounts/{account_id}"
- inspect_account (**passed!**) - "/v2/blockchain/accounts/{account_id}/inspect"
- execute_get_method (**passed!**) - "/v2/blockchain/accounts/{account_id}/methods/{method_name}"
DNS
- get_info (**passed!**) - "/v2/dns/{domain_name}"
- get_auctions (**passed!**) - "/v2/dns/auctions"
Events
- get_event (**passed!**) - "/v2/events/{event_id}"
NFT
- get_nft_history (**passed!**) - "v2/nfts/{account_id}/history"
Rates
- get_chart (**passed!**) - "/v2/rates/chart"
Staking
- get_pool_info (**passed!**) - "/v2/staking/pool/{account_id}"
- get_pool_history (**passed!**) - "/v2/staking/pool/{account_id}/history"
- get_participating_pools (**passed!**) - "/v2/staking/nominator/{account_id}/pools"
- get_all_network_pools (**passed!**) - "/v2/staking/pools"
Storage
- get_providers (**passed!**) - "/v2/storage/providers"
Updated schemas:
- Collection - added optional **description** field
- NftCollection - added optional **previews** field

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.