File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
bruno_collection/NIM to CRC Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ meta {
2+ name : Confirm Swap
3+ type : http
4+ seq : 2
5+ }
6+
7+ post {
8+ url : {{API_URL}}/fast/v1/swaps/{{swap_id}}
9+ body : json
10+ auth : none
11+ }
12+
13+ body:json {
14+ {
15+ "confirm" : true ,
16+ "beneficiary" : {
17+ "CRC" : {
18+ "kty" : " OKP" ,
19+ "crv" : " Ed25519" ,
20+ "x" : " uV_GMw9cXt9fSwuGq61GNfOejJcljCIDfC5aP_FVyx4"
21+ }
22+ },
23+ "refund" : {
24+ "NIM" : " NQ65 KV7F 17QA LBYD V0SA NQ6B FCLX 3MYG XK6C"
25+ }
26+ }
27+ }
28+
29+ docs {
30+ - Private Key: `47d8e55cda5a42a49b0f908cb916e45c958e663c7095ee8d12c3dd05a96dc435`
31+ - Public Key: `b95fc6330f5c5edf5f4b0b86abad4635f39e8c97258c22037c2e5a3ff155cb1e`
32+ - Address: `NQ65 KV7F 17QA LBYD V0SA NQ6B FCLX 3MYG XK6C`
33+ }
Original file line number Diff line number Diff line change 1+ meta {
2+ name : Create Swap
3+ type : http
4+ seq : 1
5+ }
6+
7+ post {
8+ url : {{API_URL}}/fast/v1/swaps
9+ body : json
10+ auth : none
11+ }
12+
13+ body:json {
14+ {
15+ "from" : " NIM" ,
16+ "to" : {
17+ "CRC" : 500
18+ },
19+ "includedFees" : " required"
20+ }
21+ }
22+
23+ script:post-response {
24+ let data = res .getBody ();
25+ bru .setEnvVar (" swap_id" ,data .id );
26+
27+ }
You can’t perform that action at this time.
0 commit comments