即時補充
料金確認後、エネルギーまたは帯域幅を購入し、注文を確認します。
/query_fast_recover_price/buy_fast_recover/query_fast_recover_orderDUIYA DEVELOPERS / API V2
DuiYa APIで残高確認、エネルギーレンタル、管理アドレスの操作。
開設から最初のリクエストまで、ここから。
/user_infobalance_trx TRX残高
balance_usdt USDT残高
API V2 2.1.0 APIリファレンス 25 ENDPOINTS01 / GET STARTED
開設後、サポートが案内する管理画面にログインし、入金方法・残高・API権限・最新料金を確認してから接続してください。
入金とIP許可リストは管理画面で操作します。公開V2定義にはIP追加・入金履歴照会のAPIはありません。 /user_info は現在の利用可能残高を返します。
02 / AUTHENTICATION
全APIでキー・署名認証を使います。API Secretはサーバー側の署名計算のみに使用し、パラメータとして送信しません。
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
HMAC-SHA256(API Secret, API Key + timestamp)API Keyと時刻を区切り文字なしで連結し、小文字16進数で出力します。時刻は秒単位で、サーバー時刻の±5分以内にしてください。
import { createHmac } from 'node:crypto';
// 在服务端环境变量中配置,勿放入网页前端。
const apiKey = process.env.DUIYA_API_KEY;
const apiSecret = process.env.DUIYA_API_SECRET;
if (!apiKey || !apiSecret) throw new Error('请先配置 API Key 和 API Secret');
const timestamp = Math.floor(Date.now() / 1000).toString();
const signature = createHmac('sha256', apiSecret)
.update(apiKey + timestamp)
.digest('hex');
// 只查询余额;每次请求重新生成时间戳和签名。
const response = await fetch('https://weidubot.cc/api/v2/user_info', {
method: 'GET',
headers: {
'x-api-key': apiKey,
'x-timestamp': timestamp,
'x-signature': signature
}
});
const result = await response.json();
if (!response.ok || result.code !== 1) {
throw new Error(result.msg || '余额查询失败');
}
console.log(result.data.balance_trx, result.data.balance_usdt);キーはサーバーの環境変数に保存し、ヘッダーと署名計算の時刻を一致させてください。
03 / ACCOUNT BALANCE
https://weidubot.cc/api/v2/user_info 業務パラメータは不要です。3つの認証ヘッダーを付け、 data.balance_trx と data.balance_usdt を読み取ります。いずれも整形済み文字列です。
{
"code": 1,
"msg": "操作成功",
"time": "1711961879",
"data": {
"balance_trx": "100.5000",
"balance_usdt": "500.0000"
}
} 入金・管理画面・IP許可リストのご相談は @wanglei 。全レスポンス項目: /user_info。
04 / REQUEST FORMAT
https://weidubot.cc/api/v2/buy_energyhttps://weidubot.cc/api/v2/buy_energyGETのクエリはURLに、POSTは定義に従ってフォームまたはクエリパラメータに指定してください。 エネルギー購入はPOSTを使用します。 認証情報は常にヘッダーに指定します。
補足: /query_fast_recover_price はPOSTですが、 resource_type と count は現在の定義ではURLクエリパラメータです。
curl --request POST 'https://weidubot.cc/api/v2/buy_energy' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'x-timestamp: CURRENT_UNIX_SECONDS' \
--header 'x-signature: HMAC_SHA256_HEX' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'count=65000' \
--data-urlencode 'period=1h' \
--data-urlencode 'address=YOUR_TRON_ADDRESS' このリクエストは有料注文を作成します。まず /query_price で料金・宛先・数量・期間・残高を確認してください。非同期注文の送信後は /query_result で実行結果を確認してください。
duiya.orgは文書の公開先です。APIは上記サービスURLへ送信します。例の価格・残高・数量は構造説明用で、最新料金ではありません。
05 / ENERGY SERVICES
料金確認後、エネルギーまたは帯域幅を購入し、注文を確認します。
/query_fast_recover_price/buy_fast_recover/query_fast_recover_order自動管理料金の確認、利用枠の割当、アドレスと履歴の管理。
/get_smart_price/delegate_energy_smart/query_energy_smart数量・期間で見積もり、注文後に結果を確認します。
/query_price/buy_energy/query_result回数制・アカウント有効化・アドレス集約・Fragmentも収録しています。利用権限と料金は管理画面と実際のAPI応答に従います。
06 / ENDPOINT REFERENCE
APIを開くとパラメータ・返却項目・定義を確認できます。型名からデータモデルへ移動できます。
全25エンドポイントを表示
ユーザー情報照会と有効化。
/active_account TRONアドレスを有効化 有効化リクエストを送信します。対応する料金が残高から差し引かれます。
完全URL: https://weidubot.cc/api/v2/active_account
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 有効化するTRONアドレス 例: "TNewAddressxxxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 有効化リクエスト送信済み。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | ActivationData 必須指定なし | 有効化依頼後の応答データ。 |
HTTP 400 リクエスト不正(アドレス形式など) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証:認証失敗 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止(残高不足など) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"账户管理 (Account Management)"
],
"summary": "激活 TRON 地址",
"description": "提交一个激活 TRON 地址的请求。会从账户扣除相应费用。",
"operationId": "activeAccountV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "需要激活的 TRON 地址",
"example": "TNewAddressxxxxxxxxxxxxxxxxxxxxxxx"
}
},
"required": [
"address"
]
}
}
}
},
"responses": {
"200": {
"description": "激活请求已提交。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ActivationData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (例如:地址格式无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权 (认证失败)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问 (例如:余额不足)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/user_info ユーザー情報取得 認証ユーザーの残高など基本情報を取得します。
完全URL: https://weidubot.cc/api/v2/user_info
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
HTTP 200 ユーザー情報取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | UserInfoData 必須指定なし | ユーザー情報照会結果。 |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"账户管理 (Account Management)"
],
"summary": "获取用户信息",
"description": "获取当前认证用户的基本信息,例如余额。",
"operationId": "getUserInfoV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"responses": {
"200": {
"description": "成功获取用户信息。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/UserInfoData"
}
}
}
]
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}TRONエネルギー・帯域幅の期間購入、注文照会と管理。
/buy_energy エネルギー期間購入 指定アドレスに期間指定でエネルギーを委任する非同期注文を送信します。
完全URL: https://weidubot.cc/api/v2/buy_energy
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
count | integer 必須 | 委任するエネルギー量(最低30000) 例: 50000 |
period | string 必須 | 期間(例:"15minutes", "1h", "1day", "3day") 例: "1day" |
address | string 必須 | エネルギー受取TRONアドレス 例: "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 注文送信成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergyOrderResponseData 必須指定なし | エネルギー注文送信後のデータ。 |
HTTP 400 リクエスト不正:パラメータ不正、未有効化アドレスなど application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止:残高不足、ユーザー状態異常 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"资源订单 (Energy/Bandwidth Orders)"
],
"summary": "购买能量时长",
"description": "提交一个异步订单,为指定地址在给定周期内委托能量。",
"operationId": "buyEnergyV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "委托的能量点数 (最低 30000)",
"example": 50000
},
"period": {
"type": "string",
"description": "周期名称 (例如\"15minutes\",\"1h\", \"1day\", \"3day\")",
"example": "1day"
},
"address": {
"type": "string",
"description": "接收能量的 TRON 地址",
"example": "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx"
}
},
"required": [
"count",
"period",
"address"
]
}
}
}
},
"responses": {
"200": {
"description": "订单已成功提交。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergyOrderResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (参数无效、地址未激活等)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问 (余额不足、用户状态异常)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/buy_net 帯域幅期間購入 指定アドレスに期間指定で帯域幅を委任する非同期注文を送信します。
完全URL: https://weidubot.cc/api/v2/buy_net
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
count | integer 必須 | 委任帯域幅のバイト数(最低100) 例: 5000 |
period | string 必須 | 期間(例:"1day", "3day") 例: "3day" |
address | string 必須 | 帯域幅受取TRONアドレス 例: "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 注文送信成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | NetOrderResponseData 必須指定なし | 帯域幅注文送信後のデータ。 |
HTTP 400 リクエスト不正 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"资源订单 (Energy/Bandwidth Orders)"
],
"summary": "购买带宽时长",
"description": "提交一个异步订单,为指定地址在给定周期内委托带宽。",
"operationId": "buyNetV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "委托的带宽字节数 (最低 100)",
"example": 5000
},
"period": {
"type": "string",
"description": "周期名称 (例如 \"1day\", \"3day\")",
"example": "3day"
},
"address": {
"type": "string",
"description": "接收带宽的 TRON 地址",
"example": "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx"
}
},
"required": [
"count",
"period",
"address"
]
}
}
}
},
"responses": {
"200": {
"description": "订单已成功提交。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/NetOrderResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/reclaim_energy エネルギーを回収 完了した注文番号と宛先を指定し、リソースの委任解除・回収を非同期で依頼します。
完全URL: https://weidubot.cc/api/v2/reclaim_energy
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_sn | string 必須 | 元の委任注文番号 例: "EN2025040217175512345" |
address | string 必須 | 元のリソース受取アドレス 例: "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 回収依頼送信済み。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | 応答データ本体。 null許可 |
HTTP 400 リクエスト不正:注文番号またはアドレス application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:注文不存在、所有者不一致、回収可能リソースなし application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"资源订单 (Energy/Bandwidth Orders)"
],
"summary": "主动回收能量",
"description": "根据已完成的订单号和目标地址,发起回收(取消委托)对应资源的请求。这是一个异步操作。",
"operationId": "reclaimEnergyV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"order_sn": {
"type": "string",
"description": "原始委托订单的序列号",
"example": "EN2025040217175512345"
},
"address": {
"type": "string",
"description": "原始接收委托资源的地址",
"example": "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx"
}
},
"required": [
"order_sn",
"address"
]
}
}
}
},
"responses": {
"200": {
"description": "回收请求已成功提交。",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "请求错误 (订单号或地址格式无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (订单号不存在、不属于该用户,或未找到匹配的可回收资源)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_result 注文結果照会 リソース注文の処理状態と詳細を取得します。
完全URL: https://weidubot.cc/api/v2/query_result
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
order_sn 必須 | query string | 照会する注文の一意な番号 例: "EN2025040217175512345" |
HTTP 200 注文詳細取得成功。dataは状態に応じて成功詳細または失敗情報になります。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | QueryResultDataSuccess または QueryResultDataFailed 必須指定なし |
HTTP 400 リクエスト不正:注文番号形式 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:注文不存在または別ユーザーの注文 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 内部エラーまたは照会異常 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"资源订单 (Energy/Bandwidth Orders)"
],
"summary": "查询订单结果",
"description": "获取指定资源订单的处理状态和详细信息。",
"operationId": "queryResultV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "order_sn",
"in": "query",
"required": true,
"description": "要查询的订单的唯一序列号",
"schema": {
"type": "string",
"example": "EN2025040217175512345"
}
}
],
"responses": {
"200": {
"description": "成功获取订单详情。data 结构根据订单状态可能是成功详情或失败信息。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"$ref": "#/components/schemas/QueryResultDataSuccess"
},
{
"$ref": "#/components/schemas/QueryResultDataFailed"
}
]
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (订单号格式无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (订单号不存在或不属于该用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误或查询异常",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_price リソース料金照会 種類(energy / net)・数量・期間から注文金額を見積もります。
完全URL: https://weidubot.cc/api/v2/query_price
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
type 必須 | query string | 種類("energy", "net") 列挙値: "energy" / "net"例: "energy" |
count 必須 | query integer | エネルギー点数または帯域幅バイト数 例: 50000 |
period 必須 | query string | 期間("15minutes", "1h", "1day", "3day"など) 例: "1day" |
HTTP 200 料金計算成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | ResourcePriceData 必須指定なし | リソース料金結果。 |
HTTP 400 リクエスト不正:パラメータ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:料金未設定または利用不可 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"资源订单 (Energy/Bandwidth Orders)"
],
"summary": "查询资源价格",
"description": "根据资源类型(仅支持 energy 或 net)、数量和周期,计算预估的订购价格。",
"operationId": "queryPriceV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "type",
"in": "query",
"required": true,
"description": "资源类型 (\"energy\", \"net\")",
"schema": {
"type": "string",
"enum": [
"energy",
"net"
],
"example": "energy"
}
},
{
"name": "count",
"in": "query",
"required": true,
"description": "资源数量 (能量点数或带宽字节数)",
"schema": {
"type": "integer",
"example": 50000
}
},
{
"name": "period",
"in": "query",
"required": true,
"description": "周期名称 (例如 \"15minutes\",\"1h\", \"1day\", \"3day\")",
"schema": {
"type": "string",
"example": "1day"
}
}
],
"responses": {
"200": {
"description": "成功计算价格。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ResourcePriceData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (参数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (指定资源的价格未配置或不可用)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}エネルギー・帯域幅の即時補充。
/query_fast_recover_price 即時補充料金照会 即時補充料金を取得。
完全URL: https://weidubot.cc/api/v2/query_fast_recover_price
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
resource_type 必須 | query string | 種類("energy", "net") 列挙値: "energy" / "net"例: "energy" |
count 必須 | query integer | エネルギーまたは帯域幅の数量 例: 100000 |
HTTP 200 料金計算成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | FastRecoverPriceData 必須指定なし | 補充料金の結果 |
HTTP 400 リクエスト不正:パラメータ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:料金未設定または利用不可 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量速充 (Fast Recover)"
],
"summary": "查询能量/带宽速充价格",
"description": "查询速冲价格",
"operationId": "queryFastRecoverPriceV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "resource_type",
"in": "query",
"required": true,
"description": "资源类型 (\"energy\", \"net\")",
"schema": {
"type": "string",
"enum": [
"energy",
"net"
],
"example": "energy"
}
},
{
"name": "count",
"in": "query",
"required": true,
"description": "资源数量 (能量数或带宽数)",
"schema": {
"type": "integer",
"example": 100000
}
}
],
"responses": {
"200": {
"description": "成功计算价格。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/FastRecoverPriceData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (参数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (指定资源的价格未配置或不可用)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/buy_fast_recover エネルギー・帯域幅補充 指定アドレスにエネルギーまたは帯域幅を一度補充します。
完全URL: https://weidubot.cc/api/v2/buy_fast_recover
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | リソース受取TRONアドレス 例: "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx" |
count | integer 必須 | 補充するエネルギー・帯域幅量 例: 65000 |
resource_type | string 必須 | リソース種類 列挙値: "energy" / "net"例: "energy" |
HTTP 200 補充依頼送信済み。後ほど状態を照会してください。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 | ||||||
|---|---|---|---|---|---|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 | ||||||
msg | string 必須 | 応答メッセージ。 例: "操作成功" | ||||||
time | string 必須 | サーバー応答時刻。 例: "1711961879" | ||||||
data | object 必須指定なし |
|
HTTP 400 リクエスト不正:パラメータ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止(残高不足など) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量速充 (Fast Recover)"
],
"summary": "能量/带宽速充",
"description": "为指定地址快速补充一次性的能量或带宽。",
"operationId": "buyFastRecoverV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/FastRecoverOrderRequest"
}
}
}
},
"responses": {
"200": {
"description": "速充请求已提交,请稍后查询状态。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"order_id": {
"type": "integer",
"description": "速充订单ID"
}
}
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (参数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问 (例如余额不足)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_fast_recover_order 補充注文状態照会 補充注文の状態と詳細を取得します。
完全URL: https://weidubot.cc/api/v2/query_fast_recover_order
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
order_id 必須 | query integer | 照会する補充注文ID 例: 123 |
HTTP 200 照会成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | FastRecoverOrderResponseData 必須指定なし | 補充注文の照会結果。 |
HTTP 400 リクエスト不正:注文ID application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:注文不存在または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量速充 (Fast Recover)"
],
"summary": "查询速充订单状态",
"description": "获取指定速充订单的处理状态和详情。",
"operationId": "queryFastRecoverOrderV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "order_id",
"in": "query",
"required": true,
"description": "要查询的速充订单 ID",
"schema": {
"type": "integer",
"example": 123
}
}
],
"responses": {
"200": {
"description": "查询成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/FastRecoverOrderResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (订单 ID 无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (订单 ID 不存在或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}エネルギー自動管理の操作。
/get_smart_price 自動管理料金取得 65K・131K自動管理の現在の料金を取得します。
完全URL: https://weidubot.cc/api/v2/get_smart_price
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
HTTP 200 料金取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | SmartPriceData 必須指定なし | 自動管理の料金情報。 |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:一部または全料金が取得不可 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"智能托管 (Smart Delegation)"
],
"summary": "获取智能托管价格",
"description": "获取当前 65K 和 131K 智能能量委托的价格。",
"operationId": "getSmartPriceV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"responses": {
"200": {
"description": "成功获取价格。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SmartPriceData"
}
}
}
]
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (无法获取部分或全部价格信息)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/delegate_energy_smart 自動管理の利用枠追加 指定アドレスの自動管理用残高を追加します。
完全URL: https://weidubot.cc/api/v2/delegate_energy_smart
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 残高を追加するTRONアドレス 例: "TSmartAddressxxxxxxxxxxxxxxxxxxxxx" |
balance | number · float 必須 | 追加する正の金額(TRXなど) 例: 10.5 |
channel | string 必須指定なし | モード:normal=通常、high_frequency=高頻度、jisu_frequency=高速、guangsu_frequency=光速 列挙値: "normal" / "high_frequency" / "jisu_frequency" / "guangsu_frequency"例: "high_frequency" |
hf_deposit | number 必須指定なし | 高頻度保証金:-1はシステム設定、0はなし、それ以外は指定額を差し引き 例: "0" |
net_protect | string 必須指定なし | アドレスの帯域幅保護モード 列挙値: "open" / "close"例: "open" |
HTTP 200 委任・残高追加成功 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergySmartDelegateResponseData 必須指定なし | 自動管理委任成功データ。 |
HTTP 400 リクエスト不正:アドレスまたは金額 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 429 リクエスト過多(ロック実装時) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"智能托管 (Smart Delegation)"
],
"summary": "委托智能托管额度",
"description": "为指定地址增加智能能量托管服务的可用额度(余额)。",
"operationId": "delegateEnergySmartV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "要增加额度的 TRON 地址",
"example": "TSmartAddressxxxxxxxxxxxxxxxxxxxxx"
},
"balance": {
"type": "number",
"format": "float",
"description": "要增加的额度数量 (例如 TRX 数量,必须为正数)",
"example": 10.5
},
"channel": {
"type": "string",
"description": "能量通道:normal->普通模式,high_frequency->高频模式,jisu_frequency->极速模式,guangsu_frequency->光速模式",
"enum": [
"normal",
"high_frequency",
"jisu_frequency",
"guangsu_frequency"
],
"example": "high_frequency"
},
"hf_deposit": {
"type": "number",
"description": "高频押金:-1:跟随系统押金设置 0:不扣押金 其他金额:扣除相应押金",
"example": "0"
},
"net_protect": {
"type": "string",
"description": "地址的带宽保护模式",
"enum": [
"open",
"close"
],
"example": "open"
}
},
"required": [
"address",
"balance"
]
}
}
}
},
"responses": {
"200": {
"description": "委托/额度增加成功",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergySmartDelegateResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址或额度值无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "请求过于频繁 (如果实现了锁)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_energy_smart 自動管理状態照会 指定アドレスの残高、状態、使用履歴(ページ別)を取得します。
完全URL: https://weidubot.cc/api/v2/query_energy_smart
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
address 必須 | query string | 照会するTRONアドレス 例: "TSmartAddressxxxxxxxxxxxxxxxxxxxxx" |
page 必須 | query integer | ページ番号(1から) 最小値: 1例: 1 |
HTTP 200 照会成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergySmartQueryResponseData 必須指定なし | 自動管理アドレスの照会結果。 |
HTTP 400 リクエスト不正:アドレスまたはページ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:未開通または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"智能托管 (Smart Delegation)"
],
"summary": "查询智能托管状态",
"description": "获取指定地址的智能能量托管服务的剩余额度(余额)、服务状态以及消耗记录(分页)。",
"operationId": "queryEnergySmartV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "address",
"in": "query",
"required": true,
"description": "要查询的 TRON 地址",
"schema": {
"type": "string",
"example": "TSmartAddressxxxxxxxxxxxxxxxxxxxxx"
}
},
{
"$ref": "#/components/parameters/PageParam"
}
],
"responses": {
"200": {
"description": "查询成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergySmartQueryResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址格式或页码无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (该地址未开通此服务或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/update_energy_smart 自動管理状態更新 アドレスの自動管理を開始("start")または一時停止("stop")します。
完全URL: https://weidubot.cc/api/v2/update_energy_smart
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 更新するTRONアドレス 例: "TSmartAddressxxxxxxxxxxxxxxxxxxxxx" |
status | string 必須 | 変更先の状態 列挙値: "start" / "stop"例: "start" |
net_protect | string 必須指定なし | アドレスの帯域幅保護モード 列挙値: "open" / "close"例: "open" |
HTTP 200 更新成功。現在の状態を返します。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergySmartData 必須指定なし | 自動管理更新後のアドレス状態。 |
HTTP 400 リクエスト不正:アドレスまたは状態 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:未開通または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 409 競合:既に指定の状態 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 429 リクエスト過多(ロック実装時) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"智能托管 (Smart Delegation)"
],
"summary": "更新智能托管状态",
"description": "启用 (\"start\") 或暂停 (\"stop\") 指定地址的智能能量托管服务。",
"operationId": "updateEnergySmartV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "要更新状态的 TRON 地址",
"example": "TSmartAddressxxxxxxxxxxxxxxxxxxxxx"
},
"status": {
"type": "string",
"description": "目标状态",
"enum": [
"start",
"stop"
],
"example": "start"
},
"net_protect": {
"type": "string",
"description": "地址的带宽保护模式",
"enum": [
"open",
"close"
],
"example": "open"
}
},
"required": [
"address",
"status"
]
}
}
}
},
"responses": {
"200": {
"description": "状态更新成功,返回当前状态。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergySmartData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址、状态值无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (该地址未开通此服务或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "冲突 (已经是目标状态)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "请求过于频繁 (如果实现了锁)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/statistics_smart_by_address 自動管理の統計取得 今日・昨日・今週・今月・直近5日間のアドレス別使用統計(65k/131k別)。
完全URL: https://weidubot.cc/api/v2/statistics_smart_by_address
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
address 必須 | query string | 統計対象TRONアドレス 例: "TSmartAddressxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 統計取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | StatisticsSmartData 必須指定なし | アドレス別自動管理統計。 |
HTTP 400 リクエスト不正:アドレス形式 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"智能托管 (Smart Delegation)"
],
"summary": "获取智能托管地址统计",
"description": "获取指定地址在不同时间段内(今日、昨日、本周、本月、近5天)的智能能量服务消耗统计(区分 65k/131k 类型)。",
"operationId": "statisticsSmartByAddressV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "address",
"in": "query",
"required": true,
"description": "要获取统计的 TRON 地址",
"schema": {
"type": "string",
"example": "TSmartAddressxxxxxxxxxxxxxxxxxxxxx"
}
}
],
"responses": {
"200": {
"description": "成功获取统计数据。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/StatisticsSmartData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址格式无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}回数制エネルギーAPI操作。
/get_times_price 回数制料金取得 現在の1回あたりの料金を取得します。
完全URL: https://weidubot.cc/api/v2/get_times_price
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
HTTP 200 料金取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | TimesPriceData 必須指定なし | 回数制エネルギー料金。 |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:料金取得不可 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量笔数 (Energy Times)"
],
"summary": "获取API笔数价格",
"description": "获取当前API笔数的单次交易价格。",
"operationId": "getTimesPriceV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"responses": {
"200": {
"description": "成功获取价格。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/TimesPriceData"
}
}
}
]
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (无法获取价格信息)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/delegate_energy_times 利用回数を追加 アドレスに利用回数を追加します。回数ごとに課金されます。
完全URL: https://weidubot.cc/api/v2/delegate_energy_times
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 利用回数を追加するTRONアドレス 例: "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx" |
times | integer 必須 | 追加回数(正の整数) 例: 100 |
HTTP 200 委任成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergyTimesDelegateResponseData 必須指定なし | 回数委任の成功データ。 |
HTTP 400 リクエスト不正:アドレスまたは回数 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 429 リクエスト過多(ロック実装時) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 内部エラー(データベースなど) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量笔数 (Energy Times)"
],
"summary": "委托API笔数",
"description": "为指定地址增加指定能量笔数(按次计费)。",
"operationId": "delegateEnergyTimesV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "要增加笔数的 TRON 地址",
"example": "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx"
},
"times": {
"type": "integer",
"description": "要增加的能量委托笔数 (必须为正整数)",
"example": 100
}
},
"required": [
"address",
"times"
]
}
}
}
},
"responses": {
"200": {
"description": "委托成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergyTimesDelegateResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址或笔数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "请求过于频繁 (如果实现了锁)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误 (例如数据库错误)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_energy_times 回数制サービス状態照会 アドレスの残り回数、状態、使用履歴(ページ別)を取得します。
完全URL: https://weidubot.cc/api/v2/query_energy_times
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
address 必須 | query string | 照会するTRONアドレス 例: "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx" |
page 必須 | query integer | ページ番号(1から) 最小値: 1例: 1 |
HTTP 200 照会成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergyTimesQueryResponseData 必須指定なし | 回数制アドレス照会結果。 |
HTTP 400 リクエスト不正:アドレスまたはページ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:未開通または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量笔数 (Energy Times)"
],
"summary": "查询API笔数状态",
"description": "获取指定地址的剩余能量笔数、服务状态以及消耗记录(分页)。",
"operationId": "queryEnergyTimesV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "address",
"in": "query",
"required": true,
"description": "要查询的 TRON 地址",
"schema": {
"type": "string",
"example": "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx"
}
},
{
"$ref": "#/components/parameters/PageParam"
}
],
"responses": {
"200": {
"description": "查询成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergyTimesQueryResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址格式或页码无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (该地址未开通此服务或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/update_energy_times 回数制サービス状態更新 アドレスの回数制を開始("start")または一時停止("stop")します。
完全URL: https://weidubot.cc/api/v2/update_energy_times
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 更新するTRONアドレス 例: "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx" |
status | string 必須 | 変更先の状態 列挙値: "start" / "stop"例: "stop" |
HTTP 200 更新成功。現在の状態を返します。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | EnergyTimesData 必須指定なし | 回数制更新後のアドレス状態。 |
HTTP 400 リクエスト不正:アドレスまたは状態 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:未開通または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 409 競合:既に指定の状態 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 429 リクエスト過多(ロック実装時) application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量笔数 (Energy Times)"
],
"summary": "更新地址的API笔数状态",
"description": "启用 (\"start\") 或暂停 (\"stop\") 指定地址的API笔数服务。",
"operationId": "updateEnergyTimesV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "要更新状态的 TRON 地址",
"example": "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx"
},
"status": {
"type": "string",
"description": "目标状态",
"enum": [
"start",
"stop"
],
"example": "stop"
}
},
"required": [
"address",
"status"
]
}
}
}
},
"responses": {
"200": {
"description": "状态更新成功,返回当前状态。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EnergyTimesData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址、状态值无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (该地址未开通此服务或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "冲突 (已经是目标状态)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "请求过于频繁 (如果实现了锁)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/statistics_times_by_address 回数使用統計取得 今日・昨日・今週・今月・直近5日間のアドレス別消費回数。
完全URL: https://weidubot.cc/api/v2/statistics_times_by_address
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
address 必須 | query string | 統計対象TRONアドレス 例: "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx" |
HTTP 200 統計取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | StatisticsTimesData 必須指定なし | アドレス別回数使用統計。 |
HTTP 400 リクエスト不正:アドレス形式 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"能量笔数 (Energy Times)"
],
"summary": "获取 API能量笔数 地址统计",
"description": "获取指定地址在不同时间段内(今日、昨日、本周、本月、近5天)的 API能量笔数 消耗数量统计。",
"operationId": "statisticsTimesByAddressV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "address",
"in": "query",
"required": true,
"description": "要获取统计的 TRON 地址",
"schema": {
"type": "string",
"example": "TDelAddressxxxxxxxxxxxxxxxxxxxxxxx"
}
}
],
"responses": {
"200": {
"description": "成功获取统计数据。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/StatisticsTimesData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (地址格式无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}Fragment経由でTelegram Premium・Starsを購入。
/buy_premium Telegram Premium購入 指定ユーザーへPremiumを贈る注文を作成します。
完全URL: https://weidubot.cc/api/v2/buy_premium
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象Telegramユーザー名(@なし)。 例: "telegram_user" |
month | integer 必須 | 購入月数。 列挙値: 3 / 6 / 12例: 3 |
HTTP 200 注文送信済み。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | PremiumOrderResponseData 必須指定なし | Premium注文結果。 |
HTTP 400 リクエスト不正:ユーザー名または月数 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止:残高不足 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"Fragment 服务 (Premium/Stars Service)"
],
"summary": "购买 Telegram Premium 会员",
"description": "创建一个为指定 Telegram 用户赠送 Premium 会员的订单。",
"operationId": "buyPremiumV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/PremiumOrderRequest"
}
}
}
},
"responses": {
"200": {
"description": "订单提交成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PremiumOrderResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (用户名或月数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问 (余额不足)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_premium_order Premium注文照会 Premium注文の状態と詳細を取得します。
完全URL: https://weidubot.cc/api/v2/query_premium_order
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
order_id 必須 | query integer | 照会する内部注文ID 例: 5678 |
HTTP 200 注文詳細取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | PremiumQueryResultData 必須指定なし | Premium注文照会結果。 |
HTTP 400 リクエスト不正:注文ID application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:注文不存在または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"Fragment 服务 (Premium/Stars Service)"
],
"summary": "查询 Premium 会员订单状态",
"description": "获取指定 Premium 会员订单的处理状态和详情。",
"operationId": "queryPremiumOrderV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "order_id",
"in": "query",
"required": true,
"description": "要查询的内部订单 ID",
"schema": {
"type": "integer",
"example": 5678
}
}
],
"responses": {
"200": {
"description": "成功获取订单详情。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PremiumQueryResultData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (订单 ID 无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (订单 ID 不存在或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/buy_star Telegram Stars購入 指定ユーザーへStarsを送る注文を作成します。
完全URL: https://weidubot.cc/api/v2/buy_star
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象Telegramユーザー名(@なし)。 例: "channel_owner" |
count | integer 必須 | Stars数量(50~10000)。 最小値: 50最大値: 10000例: 100 |
HTTP 200 注文送信済み。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | StarOrderResponseData 必須指定なし | Stars注文結果。 |
HTTP 400 リクエスト不正:ユーザー名または数量 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 403 禁止:残高不足 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"Fragment 服务 (Premium/Stars Service)"
],
"summary": "购买 Telegram 星星",
"description": "创建一个向指定 Telegram 用户发送星星的订单。",
"operationId": "buyStarV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/StarOrderRequest"
}
}
}
},
"responses": {
"200": {
"description": "订单提交成功。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/StarOrderResponseData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (用户名或数量无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "禁止访问 (余额不足)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}/query_star_order Stars注文照会 Stars注文の状態と詳細を取得します。
完全URL: https://weidubot.cc/api/v2/query_star_order
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
order_id 必須 | query integer | 照会する内部注文ID 例: 91011 |
HTTP 200 注文詳細取得成功。 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | StarQueryResultData 必須指定なし | Stars注文照会結果。 |
HTTP 400 リクエスト不正:注文ID application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 404 未検出:注文不存在または別ユーザー所有 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"Fragment 服务 (Premium/Stars Service)"
],
"summary": "查询星星订单状态",
"description": "获取指定星星订单的处理状态和详情。",
"operationId": "queryStarOrderV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
},
{
"name": "order_id",
"in": "query",
"required": true,
"description": "要查询的内部订单 ID",
"schema": {
"type": "integer",
"example": 91011
}
}
],
"responses": {
"200": {
"description": "成功获取订单详情。",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/BaseResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/StarQueryResultData"
}
}
}
]
}
}
}
},
"400": {
"description": "请求错误 (订单 ID 无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "未找到 (订单 ID 不存在或不属于当前用户)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}USDT自動集約アドレスを管理。
/submit_converge_address 集約設定送信 TRONアドレスのUSDT自動集約ルールを設定します。
完全URL: https://weidubot.cc/api/v2/submit_converge_address
| パラメータ | 位置 / 型 | 説明と制約 |
|---|---|---|
x-api-key 必須 | header string | ご自身のAPI Key。 |
x-timestamp 必須 | header integer | 現在のUNIX時刻(秒)。 例: 1711961879 |
x-signature 必須 | header string | 署名(HMAC-SHA256、小文字16進数): x-api-key + x-timestamp を計算)。 例: "a1b2c3d4e5f6..." |
リクエスト本文は必須
| フォーム項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 集約設定対象のTRONアドレス 例: "TConvergeAddressxxxxxxxxxxxxxxxxxx" |
mode | string 必須 | 集約モード 列挙値: "once" / "keep"例: "keep" |
transfer_threshold | number · float 必須 | 集約開始の最低残高しきい値 例: 100 |
balance_min | number · float 必須 | 集約後に残す最低残高 例: 10 |
balance_max | number · float 必須 | 集約後の最大残高(min以上) 例: 20 |
energy_count | integer 必須 | 集約用エネルギー量 例: 65000 |
type | string 必須 | アドレスに提供するサービス種類 列挙値: "energy" / "all"例: "all" |
notify_callback | string · url 必須指定なし | 任意:集約通知のコールバックURL null許可 例: "https://yourcallback.com/notify" |
HTTP 200 設定送信成功 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | 応答データ本体。 null許可 |
HTTP 400 リクエスト不正:パラメータ application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 401 未認証 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 409 競合:アドレスに有効な設定が既存 application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
HTTP 500 サーバー内部エラー application/json · 型名から全項目を表示
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"tags": [
"地址归集 (Converge Address)"
],
"summary": "提交地址归集配置",
"description": "为一个 TRON 地址配置自动 USDT 归集的规则。",
"operationId": "submitConvergeAddressV2",
"parameters": [
{
"$ref": "#/components/parameters/XApiKeyHeader"
},
{
"$ref": "#/components/parameters/XTimestampHeader"
},
{
"$ref": "#/components/parameters/XSignatureHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "要配置归集的 TRON 地址",
"example": "TConvergeAddressxxxxxxxxxxxxxxxxxx"
},
"mode": {
"type": "string",
"description": "归集模式",
"enum": [
"once",
"keep"
],
"example": "keep"
},
"transfer_threshold": {
"type": "number",
"format": "float",
"description": "触发归集的最低余额阈值",
"example": 100
},
"balance_min": {
"type": "number",
"format": "float",
"description": "归集后地址保留的最低余额",
"example": 10
},
"balance_max": {
"type": "number",
"format": "float",
"description": "归集后地址允许保留的最高余额 (需 >= min)",
"example": 20
},
"energy_count": {
"type": "integer",
"description": "为归集操作提供的能量数量",
"example": 65000
},
"type": {
"type": "string",
"description": "为地址提供的服务类型",
"enum": [
"energy",
"all"
],
"example": "all"
},
"notify_callback": {
"type": "string",
"format": "url",
"nullable": true,
"description": "可选,接收归集通知的回调 URL",
"example": "https://yourcallback.com/notify"
}
},
"required": [
"address",
"mode",
"transfer_threshold",
"balance_min",
"balance_max",
"energy_count",
"type"
]
}
}
}
},
"responses": {
"200": {
"description": "配置提交成功",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "请求错误 (参数无效)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "未授权",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "冲突 (该地址已存在启用中的配置)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "服务器内部错误",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}一致するAPIがありません。別の語句で検索してください。
07 / DATA MODELS
項目は現在のV2定義に準拠します。成功応答は通常、 code、msg、time、data で構成されます。業務項目は各モデルをご覧ください。
BaseResponse 項目定義 | 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:1成功、0失敗。 列挙値: 1例: 1 |
msg | string 必須 | 応答メッセージ。 例: "操作成功" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | 応答データ本体。 null許可 |
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "状态码,1 表示成功,0 表示失败。",
"enum": [
1
],
"example": 1
},
"msg": {
"type": "string",
"description": "响应消息文本。",
"example": "操作成功"
},
"time": {
"type": "string",
"description": "服务器响应时间戳。",
"example": "1711961879"
},
"data": {
"type": "object",
"nullable": true,
"description": "具体的响应数据负载。"
}
},
"required": [
"code",
"msg",
"time"
]
}ErrorResponse 項目定義 | 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
code | integer 必須 | 状態コード:0は失敗。 列挙値: 0例: 0 |
msg | string 必須 | エラーメッセージ。 例: "参数错误" |
time | string 必須 | サーバー応答時刻。 例: "1711961879" |
data | object 必須指定なし | null許可 例: null |
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "状态码,0 表示失败。",
"enum": [
0
],
"example": 0
},
"msg": {
"type": "string",
"description": "错误消息描述。",
"example": "参数错误"
},
"time": {
"type": "string",
"description": "服务器响应时间戳。",
"example": "1711961879"
},
"data": {
"type": "object",
"nullable": true,
"example": null
}
},
"required": [
"code",
"msg",
"time"
]
}ActivationData 有効化依頼後の応答データ。 有効化依頼後の応答データ。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
tx_id | string 必須 | 取引ハッシュ。通常はバックグラウンド処理後に設定され、初期は空です。 例: "" |
order_id | integer 必須 | 有効化を追跡する内部注文ID。 例: 12345 |
{
"type": "object",
"description": "账户激活请求提交后的响应数据。",
"properties": {
"tx_id": {
"type": "string",
"description": "交易哈希 (通常在后台任务完成后才有,初始为空)。",
"example": ""
},
"order_id": {
"type": "integer",
"description": "用于追踪激活请求的内部订单 ID。",
"example": 12345
}
},
"required": [
"tx_id",
"order_id"
]
}EnergyOrderResponseData エネルギー注文送信後のデータ。 エネルギー注文送信後のデータ。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_sn | string 必須 | 一意な注文番号。 例: "EN2025040217175512345" |
price | number · float 必須指定なし | エネルギー単価(SUN)。 null許可 例: 35000000 |
fee | number · float 必須指定なし | 追加手数料(TRX)。 null許可 例: 0.56 |
amount | number · float 必須指定なし | 注文総費用(TRX)。 null許可 例: 5.65 |
balance | number · float 必須指定なし | 操作後残高。不正確または未提供の場合があります。 null許可 例: 94.35 |
{
"type": "object",
"description": "能量订单提交成功后的响应数据。",
"properties": {
"order_sn": {
"type": "string",
"description": "唯一的订单序列号。",
"example": "EN2025040217175512345"
},
"price": {
"type": "number",
"format": "float",
"nullable": true,
"description": "计算出的单位能量价格 (SUN)。",
"example": 35000000
},
"fee": {
"type": "number",
"format": "float",
"nullable": true,
"description": "额外手续费 (TRX)。",
"example": 0.56
},
"amount": {
"type": "number",
"format": "float",
"nullable": true,
"description": "订单总费用 (TRX)。",
"example": 5.65
},
"balance": {
"type": "number",
"format": "float",
"nullable": true,
"description": "操作后账户余额 (可能不准确或不提供)。",
"example": 94.35
}
},
"required": [
"order_sn"
]
}NetOrderResponseData 帯域幅注文送信後のデータ。 帯域幅注文送信後のデータ。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_sn | string 必須 | 一意な注文番号。 例: "NET2025040217180012345" |
amount | number · float 必須指定なし | 注文総費用(TRX)。 null許可 例: 2.1 |
price | number · float 必須指定なし | 帯域幅単価。原文の単位表記はSUN?です。 null許可 例: 420000 |
fee | number · float 必須指定なし | 追加手数料(TRX)。 null許可 例: 0 |
balance | number · float 必須指定なし | 操作後残高。不正確または未提供の場合があります。 null許可 例: 97.9 |
{
"type": "object",
"description": "带宽订单提交成功后的响应数据。",
"properties": {
"order_sn": {
"type": "string",
"description": "唯一的订单序列号。",
"example": "NET2025040217180012345"
},
"amount": {
"type": "number",
"format": "float",
"nullable": true,
"description": "订单总费用 (TRX)。",
"example": 2.1
},
"price": {
"type": "number",
"format": "float",
"nullable": true,
"description": "计算出的单位带宽价格 (SUN?)。",
"example": 420000
},
"fee": {
"type": "number",
"format": "float",
"nullable": true,
"description": "额外手续费 (TRX)。",
"example": 0
},
"balance": {
"type": "number",
"format": "float",
"nullable": true,
"description": "操作后账户余额 (可能不准确或不提供)。",
"example": 97.9
}
},
"required": [
"order_sn"
]
}QueryResultDataSuccess 照会成功した注文の詳細。 照会成功した注文の詳細。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_sn | string 必須 | |
amount | number · float 必須指定なし | 注文金額(TRX) null許可 |
price | number · float 必須指定なし | 注文単価(SUN) null許可 |
fee | number · float 必須指定なし | 注文手数料(TRX) null許可 |
period | string 必須 | 期間名 |
status | string 必須 | 注文状態コード |
orders | array<object> 必須 | 子注文(委任)一覧 |
{
"type": "object",
"description": "查询成功的订单详情。",
"properties": {
"order_sn": {
"type": "string"
},
"amount": {
"type": "number",
"format": "float",
"nullable": true,
"description": "订单金额 (TRX)"
},
"price": {
"type": "number",
"format": "float",
"nullable": true,
"description": "订单单价 (SUN)"
},
"fee": {
"type": "number",
"format": "float",
"nullable": true,
"description": "订单手续费 (TRX)"
},
"period": {
"type": "string",
"description": "周期名称"
},
"status": {
"type": "string",
"description": "订单状态码"
},
"orders": {
"type": "array",
"description": "子订单(委托)列表",
"items": {
"type": "object",
"properties": {
"from_address": {
"type": "string",
"description": "该笔委托的来源地址"
},
"tx_id": {
"type": "string",
"nullable": true,
"description": "该笔委托的交易哈希"
},
"count": {
"type": "integer",
"description": "该笔委托的资源数量"
}
},
"required": [
"from_address",
"count"
]
}
}
},
"required": [
"order_sn",
"period",
"status",
"orders"
]
}QueryResultDataFailed 失敗・未完了注文の基本情報。 失敗・未完了注文の基本情報。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_sn | string 必須 | |
amount | number · float 必須指定なし | null許可 |
price | number · float 必須指定なし | null許可 |
fee | number · float 必須指定なし | null許可 |
period | string 必須指定なし | null許可 |
status | string 必須 | 注文状態コード |
orders | array<object> 必須 | 空の配列 |
{
"type": "object",
"description": "查询失败或未完成的订单基本信息。",
"properties": {
"order_sn": {
"type": "string"
},
"amount": {
"type": "number",
"format": "float",
"nullable": true
},
"price": {
"type": "number",
"format": "float",
"nullable": true
},
"fee": {
"type": "number",
"format": "float",
"nullable": true
},
"period": {
"type": "string",
"nullable": true
},
"status": {
"type": "string",
"description": "订单状态码"
},
"orders": {
"type": "array",
"items": {},
"description": "空数组"
}
},
"required": [
"order_sn",
"status",
"orders"
]
}UserInfoData ユーザー情報照会結果。 ユーザー情報照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
balance_trx | string 必須 | 利用可能TRX残高(整形済み文字列)。 例: "100.5000" |
balance_usdt | string 必須 | 利用可能USDT残高(整形済み文字列)。 例: "500.0000" |
{
"type": "object",
"description": "用户信息查询结果。",
"properties": {
"balance_trx": {
"type": "string",
"description": "用户可用 TRX 余额 (格式化字符串)。",
"example": "100.5000"
},
"balance_usdt": {
"type": "string",
"description": "用户可用 USDT 余额 (格式化字符串)。",
"example": "500.0000"
}
},
"required": [
"balance_trx",
"balance_usdt"
]
}ResourcePriceData リソース料金結果。 リソース料金結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
price | integer 必須 | 期間ごとの単価(SUN)。 例: 35 |
amount | string 必須 | 指定数量の概算総額(TRX)。適用手数料を含みます。 例: "5.6500" |
fee | string 必須 | 追加手数料(TRX)。少額注文料など。 例: "0.5600" |
remark | string 必須 | 料金計算の補足(手数料の詳細など)。 例: "包含 0.56 TRX 带宽手续费" |
{
"type": "object",
"description": "资源价格查询结果。",
"properties": {
"price": {
"type": "integer",
"description": "单位价格 (SUN / 每周期)。",
"example": 35
},
"amount": {
"type": "string",
"description": "请求数量的总预估费用 (单位:TRX),包含可能的手续费。",
"example": "5.6500"
},
"fee": {
"type": "string",
"description": "额外的手续费 (单位:TRX),例如小额订单费用。",
"example": "0.5600"
},
"remark": {
"type": "string",
"description": "关于价格计算的附加说明 (例如手续费详情)。",
"example": "包含 0.56 TRX 带宽手续费"
}
},
"required": [
"price",
"amount",
"fee",
"remark"
]
}FastRecoverPriceData 補充料金の結果 補充料金の結果
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
price | integer 必須 | 単価(SUN)。 例: 100 |
amount | string 必須 | 指定数量の概算総額(TRX)。適用手数料を含みます。 例: "5.6500" |
fee | string 必須 | 追加手数料(TRX)。少額注文料など。 例: "0.5600" |
{
"type": "object",
"description": "速冲价格查询结果",
"properties": {
"price": {
"type": "integer",
"description": "单位价格 (SUN)。",
"example": 100
},
"amount": {
"type": "string",
"description": "请求数量的总预估费用 (单位:TRX),包含可能的手续费。",
"example": "5.6500"
},
"fee": {
"type": "string",
"description": "额外的手续费 (单位:TRX),例如小额订单费用。",
"example": "0.5600"
}
},
"required": [
"price",
"amount",
"fee",
"remark"
]
}SmartPriceData 自動管理の料金情報。 自動管理の料金情報。
| 項目 | 型 / 必須 | 説明と制約 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65K_price | string 必須 | 65K委任1回の料金(TRX)。 例: "0.5000" | ||||||||||||||||||
131K_price | string 必須 | 131K委任1回の料金(TRX)。 例: "0.9500" | ||||||||||||||||||
remark | string 必須指定なし | null許可 例: "价格单位:TRX/次" | ||||||||||||||||||
high_frequency | object 必須指定なし | 高頻度料金・保証金・集計期間。
| ||||||||||||||||||
jisu_frequency | object 必須指定なし | 高速モード料金・保証金・集計期間。
| ||||||||||||||||||
guangsu_frequency | object 必須指定なし | 光速モード料金・保証金・集計期間。
|
{
"type": "object",
"description": "智能托管服务的价格信息。",
"properties": {
"65K_price": {
"type": "string",
"description": "每次 65K 能量委托的价格 (TRX)。",
"example": "0.5000"
},
"131K_price": {
"type": "string",
"description": "每次 131K 能量委托的价格 (TRX)。",
"example": "0.9500"
},
"remark": {
"type": "string",
"nullable": true,
"example": "价格单位:TRX/次"
},
"high_frequency": {
"type": "object",
"description": "高频价格信息,包含能量价格、押金和统计周期等。",
"properties": {
"65k_price": {
"type": "string",
"nullable": true,
"description": "高频模式65K能量的价格。",
"example": "0.8000"
},
"131k_price": {
"type": "string",
"nullable": true,
"description": "高频模式131K能量的价格。",
"example": "1.5000"
},
"deposit_period": {
"type": "string",
"nullable": true,
"description": "高频模式统计周期,单位:小时",
"example": "72"
},
"deposit_amount": {
"type": "string",
"nullable": true,
"description": "高频模式押金,单位: TRX",
"example": 1000
},
"min_energy_count": {
"type": "string",
"nullable": true,
"description": "高频模式最少使用能量数",
"example": 200000
}
}
},
"jisu_frequency": {
"type": "object",
"description": "极速模式价格信息,包含能量价格、押金和统计周期等。",
"properties": {
"65k_price": {
"type": "string",
"nullable": true,
"description": "极速模式65K能量的价格。",
"example": "0.8000"
},
"131k_price": {
"type": "string",
"nullable": true,
"description": "极速模式131K能量的价格。",
"example": "1.5000"
},
"deposit_period": {
"type": "string",
"nullable": true,
"description": "极速模式统计周期,单位:小时",
"example": "72"
},
"deposit_amount": {
"type": "string",
"nullable": true,
"description": "极速模式押金,单位: TRX",
"example": 1000
},
"min_energy_count": {
"type": "string",
"nullable": true,
"description": "极速模式最少使用能量数",
"example": 200000
}
}
},
"guangsu_frequency": {
"type": "object",
"description": "光速模式价格信息,包含能量价格、押金和统计周期等。",
"properties": {
"65k_price": {
"type": "string",
"nullable": true,
"description": "光速模式65K能量的价格。",
"example": "0.8000"
},
"131k_price": {
"type": "string",
"nullable": true,
"description": "光速模式131K能量的价格。",
"example": "1.5000"
},
"deposit_period": {
"type": "string",
"nullable": true,
"description": "光速模式统计周期,单位:小时",
"example": "72"
},
"deposit_amount": {
"type": "string",
"nullable": true,
"description": "光速模式押金,单位: TRX",
"example": 1000
},
"min_energy_count": {
"type": "string",
"nullable": true,
"description": "光速模式最少使用能量数",
"example": 200000
}
}
}
},
"required": [
"65K_price",
"131K_price"
]
}TimesPriceData 回数制エネルギー料金。 回数制エネルギー料金。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
price | string 必須 | エネルギー委任1回の料金(TRX)。 例: "0.6000" |
remark | string 必須指定なし | null許可 例: "价格单位:TRX/笔" |
{
"type": "object",
"description": "API笔数的价格信息。",
"properties": {
"price": {
"type": "string",
"description": "每次能量委托的价格 (TRX)。",
"example": "0.6000"
},
"remark": {
"type": "string",
"nullable": true,
"example": "价格单位:TRX/笔"
}
},
"required": [
"price"
]
}EnergyTimesDelegateResponseData 回数委任の成功データ。 回数委任の成功データ。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 委任対象アドレス |
remain_times | integer 必須 | 操作後の残り回数 |
status | string 必須 | 現在のサービス状態 列挙値: "start" / "stop" |
{
"type": "object",
"description": "API笔数委托成功后的响应数据。",
"properties": {
"address": {
"type": "string",
"description": "委托的目标地址"
},
"remain_times": {
"type": "integer",
"description": "操作后剩余笔数"
},
"status": {
"type": "string",
"description": "当前服务状态",
"enum": [
"start",
"stop"
]
}
},
"required": [
"address",
"remain_times",
"status"
]
}EnergyTimesOrderItem 回数消費記録 回数消費記録
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
remain_times | integer 必須指定なし | 今回使用後の残り回数 null許可 |
status | string 必須指定なし | エネルギー状態 null許可 列挙値: "init" / "waiting_delegate" / "delegate_success" / "delegate_failed" / "waiting_un_delegate" / "un_delegate_success" / "un_delegate_failed" |
speed_mode | string 必須指定なし | エネルギーモード null許可 列挙値: "normal" / "low_speed" |
used_tx_id | string 必須指定なし | 消費取引ハッシュ null許可 |
used_energy | integer 必須指定なし | 消費エネルギー量 null許可 |
delegate_tx_id | string 必須指定なし | 委任取引ハッシュ null許可 |
delegate_time | integer 必須指定なし | 委任時刻 null許可 |
un_delegate_tx_id | string 必須指定なし | 回収取引ハッシュ null許可 |
un_delegate_time | integer 必須指定なし | 回収時刻 null許可 |
createtime | integer 必須指定なし | 記録作成時刻 null許可 |
{
"type": "object",
"description": "能量笔数消耗记录项",
"properties": {
"remain_times": {
"type": "integer",
"nullable": true,
"description": "此次消耗后的剩余笔数"
},
"status": {
"type": "string",
"nullable": true,
"description": "能量状态",
"enum": [
"init",
"waiting_delegate",
"delegate_success",
"delegate_failed",
"waiting_un_delegate",
"un_delegate_success",
"un_delegate_failed"
]
},
"speed_mode": {
"type": "string",
"nullable": true,
"description": "能量模式",
"enum": [
"normal",
"low_speed"
]
},
"used_tx_id": {
"type": "string",
"nullable": true,
"description": "消耗能量的交易哈希"
},
"used_energy": {
"type": "integer",
"nullable": true,
"description": "消耗的能量值"
},
"delegate_tx_id": {
"type": "string",
"nullable": true,
"description": "委托能量的交易哈希"
},
"delegate_time": {
"type": "integer",
"nullable": true,
"description": "委托时间戳"
},
"un_delegate_tx_id": {
"type": "string",
"nullable": true,
"description": "回收能量的交易哈希"
},
"un_delegate_time": {
"type": "integer",
"nullable": true,
"description": "回收时间戳"
},
"createtime": {
"type": "integer",
"nullable": true,
"description": "记录创建时间戳"
}
}
}EnergyTimesQueryResponseData 回数制アドレス照会結果。 回数制アドレス照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | TRONアドレス |
remain_times | integer 必須 | 残り利用回数 |
status | string 必須 | サービス状態:有効 / 停止 列挙値: "start" / "stop" |
order_count | integer 必須 | 消費記録総数 |
page_size | integer 必須 | 1ページの記録数 |
page | integer 必須 | 現在のページ番号 |
orders | array<EnergyTimesOrderItem> 必須 | 現在のページの消費記録 |
{
"type": "object",
"description": "API笔数的地址查询结果。",
"properties": {
"address": {
"type": "string",
"description": "TRON 地址"
},
"remain_times": {
"type": "integer",
"description": "剩余可用笔数"
},
"status": {
"type": "string",
"enum": [
"start",
"stop"
],
"description": "服务状态 (启用/暂停)"
},
"order_count": {
"type": "integer",
"description": "总消耗记录数"
},
"page_size": {
"type": "integer",
"description": "每页记录数"
},
"page": {
"type": "integer",
"description": "当前页码"
},
"orders": {
"type": "array",
"description": "当前页的消耗记录列表",
"items": {
"$ref": "#/components/schemas/EnergyTimesOrderItem"
}
}
},
"required": [
"address",
"remain_times",
"status",
"order_count",
"page_size",
"page",
"orders"
]
}EnergyTimesData 回数制更新後のアドレス状態。 回数制更新後のアドレス状態。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | TRONアドレス |
remain_times | integer 必須 | 残り利用回数 |
status | string 必須 | サービス状態:有効 / 停止 列挙値: "start" / "stop" |
{
"type": "object",
"description": "API笔数的地址状态信息(用于更新响应)。",
"properties": {
"address": {
"type": "string",
"description": "TRON 地址"
},
"remain_times": {
"type": "integer",
"description": "剩余可用笔数"
},
"status": {
"type": "string",
"enum": [
"start",
"stop"
],
"description": "服务状态 (启用/暂停)"
}
},
"required": [
"address",
"remain_times",
"status"
]
}EnergySmartDelegateResponseData 自動管理委任成功データ。 自動管理委任成功データ。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | 委任対象アドレス |
balance | string 必須 | 操作後総残高(整形済み文字列) |
status | string 必須 | 現在のサービス状態 列挙値: "start" / "stop" |
net_protect | string 必須指定なし | 帯域幅モード 列挙値: "open" / "close" |
{
"type": "object",
"description": "智能托管委托成功后的响应数据。",
"properties": {
"address": {
"type": "string",
"description": "委托的目标地址"
},
"balance": {
"type": "string",
"description": "操作后的总余额 (格式化字符串)"
},
"status": {
"type": "string",
"description": "当前服务状态",
"enum": [
"start",
"stop"
]
},
"net_protect": {
"type": "string",
"description": "带宽模式",
"enum": [
"open",
"close"
]
}
},
"required": [
"address",
"balance",
"status"
]
}EnergySmartOrderItem 自動管理の消費記録 自動管理の消費記録
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
energy_type | string 必須指定なし | 種類:65k=65K、131k=131K null許可 |
amount | number · float 必須指定なし | 消費金額 null許可 |
balance | number · float 必須指定なし | 消費後残高 null許可 |
currency | string 必須指定なし | 通貨 null許可 列挙値: "trx" / "usdt" |
status | string 必須指定なし | エネルギー状態 null許可 列挙値: "init" / "waiting_delegate" / "delegate_success" / "delegate_failed" / "waiting_un_delegate" / "un_delegate_success" / "un_delegate_failed" |
used_tx_id | string 必須指定なし | 消費取引ハッシュ null許可 |
speed_mode | string 必須指定なし | エネルギーモード null許可 列挙値: "normal" / "low_speed" |
used_energy | integer 必須指定なし | 消費エネルギー量 null許可 |
used_times | integer 必須指定なし | 使用回数 null許可 |
remain_times | integer 必須指定なし | アドレスの合計残り回数 null許可 |
delegate_count | integer 必須指定なし | 委任エネルギー量 null許可 |
delegate_tx_id | string 必須指定なし | 委任取引ハッシュ null許可 |
delegate_time | integer 必須指定なし | 委任時刻 null許可 |
un_delegate_tx_id | string 必須指定なし | 回収取引ハッシュ null許可 |
un_delegate_time | integer 必須指定なし | 回収時刻 null許可 |
createtime | integer 必須指定なし | 記録作成時刻 null許可 |
{
"type": "object",
"description": "智能托管消耗记录项",
"properties": {
"energy_type": {
"type": "string",
"nullable": true,
"description": "能量类型: 65k=65K能量, 131k=131K能量"
},
"amount": {
"type": "number",
"format": "float",
"nullable": true,
"description": "消耗金额"
},
"balance": {
"type": "number",
"format": "float",
"nullable": true,
"description": "消耗后余额"
},
"currency": {
"type": "string",
"nullable": true,
"description": "币种",
"enum": [
"trx",
"usdt"
]
},
"status": {
"type": "string",
"nullable": true,
"description": "能量状态",
"enum": [
"init",
"waiting_delegate",
"delegate_success",
"delegate_failed",
"waiting_un_delegate",
"un_delegate_success",
"un_delegate_failed"
]
},
"used_tx_id": {
"type": "string",
"nullable": true,
"description": "消耗能量的交易哈希"
},
"speed_mode": {
"type": "string",
"nullable": true,
"description": "能量模式",
"enum": [
"normal",
"low_speed"
]
},
"used_energy": {
"type": "integer",
"nullable": true,
"description": "消耗的能量值"
},
"used_times": {
"type": "integer",
"nullable": true,
"description": "使用笔数"
},
"remain_times": {
"type": "integer",
"nullable": true,
"description": "地址剩余总笔数"
},
"delegate_count": {
"type": "integer",
"nullable": true,
"description": "委托的能量数量"
},
"delegate_tx_id": {
"type": "string",
"nullable": true,
"description": "委托能量的交易哈希"
},
"delegate_time": {
"type": "integer",
"nullable": true,
"description": "委托时间戳"
},
"un_delegate_tx_id": {
"type": "string",
"nullable": true,
"description": "回收能量的交易哈希"
},
"un_delegate_time": {
"type": "integer",
"nullable": true,
"description": "回收时间戳"
},
"createtime": {
"type": "integer",
"nullable": true,
"description": "记录创建时间戳"
}
}
}EnergySmartQueryResponseData 自動管理アドレスの照会結果。 自動管理アドレスの照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | TRONアドレス |
balance | string 必須 | 残り利用可能残高(整形済み文字列) |
status | string 必須 | サービス状態:有効 / 停止 列挙値: "start" / "stop" |
order_count | integer 必須 | 消費記録総数 |
page_size | integer 必須 | 1ページの記録数 |
page | integer 必須 | 現在のページ番号 |
orders | array<EnergySmartOrderItem> 必須 | 現在のページの消費記録 |
{
"type": "object",
"description": "智能托管服务的地址查询结果。",
"properties": {
"address": {
"type": "string",
"description": "TRON 地址"
},
"balance": {
"type": "string",
"description": "剩余可用额度 (格式化字符串)"
},
"status": {
"type": "string",
"enum": [
"start",
"stop"
],
"description": "服务状态 (启用/暂停)"
},
"order_count": {
"type": "integer",
"description": "总消耗记录数"
},
"page_size": {
"type": "integer",
"description": "每页记录数"
},
"page": {
"type": "integer",
"description": "当前页码"
},
"orders": {
"type": "array",
"description": "当前页的消耗记录列表",
"items": {
"$ref": "#/components/schemas/EnergySmartOrderItem"
}
}
},
"required": [
"address",
"balance",
"status",
"order_count",
"page_size",
"page",
"orders"
]
}EnergySmartData 自動管理更新後のアドレス状態。 自動管理更新後のアドレス状態。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | TRONアドレス |
balance | string 必須 | 残り利用可能残高(整形済み文字列) |
status | string 必須 | サービス状態:有効 / 停止 列挙値: "start" / "stop" |
net_protect | string 必須指定なし | 帯域幅モード 列挙値: "open" / "close" |
{
"type": "object",
"description": "智能托管服务的地址状态信息(用于更新响应)。",
"properties": {
"address": {
"type": "string",
"description": "TRON 地址"
},
"balance": {
"type": "string",
"description": "剩余可用额度 (格式化字符串)"
},
"status": {
"type": "string",
"enum": [
"start",
"stop"
],
"description": "服务状态 (启用/暂停)"
},
"net_protect": {
"type": "string",
"description": "带宽模式",
"enum": [
"open",
"close"
]
}
},
"required": [
"address",
"balance",
"status"
]
}StatisticsDetail 1期間の自動管理統計。 1期間の自動管理統計。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
65k | integer 必須 | 65kの操作回数 例: 8 |
131k | integer 必須 | 131kの操作回数 例: 15 |
{
"type": "object",
"description": "单个时间段的智能托管统计详情。",
"properties": {
"65k": {
"type": "integer",
"description": "65k 类型操作笔数",
"example": 8
},
"131k": {
"type": "integer",
"description": "131k 类型操作笔数",
"example": 15
}
},
"required": [
"65k",
"131k"
]
}StatisticsSmartData アドレス別自動管理統計。 アドレス別自動管理統計。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
days | object 必須 | 直近5日間の統計。キーはYYYY-MM-DD。 動的キーの値: StatisticsDetail |
today | StatisticsDetail 必須 | 今日の統計 |
yesterday | StatisticsDetail 必須 | 昨日の統計 |
this_week | StatisticsDetail 必須 | 今週(月曜から現在) |
this_month | StatisticsDetail 必須 | 今月(1日から現在) |
{
"type": "object",
"description": "智能托管服务按地址统计结果。",
"properties": {
"days": {
"type": "object",
"description": "最近 5 天的统计 (键为 YYYY-MM-DD)。",
"additionalProperties": {
"$ref": "#/components/schemas/StatisticsDetail"
}
},
"today": {
"$ref": "#/components/schemas/StatisticsDetail",
"description": "今日统计"
},
"yesterday": {
"$ref": "#/components/schemas/StatisticsDetail",
"description": "昨日统计"
},
"this_week": {
"$ref": "#/components/schemas/StatisticsDetail",
"description": "本周统计 (周一至今)"
},
"this_month": {
"$ref": "#/components/schemas/StatisticsDetail",
"description": "本月统计 (1号至今)"
}
},
"required": [
"days",
"today",
"yesterday",
"this_week",
"this_month"
]
}StatisticsTimesData アドレス別回数使用統計。 アドレス別回数使用統計。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
days | object 必須 | 直近5日間の統計。キーはYYYY-MM-DD。 動的キーの値:integer |
today | integer 必須 | 今日の合計回数 例: 5 |
yesterday | integer 必須 | 昨日の合計回数 例: 8 |
this_week | integer 必須 | 今週の合計回数(月曜から) 例: 30 |
this_month | integer 必須 | 今月の合計回数(1日から) 例: 150 |
{
"type": "object",
"description": "API笔数 按地址统计结果。",
"properties": {
"days": {
"type": "object",
"description": "最近 5 天的统计 (键为 YYYY-MM-DD)。",
"additionalProperties": {
"type": "integer",
"example": 25,
"description": "每日总笔数"
}
},
"today": {
"type": "integer",
"example": 5,
"description": "今日总笔数"
},
"yesterday": {
"type": "integer",
"example": 8,
"description": "昨日总笔数"
},
"this_week": {
"type": "integer",
"example": 30,
"description": "本周总笔数 (周一至今)"
},
"this_month": {
"type": "integer",
"example": 150,
"description": "本月总笔数 (1号至今)"
}
},
"required": [
"days",
"today",
"yesterday",
"this_week",
"this_month"
]
}PremiumOrderRequest 項目定義 | 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象Telegramユーザー名(@なし)。 例: "telegram_user" |
month | integer 必須 | 購入月数。 列挙値: 3 / 6 / 12例: 3 |
{
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "目标 Telegram 用户名 (不含 @)。",
"example": "telegram_user"
},
"month": {
"type": "integer",
"description": "购买月数。",
"enum": [
3,
6,
12
],
"example": 3
}
},
"required": [
"username",
"month"
]
}StarOrderRequest 項目定義 | 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象Telegramユーザー名(@なし)。 例: "channel_owner" |
count | integer 必須 | Stars数量(50~10000)。 最小値: 50最大値: 10000例: 100 |
{
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "目标 Telegram 用户名 (不含 @)。",
"example": "channel_owner"
},
"count": {
"type": "integer",
"description": "购买的星星数量 (50-10000)。",
"minimum": 50,
"maximum": 10000,
"example": 100
}
},
"required": [
"username",
"count"
]
}PremiumOrderResponseData Premium注文結果。 Premium注文結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象ユーザー名 |
period | string 必須 | 購入期間(例:"3month") |
order_id | integer 必須 | 内部注文ID |
amount | number · float 必須 | 注文金額(TRX) |
price | number · float 必須 | 料金情報 |
pay_status | string 必須 | 支払状態 |
status | string 必須 | 注文処理状態 |
{
"type": "object",
"description": "Premium 会员下单成功响应数据。",
"properties": {
"username": {
"type": "string",
"description": "目标用户名"
},
"period": {
"type": "string",
"description": "购买周期 (例如 \"3month\")"
},
"order_id": {
"type": "integer",
"description": "内部订单 ID"
},
"amount": {
"type": "number",
"format": "float",
"description": "订单金额 (TRX)"
},
"price": {
"type": "number",
"format": "float",
"description": "价格信息"
},
"pay_status": {
"type": "string",
"description": "支付状态"
},
"status": {
"type": "string",
"description": "订单处理状态"
}
},
"required": [
"username",
"period",
"order_id",
"amount",
"price",
"pay_status",
"status"
]
}StarOrderResponseData Stars注文結果。 Stars注文結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須 | 対象ユーザー名 |
count | integer 必須 | 購入Stars数 |
order_id | integer 必須 | 内部注文ID |
amount | number · float 必須 | 注文金額(TRX) |
price | number · float 必須 | 料金情報 |
pay_status | string 必須 | 支払状態 |
status | string 必須 | 注文処理状態 |
{
"type": "object",
"description": "星星下单成功响应数据。",
"properties": {
"username": {
"type": "string",
"description": "目标用户名"
},
"count": {
"type": "integer",
"description": "购买的星星数量"
},
"order_id": {
"type": "integer",
"description": "内部订单 ID"
},
"amount": {
"type": "number",
"format": "float",
"description": "订单金额 (TRX)"
},
"price": {
"type": "number",
"format": "float",
"description": "价格信息"
},
"pay_status": {
"type": "string",
"description": "支付状态"
},
"status": {
"type": "string",
"description": "订单处理状态"
}
},
"required": [
"username",
"count",
"order_id",
"amount",
"price",
"pay_status",
"status"
]
}PremiumQueryResultData Premium注文照会結果。 Premium注文照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須指定なし | 対象ユーザー名 null許可 |
nickname | string 必須指定なし | 対象ユーザーの表示名 null許可 |
period | string 必須指定なし | 購入期間 null許可 |
order_id | integer 必須 | 注文ID |
amount | number · float 必須 | 注文金額(TRX) |
price | number · float 必須 | 料金情報 |
pay_status | string 必須 | 支払状態 |
status | string 必須 | 注文処理状態 |
remark | string 必須指定なし | 備考・失敗理由(省略あり) null許可 |
create_time | string · date-time 必須指定なし | 注文作成時刻 null許可 |
{
"type": "object",
"description": "Premium 订单查询结果数据。",
"properties": {
"username": {
"type": "string",
"nullable": true,
"description": "目标用户名"
},
"nickname": {
"type": "string",
"nullable": true,
"description": "目标用户昵称"
},
"period": {
"type": "string",
"nullable": true,
"description": "购买周期"
},
"order_id": {
"type": "integer",
"description": "订单 ID"
},
"amount": {
"type": "number",
"format": "float",
"description": "订单金额 (TRX)"
},
"price": {
"type": "number",
"format": "float",
"description": "价格信息"
},
"pay_status": {
"type": "string",
"description": "支付状态"
},
"status": {
"type": "string",
"description": "订单处理状态"
},
"remark": {
"type": "string",
"nullable": true,
"description": "备注/失败原因 (截断后)"
},
"create_time": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "订单创建时间"
}
},
"required": [
"order_id",
"amount",
"price",
"pay_status",
"status"
]
}StarQueryResultData Stars注文照会結果。 Stars注文照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
username | string 必須指定なし | 対象ユーザー名 null許可 |
nickname | string 必須指定なし | 対象ユーザーの表示名 null許可 |
count | integer 必須指定なし | 購入Stars数 null許可 |
order_id | integer 必須 | 注文ID |
amount | number · float 必須 | 注文金額(TRX) |
price | number · float 必須 | 料金情報 |
pay_status | string 必須 | 支払状態 |
status | string 必須 | 注文処理状態 |
remark | string 必須指定なし | 備考・失敗理由(省略あり) null許可 |
create_time | string · date-time 必須指定なし | 注文作成時刻 null許可 |
{
"type": "object",
"description": "星星订单查询结果数据。",
"properties": {
"username": {
"type": "string",
"nullable": true,
"description": "目标用户名"
},
"nickname": {
"type": "string",
"nullable": true,
"description": "目标用户昵称"
},
"count": {
"type": "integer",
"nullable": true,
"description": "购买的星星数量"
},
"order_id": {
"type": "integer",
"description": "订单 ID"
},
"amount": {
"type": "number",
"format": "float",
"description": "订单金额 (TRX)"
},
"price": {
"type": "number",
"format": "float",
"description": "价格信息"
},
"pay_status": {
"type": "string",
"description": "支付状态"
},
"status": {
"type": "string",
"description": "订单处理状态"
},
"remark": {
"type": "string",
"nullable": true,
"description": "备注/失败原因 (截断后)"
},
"create_time": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "订单创建时间"
}
},
"required": [
"order_id",
"amount",
"price",
"pay_status",
"status"
]
}FastRecoverOrderRequest 項目定義 | 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
address | string 必須 | リソース受取TRONアドレス 例: "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx" |
count | integer 必須 | 補充するエネルギー・帯域幅量 例: 65000 |
resource_type | string 必須 | リソース種類 列挙値: "energy" / "net"例: "energy" |
{
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "接收资源的 TRON 地址",
"example": "TRecAddresssxxxxxxxxxxxxxxxxxxxxxxx"
},
"count": {
"type": "integer",
"description": "需要补充的能量或带宽数量",
"example": 65000
},
"resource_type": {
"type": "string",
"description": "资源类型",
"enum": [
"energy",
"net"
],
"example": "energy"
}
},
"required": [
"address",
"count",
"resource_type"
]
}FastRecoverOrderResponseData 補充注文の照会結果。 補充注文の照会結果。
| 項目 | 型 / 必須 | 説明と制約 |
|---|---|---|
order_id | integer 必須 | 内部注文ID |
address | string 必須 | 対象アドレス |
energy_count | integer 必須 | 依頼したエネルギー・帯域幅量 |
price | number · float 必須指定なし | 単価(SUN) null許可 |
fee | number · float 必須指定なし | 手数料(TRX) null許可 |
resource_type | string 必須 | リソース種類 列挙値: "energy" / "net" |
amount | number · float 必須指定なし | 総額(TRX) null許可 |
status | string 必須 | 注文状態 列挙値: "waiting" / "success" / "failed" |
delegate_txid | string 必須指定なし | 委任取引ハッシュ null許可 |
reclaim_txid | string 必須指定なし | 回収取引ハッシュ null許可 |
actual_recover_count | integer 必須指定なし | 実際の補充数量 null許可 |
{
"type": "object",
"description": "速充订单查询结果数据。",
"properties": {
"order_id": {
"type": "integer",
"description": "内部订单 ID"
},
"address": {
"type": "string",
"description": "目标地址"
},
"energy_count": {
"type": "integer",
"description": "请求的能量/带宽数量"
},
"price": {
"type": "number",
"format": "float",
"nullable": true,
"description": "单价 (SUN)"
},
"fee": {
"type": "number",
"format": "float",
"nullable": true,
"description": "手续费 (TRX)"
},
"resource_type": {
"type": "string",
"description": "资源类型",
"enum": [
"energy",
"net"
]
},
"amount": {
"type": "number",
"format": "float",
"nullable": true,
"description": "总金额 (TRX)"
},
"status": {
"type": "string",
"description": "订单状态",
"enum": [
"waiting",
"success",
"failed"
]
},
"delegate_txid": {
"type": "string",
"nullable": true,
"description": "委托交易哈希"
},
"reclaim_txid": {
"type": "string",
"nullable": true,
"description": "回收交易哈希"
},
"actual_recover_count": {
"type": "integer",
"nullable": true,
"description": "实际补充数量"
}
},
"required": [
"order_id",
"address",
"energy_count",
"resource_type",
"status"
]
}APIバージョン2.1.0 · 確認日2026-09-30
API定義の出典: API V2開発文書 。接続ガイドと完全な定義を掲載しています。提供元の更新後は再度ご確認ください。
完全なOpenAPIファイルをダウンロード