No project description provided
Project description
Python SDK for Openblock Wallet API
API Documentation
Installation
pip install openblock-api-sdk-python
Usage
Consider
/openapi/company_wallet/balance/as a reference, the full code can be located in the demo/api_demo directory.
- Get api key and secret
https://docs.openblock.com/OpenBlock/API/Enterprise%20Wallet/#overview
- Get your balance
from openblock_api_sdk_python.client import CompanyWalletClient
import openblock_api_sdk_python.param.company_param as company_param
# Refer to https://docs.openblock.com/OpenBlock/API/Enterprise%20Wallet/#overview to get your api key and secret
client = CompanyWalletClient.CompanyWalletClient(
api_key="YOUR API KEY",
secret="YOUR SECRET",
)
params = company_param.GetBalanceParam()
params.chain_name = "Polygon"
params.page = 0
params.limit = 20
resp = client.get_balance(params)
if resp.status_code == 200:
print(resp.json())
else:
print(resp.text)
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 openblock_api_sdk_python-0.0.1.tar.gz.
File metadata
- Download URL: openblock_api_sdk_python-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2d4ea7943ec8951c6eec0ad5aa591b4306cc8c3e77519f782143f4a7c41e539
|
|
| MD5 |
c8f2c376ebc12d4d28d1d36b8d904ef1
|
|
| BLAKE2b-256 |
826e396a4477450ed88d92a839415d8591130345528cc0e248a9d6a0f5ac6dab
|
File details
Details for the file openblock_api_sdk_python-0.0.1-py3-none-any.whl.
File metadata
- Download URL: openblock_api_sdk_python-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c070be1aae3e74a5cb03383237f2167b41871414009b743ec5d7a140ba7a75a
|
|
| MD5 |
3bdac8aa03ee7ccff748003efe67e2d2
|
|
| BLAKE2b-256 |
d254cbd2b816bcfc3bf57db6362ede2007c9afaa5ed7e6d79d723696d47f2699
|