提交加速存币单请求
curl --request POST \
--url https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp \
--header 'Content-Type: <content-type>' \
--header 'X-API-KEY: <x-api-key>' \
--data '
{
"callBackId": "D782243635",
"userId": 1,
"tenantUserId": "tenant123",
"tenantType": 1,
"amount": 0.5,
"symbol": "TRX",
"chainName": "TRON",
"txId": "tx12345",
"fromAddr": "fromAddress123",
"toAddr": "toAddress123",
"tag": ""
}
'import requests
url = "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp"
payload = {
"callBackId": "D782243635",
"userId": 1,
"tenantUserId": "tenant123",
"tenantType": 1,
"amount": 0.5,
"symbol": "TRX",
"chainName": "TRON",
"txId": "tx12345",
"fromAddr": "fromAddress123",
"toAddr": "toAddress123",
"tag": ""
}
headers = {
"Content-Type": "<content-type>",
"X-API-KEY": "<x-api-key>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', 'X-API-KEY': '<x-api-key>'},
body: JSON.stringify({
callBackId: 'D782243635',
userId: 1,
tenantUserId: 'tenant123',
tenantType: 1,
amount: 0.5,
symbol: 'TRX',
chainName: 'TRON',
txId: 'tx12345',
fromAddr: 'fromAddress123',
toAddr: 'toAddress123',
tag: ''
})
};
fetch('https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'callBackId' => 'D782243635',
'userId' => 1,
'tenantUserId' => 'tenant123',
'tenantType' => 1,
'amount' => 0.5,
'symbol' => 'TRX',
'chainName' => 'TRON',
'txId' => 'tx12345',
'fromAddr' => 'fromAddress123',
'toAddr' => 'toAddress123',
'tag' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"X-API-KEY: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp"
payload := strings.NewReader("{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-API-KEY", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp")
.header("Content-Type", "<content-type>")
.header("X-API-KEY", "<x-api-key>")
.body("{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-API-KEY"] = '<x-api-key>'
request.body = "{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"id": "order12345",
"tenantUserId": "tenant123"
},
"message": ""
}{
"code": "UNAUTHORIZED",
"message": "unauthorized"
}{
"code": "FORBIDDEN",
"message": "forbidden"
}{
"code": "NOT FOUND",
"message": "not found"
}API List
Submit Accelerated Deposit Request
POST
/
api
/
v1
/
api
/
order
/
speedUp
提交加速存币单请求
curl --request POST \
--url https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp \
--header 'Content-Type: <content-type>' \
--header 'X-API-KEY: <x-api-key>' \
--data '
{
"callBackId": "D782243635",
"userId": 1,
"tenantUserId": "tenant123",
"tenantType": 1,
"amount": 0.5,
"symbol": "TRX",
"chainName": "TRON",
"txId": "tx12345",
"fromAddr": "fromAddress123",
"toAddr": "toAddress123",
"tag": ""
}
'import requests
url = "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp"
payload = {
"callBackId": "D782243635",
"userId": 1,
"tenantUserId": "tenant123",
"tenantType": 1,
"amount": 0.5,
"symbol": "TRX",
"chainName": "TRON",
"txId": "tx12345",
"fromAddr": "fromAddress123",
"toAddr": "toAddress123",
"tag": ""
}
headers = {
"Content-Type": "<content-type>",
"X-API-KEY": "<x-api-key>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', 'X-API-KEY': '<x-api-key>'},
body: JSON.stringify({
callBackId: 'D782243635',
userId: 1,
tenantUserId: 'tenant123',
tenantType: 1,
amount: 0.5,
symbol: 'TRX',
chainName: 'TRON',
txId: 'tx12345',
fromAddr: 'fromAddress123',
toAddr: 'toAddress123',
tag: ''
})
};
fetch('https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'callBackId' => 'D782243635',
'userId' => 1,
'tenantUserId' => 'tenant123',
'tenantType' => 1,
'amount' => 0.5,
'symbol' => 'TRX',
'chainName' => 'TRON',
'txId' => 'tx12345',
'fromAddr' => 'fromAddress123',
'toAddr' => 'toAddress123',
'tag' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"X-API-KEY: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp"
payload := strings.NewReader("{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("X-API-KEY", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp")
.header("Content-Type", "<content-type>")
.header("X-API-KEY", "<x-api-key>")
.body("{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas2-out-api.powersafe-rel.cc/api/v1/api/order/speedUp")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["X-API-KEY"] = '<x-api-key>'
request.body = "{\n \"callBackId\": \"D782243635\",\n \"userId\": 1,\n \"tenantUserId\": \"tenant123\",\n \"tenantType\": 1,\n \"amount\": 0.5,\n \"symbol\": \"TRX\",\n \"chainName\": \"TRON\",\n \"txId\": \"tx12345\",\n \"fromAddr\": \"fromAddress123\",\n \"toAddr\": \"toAddress123\",\n \"tag\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"id": "order12345",
"tenantUserId": "tenant123"
},
"message": ""
}{
"code": "UNAUTHORIZED",
"message": "unauthorized"
}{
"code": "FORBIDDEN",
"message": "forbidden"
}{
"code": "NOT FOUND",
"message": "not found"
}API Description
The deposit order will be retrieved again, which may be because it was not found in the admin backend system.Headers
请求内容类型
Example:
"multipart/form-data"
平台方分配的 API-KEY
Example:
"your-api-key"
Body
application/json
加速存币单请求参数(JSON 格式)。
⌘I

