Check Balance
调用该API节点以查询账户剩余余额。
收费
调用该API节点以查询账户剩余余额不会收取任何费用。
请求
Authentication
此API使用密钥进行身份验证。您需要在所有请求的Authorization头中包含一个有效的密钥. 参阅Quickstart section获取您的账户的API生成密钥。
Authorization: Bearer RODIN_API_KEY响应
JSON响应包含以下字段。
Property
Type
Description
balance
int
Balance of account.
Examples
export RODIN_API_KEY="your api key"
curl --location 'https://api.hyper3d.com/api/v2/check_balance' \
--header 'Authorization: Bearer JWT'
unset RODIN_API_KEYimport requests
# Constants
ENDPOINT = "https://api.hyper3d.com/api/v2/check_balance"
API_KEY = "your api key" # Replace with your actual API key
# Prepare the headers
headers = {
'Authorization': f'Bearer {API_KEY}',
}
# Make the GET request
response = requests.get(ENDPOINT, headers=headers)
# Parse and return the JSON response
print(response.json())
最后更新于
这有帮助吗?