企业级能量归集API 说明
此接口仅创建固定 10 分钟时长的订单,能量充足即可3-6秒下单成功。如需其他能量相关功能,可前往E宝平台官网下单,或联系我们告知您的具体需求。
POST/v1/tron/collect
创建订单(Collect Order)
如果您的业务场景涉及 DApp、区块链钱包、交易所或支付平台将收款地址的资金归集到冷/热钱包,普通的能量接口可能无法满足需求。此接口会跟据转账toAddress来自动判断需要发送多少能量以及带宽,费用也是根据实际用量计费。
必填参数
- Name
pledgeAddress
- Type
- string
- Description
接收地址:接收能量的地址
- Name
toAddress
- Type
- string
- Description
转账地址: 需要转账的 To Address
选填参数
- Name
outOrderNo
- Type
- string
- Description
外订单号: 返回的时候将带上此订单号
Request
POST
/v1/tron/collectcurl -G https://api.eopen.io/api/v1/tron/collect \
-H "API-KEY: {apiKey}" \
-d "pledgeAddress=TRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "toAddress=TRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "outOrderNo=1000000000000001"
Response
{
"code": 0,
"msg": "Collect Order generated successfully, please check order processing status later",
"time": "1741803626",
"data": {
"id": "OR202503121820255RQTN1TL", // 平台订单号
"currency": "USDT", //当前支付币种
"toAddress": "TRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // 转账地址
"pledgeAddress": "TRxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", //接收能量的地址
"outOrderNo": "xxxxx"
}
}