forked from lescuer97/nutmix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_calls.txt
More file actions
74 lines (67 loc) · 2.13 KB
/
Copy pathtest_calls.txt
File metadata and controls
74 lines (67 loc) · 2.13 KB
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
Mint payment request quote
curl --request POST --url http://localhost:8080/v1/mint/quote/bolt11 \
--header 'Content-Type: application/json' \
--data '{
"amount" : 10,
"unit": "sats"
}'
request mint tokens
curl --request POST --url http://localhost:8080/v1/mint/bolt11 \
-H "Content-Type: application/json" -d \
'{
"quote": "638b1f85-5157-4cb7-954a-b8908aff9f63",
"outputs": [
{
"amount": 8,
"id": "009a1f293253e41e",
"B_": "035015e6d7ade60ba8426cefaf1832bbd27257636e44a76b922d78e79b47cb689d"
},
{
"amount": 2,
"id": "009a1f293253e41e",
"B_": "0288d7649652d0a83fc9c966c969fb217f15904431e61a44b14999fabc1b5d9ac6"
}
]
}'
request unauthorized swap
curl --request POST --url http://localhost:8080/v1/swap --header 'Content-Type: application/json' -d \
'{
"inputs":
[
{
"amount": 2,
"id": "009a1f293253e41e",
"secret": "407915bc212be61a77e3e6d2aeb4c727980bda51cd06a6afc29e2861768a7837",
"C": "02bc9097997d81afb2cc7346b5e4345a9346bd2a506eb7958598a72f0cf85163ea"
}
],
"outputs":
[
{
"amount": 2,
"id": "009a1f293253e41e",
"B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239"
}
],
}'
curl --request POST --url http://localhost:8080/v1/swap \
-H "Content-Type: application/json" -d \
'{
"inputs":
[
{
"amount": 2,
"id": "009a1f293253e41e",
"secret": "407915bc212be61a77e3e6d2aeb4c727980bda51cd06a6afc29e2861768a7837",
"C": "02bc9097997d81afb2cc7346b5e4345a9346bd2a506eb7958598a72f0cf85163ea"
}
],
"outputs":
[
{
"amount": 2,
"id": "009a1f293253e41e",
"B_": "02634a2c2b34bec9e8a4aba4361f6bf202d7fa2365379b0840afe249a7a9d71239"
}
],
}'