Simple libary for https://t.me/CryptoBot
Project description
CryptoPayAPI
Simple library for https://t.me/CryptoBot
Usage
from CryptoPayAPI.AioCryptoPay import AioCryptoPay
from CryptoPayAPI.types import Asset
import asyncio
async def main():
#create session
cryptopay = AioCryptoPay(token="token")
#get balance wallets
await cryptopay.get_balance()
#create invoice
invoice = await cryptopay.create_invoice(asset=Asset.BTC, amount=10)
print(invoice.pay_url)
#get list of inovices
invoices = await cryptopay.get_invoices(asset=Asset.TON)
#close session
await cryptopay.close()
asyncio.run(main())
Docs
The library is fully compatible with the official api - https://help.crypt.bot/crypto-pay-api
Donation
BTC - bc1qltq6d7lzprr9hhpya4pptwj3997gpwkzhulksh ETH - 0x6727e912855A289A340Ba1213E1038AdB0E3CDb9 USDT (TRC20) - TH5JtPd7siwCb4AnHyGniMz52gtysY3zEJ
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 CryptoPayAPI-0.0.1.tar.gz.
File metadata
- Download URL: CryptoPayAPI-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37e0150f0fa8cb6eca41b31a7e0de65b23d1a07f99c822206378661ba7400eb7
|
|
| MD5 |
bbdeb4e3d90ecc3bf7c8a32382a3c067
|
|
| BLAKE2b-256 |
4c6c2fc083554dd0873bafdac534c75c2ca0cd16034a8fe92d5fcc576872bec9
|
File details
Details for the file CryptoPayAPI-0.0.1-py3-none-any.whl.
File metadata
- Download URL: CryptoPayAPI-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f4448dfd9c2722713c848a8378e7d2132619c352c77d5c7b91a7b110485c984
|
|
| MD5 |
4fa790da740d8081c1b73e3e656f3cd9
|
|
| BLAKE2b-256 |
eaac4b5b9da58ebf46195360fec55165e7901e3d65a917326cb2a93668993607
|