Skip to main content

GPLv3 License

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)

Source distribution for pytonlib-telemint 0.0.1
File Size Uploaded
pytonlib-telemint-0.0.1.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytonlib-telemint 0.0.1
File Interpreter ABI Platform
pytonlib_telemint-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page