-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtron_usdt.api
94 lines (84 loc) · 1.85 KB
/
tron_usdt.api
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## 波场链USDT 充值对接API
## 生成地址
POST http://localhost:9000/rpc/v0
Content-Type: application/json
{
"jsonrpc":"2.0",
"method":"Cuckoo-Pay.GetNewAddress",
"params":["appidtest"],
"id":1
}
###{
# "jsonrpc":"2.0",
# "result":{
# "code":"success",
# "message":"",
# "data":{
# "address":"TFcgEXXRz7Pv2YU7UtbTwMCHFWY71yxaQJ"
# }
# },
# "id":1
#}
<> `2021-06-04T030600.200.txt`
### USDT出款(此接口会从出款地址转出,请确保出款地址手续费和USDT足够)
POST http://localhost:9000//rpc/v0
Accept: application/json
{
"jsonrpc":"2.0",
"method":"Cuckoo-Pay.TransferUsdt",
"params":[
{
"to":"TU3yVzRaLYZJbkw45HxVZGYsgaWV6BwJLV",
"amount":"0.1",
"app_id":"222222"
}
],
"id":1
}
###{
# "jsonrpc":"2.0",
# "result":{
# "code":"success",
# "message":"",
# "data":{
# "amount":"0.1",
# "from":"TCiUAp1XsVBnB1CiTrydYNB14ztGvQcDvM",
# "hash":"d10117bfefced427f60281e4511ccad8be6b5b143efdef01ed8069fa50a2cec8",
# "to":"TU3yVzRaLYZJbkw45HxVZGYsgaWV6BwJLV"
# }
# },
# "id":1
#}
### 查询余额
POST http://localhost:9000//rpc/v0
Accept: application/json
{
"jsonrpc":"2.0",
"method":"Cuckoo-Pay.GetBalance",
"params":[
"TULoENvZh62DdrbHPFNAKBh7t2SibZDuop"
],
"id":1
}
###{
# "code": "success",
# "message": "",
# "data": {
# "trx": 15.751671,
# "usdt": 0.9
# }
# }
###回调数据 返回 SUCCESS
#{
# "data":{
# "app_id":"2222222",
# "amount":"0.1",
# "from":"TCiUAp1XsVBnB1CiTrydYNB14ztGvQcDvM",
# "hash":"da261d858d0854b2a77827313bf654cc28dbd9da2d69250a714ee35f1b19c60d",
# "state":1,
# "timestamp":1622747859000,
# "to":"TU3yVzRaLYZJbkw45HxVZGYsgaWV6BwJLV"
# },
# "name":"USDT",
# "time":"2021-06-04 03:18:57"
#}