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
CryptoPayAPI-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for CryptoPayAPI-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4448dfd9c2722713c848a8378e7d2132619c352c77d5c7b91a7b110485c984 |
|
MD5 | 4fa790da740d8081c1b73e3e656f3cd9 |
|
BLAKE2b-256 | eaac4b5b9da58ebf46195360fec55165e7901e3d65a917326cb2a93668993607 |