Python wrapper for Bitocredit API
Project description
Bitocredit python package
python wrapper for Bitocredit API
usage
install package using pip
pip install pythonGateway
and use package like this:
from pythonGateway import BitocreditApi
baseurl = "https://bitocredit.com/api/";
token = "TOKEN"; # fill your token
Api = BitocreditApi(baseurl , token);
res = Api.createWallet("wallet_id" , "network") # replace wallet_id with your wallet id and network type
print(res)
methods
createWallet
This method used for creating wallet for user
endpoint : https://bitocredit.com/api/create/wallet/{token}
res = Api.createWallet("wallet_id" , "network") # replace wallet_id with your wallet id and network type
print(res)
transactionCheck
This method used for check a transaction is confirmed or not
endpoint : https://bitocredit.com/api/transaction/check/{token}
res = Api.transactionCheck("transaction_hash" , "wallet_address") # replace transaction_hash and wallet_address with your transaction hash and wallet address
print(res)
transactionRecovery
This method used for check a transaction that is lost in blockchain
endpoint : https://bitocredit.com/api/transaction/recovery/{token}
res = Api.transactionRecovery("transaction_hash") # replace transaction_hash with your transaction hash
print(res)
transactionFee
This method used for check a transaction that is lost in blockchain
endpoint : https://bitocredit.com/api/transaction/fee/{token}
res = Api.transactionFee()
print(res)
transactionExample
Please only use this api for test ! it's only an example to show how the server sends data to callback after payment confirmation
endpoint : https://bitocredit.com/api/transaction/example/callback
res = Api.transactionExample("transaction_hash") # replace transaction_hash with your transaction hash
print(res)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonGateway-1.1.tar.gz.
File metadata
- Download URL: pythonGateway-1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
671d2fa1818671d3209697bd953a1accd534b2ae48cf38bc5ddf157b0964ca4f
|
|
| MD5 |
c0f885275ebc54be29537b42d9febc22
|
|
| BLAKE2b-256 |
70f93303db8c51e668e0794606016e320c7d5b9a6628eccd947974128fe7a7f1
|
File details
Details for the file pythonGateway-1.1-py3-none-any.whl.
File metadata
- Download URL: pythonGateway-1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1617115b0c0316e1aea69a8144e907f26b9b325f44c71f2aa3fb6ae879e71800
|
|
| MD5 |
bef9f1012ab349d946912b5530b9e0c1
|
|
| BLAKE2b-256 |
19d3ce35e1fe87e71ea39cfc8db388690ad3b050f05e7fae19a2d4d06c615e1a
|