PyTONLib utility for Telemint NFTs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytonlib-telemint-0.0.1.tar.gz.
File metadata
- Download URL: pytonlib-telemint-0.0.1.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4796d5f149b159e21d092b1cfa3e68737b834a55f0554be14b9902e5df857f3f
|
|
| MD5 |
f2cda97992d01576c046c22381e8b047
|
|
| BLAKE2b-256 |
9ea3da2d07853b74b4d61c29504f464a449bf51863629779c3e213c4c304e17d
|
File details
Details for the file pytonlib_telemint-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pytonlib_telemint-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cafc712a15c17ef2906bace7281bae5714893db269de4c576c69bf36d7827498
|
|
| MD5 |
2b261f50f6b9ecb266427be66ff871d0
|
|
| BLAKE2b-256 |
e1677ce4fef0154ea24f016881f3e7ef6b81695e183837ed109ee07df205c32c
|