Skip to main content

Abstraction library for managing funds for various cryptocurrencies via their RPCs

Project description

aiocryptocurrency

Provides a single abstract interface for managing the funds of various cryptocurrency wallets via their RPC interfaces.

Support for:

This project currently supports the following coins:

  • Monero
  • Wownero
  • Firo

Quick start

pip install aiocryptocurrency

Example using Firo (the API is the same for other coins).

import asyncio


from aiocryptocurrency.coins.nero import Wownero, Monero
from aiocryptocurrency.coins.firo import Firo


async def main():
    # ./firod -testnet -rpcbind=127.0.0.1 -rpcallowip=127.0.0.1 -rpcport=18888 -rpcuser=admin -rpcpassword=admin
    firo = Firo()
    firo.port = 18888
    firo.basic_auth = ('admin', 'admin')

    # create a new receiving address
    blob = await firo.create_address()
    address = blob['address']

    # # list incoming txs
    txs = await firo.list_txs(address)
    for tx in txs:
        print(tx.txid)

    # send payment
    dest = 'TRwRAjxfAVKVZYQGdmskZRDSBw9E5YqjC8'
    amount = 0.05
    txid = await firo.send(dest, amount)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

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

aiocryptocurrency-0.1.9.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file aiocryptocurrency-0.1.9.tar.gz.

File metadata

  • Download URL: aiocryptocurrency-0.1.9.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for aiocryptocurrency-0.1.9.tar.gz
Algorithm Hash digest
SHA256 6957315854087f4f8f067703feafb9a35e574e13d28a0588686dae5480951025
MD5 5a085d89f55307d85ad17549173b5d79
BLAKE2b-256 dd57174ebd426fe8951ea920824b324e75244f916e4bc3ea7562ca41ac6886a0

See more details on using hashes here.

Supported by

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