Skip to main content

Python API wrapper for the Kollet Merchant API

Project description

Kollet Python API Wrapper

Python API wrapper for the Kollet Merchant API

Features

  • Get all the cryptocurrencies supported by Kollet.
  • Generate a payment address. This is the address that customers pay to.
  • Get a balance of a particular cryptocurrency.
  • Get an estimated fee for sending funds on a particular cryptocurrency network.
  • Send out funds to another wallet address on a particular cryptocurrency network.

📦 Installation

$ python -m pip install kollet-io

or

pip install kollet-io

📝 Configuring and using module

To access the API, you will need an accessToken or API Key from the merchant dashboard.

Quick start Guide

from kollet.kollet import Kollet

client = Kollet(api_key="YOUR_API_KEY")

Example use

Get all available currencies

response = client.get_currencies()
print(response)

Create payment address

  • Takes the currency, label and optional meta data (type dict) as arguments
response = client.create_address('btc', 'kollet')
print(response)

Get balance of a particular cryptocurrency

  • Accepts code of supported cryptocurrency e.g. btc
response = client.get_balance("btc")
print(response)

Get an estimated fee for sending funds on a particular cryptocurrency network.

  • Accepts amount to send, currency code and duration
response = client.estimate_network_fee("0.000536", "btc", "FASTEST")
print(response)

Send out funds to other wallet address on a particular cryptocurrency network.

  • Takes amount to send, currency code, duration and destination address
response = client.send_coins("0.000536", "btc", "FASTEST", "RECIPIENT_ADDRESS")
print(response)

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

kollet-io-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kollet_io-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file kollet-io-0.1.0.tar.gz.

File metadata

  • Download URL: kollet-io-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for kollet-io-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aab1235f36dea8c597dcc7635bd39a688878cf1244a3ca0071b25251ac5ccfbb
MD5 f7c99a52bcb4a355206c9ceb4248705b
BLAKE2b-256 de393bb12a4712cf353d9de4558baa37e1137cb9ef5e55e6ee4e4263fae3446b

See more details on using hashes here.

File details

Details for the file kollet_io-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kollet_io-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for kollet_io-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa661b67cf6f239683f336153ecc96727c33fb76654221a7081b6a6970f88f9d
MD5 52d099f06b8e763723d44226f2c63486
BLAKE2b-256 b7d301258b10d24f229037b82822217351124195453e062630c32557b762d509

See more details on using hashes here.

Supported by

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