PyTONLib-Telemint
PyTONLib utility for Telemint NFTs.
Telemint is the smart contract that Telegram uses in Fragment.com for auctioning NFTs.
PyTONLib is a standalone Python library based on libtonlibjson.
Features
Read data from NFT:
• Token Name
- Phone Number for
Anonymous Telegram Numbers - Username for
Telegram Usernames
• Auction State
- Bidder address
- Highest Bid
- Last Bid Timestamp
- Minimum Bid
- Auction End Timestamp
• Auction Config
- Beneficiary Address
- Initial Minimum Bid
- Maximum Bid
- Minimum Bid Step
- Minimum Extened Time
Installation
Install pytonlib-telemint with pip:
pip install pytonlib-telemint
Usage / Examples
from pytonlib_telemint import TelemintNFT
# 'client' is an initialized 'TonlibClient' instance.
nft = TelemintNFT('EQBqs8pl1dJOZeXC3lspnYneBHag7VbQ9zKkv4IpQT3nnn5g')
print(nft)
# Output: TelemintNFT at EQBqs8pl1dJOZeXC3lspnYneBHag7VbQ9zKkv4IpQT3nnn5g
await nft.init(client)
print(nft)
""" Output:
Token Name: dage
Auction State: {
'bidder_address': 'EQAV4pVmtxgOXz-Aj241MUePgGAjkn7znrHZRXb6cCGiRJ_b',
'bid': 5050000000000,
'bid_ts': 1673275014,
'min_bid': 5302500000000,
'end_time': 1673879814
}
Auction Config: {
'beneficiary_address': 'EQBAjaOyi2wGWlk-EDkSabqqnF-MrrwMadnwqrurKpkla9nE',
'initial_min_bid': 5050000000000,
'max_bid': 0,
'min_bid_step': 5,
'min_extend_time': 3600,
'duration': 604800
}
"""
See PyTONLib Examples for PyTONLib usage.
Feedback
If you have any feedback, please reach out at Telegram.
Acknowledgements
Authors
Metadata
Release files for pytonlib-telemint 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytonlib-telemint-0.0.1.tar.gz | 16.9 kB | Without provenance | Details for pytonlib-telemint-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytonlib_telemint-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pytonlib_telemint-0.0.1-py3-none-any.whl |
Total release size: 34.1 kB
Release files / pytonlib-telemint-0.0.1.tar.gz
| Download URL | pytonlib-telemint-0.0.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4796d5f149b159e21d092b1cfa3e68737b834a55f0554be14b9902e5df857f3f
|
|
BLAKE2b-256 checksum How to use checksums |
9ea3da2d07853b74b4d61c29504f464a449bf51863629779c3e213c4c304e17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pytonlib_telemint-0.0.1-py3-none-any.whl
| Download URL | pytonlib_telemint-0.0.1-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cafc712a15c17ef2906bace7281bae5714893db269de4c576c69bf36d7827498
|
|
BLAKE2b-256 checksum How to use checksums |
e1677ce4fef0154ea24f016881f3e7ef6b81695e183837ed109ee07df205c32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for pytonlib-telemint 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.