Skip to main content

pycoinpayments

================================

Overview

Python API client for the CoinPayments <https://www.coinpayments.net>

Note: This is not the official python client for the Coinpayments API

Documentation

Please see https://www.coinpayments.net/api.php for the most up-to-date documentation for the Paystack API.

Installation

pip install pycoinpayments

Example

You can take a look at the sample.py file provided in the repo.

A basic usage would be:

from pycoinpayments import CoinPayments

create_transaction_params = {
    'amount': 10,
    'currency1': 'USDT.BEP20',
    'currency2': 'USDT.BEP20',
    'buyer_email': 'confiyobo@gmail.com'
}
cp = CoinPayments(
    'PrivateKey',
    'PublicKey')

transaction = cp.create_transaction(create_transaction_params)

if transaction['error'] == 'ok':
    print(transaction['amount'])
    print(transaction['address'])
else:
    print(transaction['error'])

Download files

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

Source Distribution

pycoinpayments-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file pycoinpayments-1.0.0.tar.gz.

File metadata

  • Download URL: pycoinpayments-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for pycoinpayments-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c341b4b49ccc80709d9367536c885d772b9b22ed4a0ca23141fd2c361462dfa3
MD5 f6603ac100001a15f4b9561dd96f8e2a
BLAKE2b-256 6df245e08ad8c4f435a4654face315ff53c1277a6c546ec0ed9b918ccc105a8c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

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