Skip to main content

BantuPay SDK

Project description

BantuPay SDK

Installation

Using pip to include bantupay-sdk in your own project:

 $ pip install bantupay-sdk

Getting started

  • Use the following code to create key pair.
from bantupay_sdk import account

keyPair = account() # keyPair will now contain this structure {secret: '', publicKey: ''}
  • Use the folowing code to sign http data
from bantupay_sdk import sign_http

http_Sign = sign_http(
  '/v2/user/',
  '{username: "proxie"}',
  'SBVNK4S2NU2QSBDZBKQCGR7DX5FTQFDJVKGWVCZLIEOV4QMANLQYSLNI'
); # Secret key gotten from the create account method.
  • Use this to Sign a transaction
from bantupay_sdk import sign_txn

const signTxn = bantuSDK.signTxn(
  "SDBG73M4LPCPCQ6NQ4CP4LCF7MOOQGUFJRRBD26P6QKIHW2ESP5R7DDN",
  "AAAAAOKtdgWGQ02FzacmAD1WhAhI5Dp7kPRojOGjNQj3FBWvAAAAZAAcmBgAAAAEAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAANQmFudHUuTmV0d29yawAAAAAAAAAAAAAAAAAAAA==",
  "Bantu Testnet"
);

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

bantupay-sdk-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

bantupay_sdk-0.0.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file bantupay-sdk-0.0.4.tar.gz.

File metadata

  • Download URL: bantupay-sdk-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for bantupay-sdk-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bee1ef837a39986595d1c127a7e06aecfe0ba86a58c0a5d4b2b8bd31c4ddf6af
MD5 60d11f87bf0917e35dd4d3b422bf77a2
BLAKE2b-256 2f84edb1b29ea01612c8c952295bf3c022e7075119fe914182e2489046d4f904

See more details on using hashes here.

File details

Details for the file bantupay_sdk-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: bantupay_sdk-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for bantupay_sdk-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba5e4054a7b28b813749d4757e9f1c0536380b986dce2bd13eb05b852212ff7
MD5 2de6e167079be8c0fae8deefb5270417
BLAKE2b-256 3e377ef8c5503dec330c749f536958b6171802d796380fcb54c2ff2194a12084

See more details on using hashes here.

Supported by

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