-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_test.http
More file actions
46 lines (41 loc) · 783 Bytes
/
Copy pathapi_test.http
File metadata and controls
46 lines (41 loc) · 783 Bytes
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
### 地址生成
POST http://localhost:1669/rpc/v0
Content-Type: application/json
{
"jsonrpc":"2.0",
"method":"UPAY.NewAddress",
"params":["TEST", "Filecoin"],
"id":1
}
### 获取余额
POST http://localhost:1669/rpc/v0
Content-Type: application/json
{
"jsonrpc":"2.0",
"method":"UPAY.GetBalance",
"params":[
{
"chain": "Filecoin",
"symbol": "Fil",
"address": "f1xxtq2mhmlgsqbatndgdhfqutlmn7kwmk2dthl6q"
}
],
"id":1
}
### 出款
POST http://localhost:1669/rpc/v0
Content-Type: application/json
{
"jsonrpc":"2.0",
"method":"UPAY.Drawing",
"params":[
{
"chain": "Filecoin",
"app_id": "TEST",
"symbol": "Fil",
"to": "f1xxtq2mhmlgsqbatndgdhfqutlmn7kwmk2dthl6q",
"value": 0.01
}
],
"id":1
}