Skip to main content

PyTONLib utility for Telemint NFTs

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytonlib-telemint-0.0.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytonlib_telemint-0.0.1-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

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

Hashes for pytonlib-telemint-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4796d5f149b159e21d092b1cfa3e68737b834a55f0554be14b9902e5df857f3f
MD5 f2cda97992d01576c046c22381e8b047
BLAKE2b-256 9ea3da2d07853b74b4d61c29504f464a449bf51863629779c3e213c4c304e17d

See more details on using hashes here.

File details

Details for the file pytonlib_telemint-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytonlib_telemint-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cafc712a15c17ef2906bace7281bae5714893db269de4c576c69bf36d7827498
MD5 2b261f50f6b9ecb266427be66ff871d0
BLAKE2b-256 e1677ce4fef0154ea24f016881f3e7ef6b81695e183837ed109ee07df205c32c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page