Skip to main content

Coinpayments SDK for python

Project description

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'])

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

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

Uploaded Source

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