Skip to main content

qiibee loyalty blockchain brand SDK

Project description


Brand SDK for the Qiibee blockchain.


To use this library, use the Qiibee dashboard account to retrieve the API key present at


pip install qb-sdk

Example usage

Import the SDK library:

import qbsdk

Initialize the API object:

api_key = os.environ['QB_API_KEY']
brand_address_private_key = os.environ['BRAND_ADDRESS_PRIVATE_KEY']
token_symbol = os.environ['BRAND_TOKEN_SYMBOL']
api = qbsdk.Api(api_key)

Fetch existing tokens:

tokens = api.get_tokens()
for token in tokens.private:

Reward a particular user:

wallet = qbsdk.Wallet(brand_address_private_key, token_symbol, api, transfer_strategy=qbsdk.TransferStrategy.brand)


transfer_receiver = '0x87265a62c60247f862b9149423061b36b460f4bb'
tx = wallet.send_transaction(transfer_receiver, 10)

Check out the examples directory for more comprehensive examples.

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

qb-sdk-0.0.2.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

qb_sdk-0.0.2-py3-none-any.whl (8.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page