Tron购买资源异步回调通知
curl --request POST \
--url 'https://openapi.chainup.com/客户回调通知地址'import requests
url = "https://openapi.chainup.com/客户回调通知地址"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://openapi.chainup.com/客户回调通知地址', 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://openapi.chainup.com/客户回调通知地址",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openapi.chainup.com/客户回调通知地址"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.chainup.com/客户回调通知地址")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.chainup.com/客户回调通知地址")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTron资源代理
Tron购买资源异步回调通知
POST
/
客户回调通知地址
Tron购买资源异步回调通知
curl --request POST \
--url 'https://openapi.chainup.com/客户回调通知地址'import requests
url = "https://openapi.chainup.com/客户回调通知地址"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://openapi.chainup.com/客户回调通知地址', 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://openapi.chainup.com/客户回调通知地址",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openapi.chainup.com/客户回调通知地址"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://openapi.chainup.com/客户回调通知地址")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.chainup.com/客户回调通知地址")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body请求参数数据结构
| Param | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| charset | String | 是 | 编码格式,无特殊情况,传参数utf-8 |
| side | String | 是 | 通知类型, 收款通知:deposit, 转账通知: withdraw,Web3交易通知:web3-trans,Tron资源购买交易通知:tron-delegate-trans |
| notify_time | String | 是 | 通知时间,例:2022-11-02 11:04:05 |
| id | String | 是 | 资源购买交易id |
| request_id | String | 是 | 唯一标识 |
| address_from | String | 是 | 资源接收地址 |
| address_to | String | 是 | 转账地址 |
| contract_address | String | 是 | 合约地址 |
| status | Integer | 是 | 交易状态 状态 0创建订单成功1代理资源成功2代理资源失败 |