@@ -280,6 +280,7 @@ You can create your first wallet using the [`POST /api/v1/wallets`](#tag/Wallets
280
280
curl -X POST https://localhost:8090/api/v1/wallets \
281
281
-H "Accept: application/json; charset=utf-8" \
282
282
-H "Content-Type: application/json; charset=utf-8" \
283
+ --cert ./scripts/tls-files/client.pem \
283
284
--cacert ./scripts/tls-files/ca.crt \
284
285
-d '{
285
286
"operation": "create",
@@ -325,7 +326,8 @@ endpoint as follows:
325
326
```
326
327
curl -X GET https://localhost:8090/api/v1/wallets/{{walletId}} \
327
328
-H "Accept: application/json; charset=utf-8" \
328
- --cacert ./scripts/tls-files/ca.crt
329
+ --cacert ./scripts/tls-files/ca.crt \
330
+ --cert ./scripts/tls-files/client.pem
329
331
```
330
332
331
333
Receiving ADA
@@ -339,7 +341,8 @@ endpoint:
339
341
```
340
342
curl -X GET https://localhost:8090/api/v1/wallets/{{walletId}}/accounts?page=1&per_page=10 \
341
343
-H "Accept: application/json; charset=utf-8" \
342
- --cacert ./scripts/tls-files/ca.crt
344
+ --cacert ./scripts/tls-files/ca.crt \
345
+ --cert ./scripts/tls-files/client.pem
343
346
```
344
347
345
348
Since you have, for now, only a single wallet, you'll see something like this:
@@ -364,6 +367,7 @@ curl -X POST https://localhost:8090/api/v1/transactions \
364
367
-H "Accept: application/json; charset=utf-8" \
365
368
-H "Content-Type: application/json; charset=utf-8" \
366
369
--cacert ./scripts/tls-files/ca.crt \
370
+ --cert ./scripts/tls-files/client.pem \
367
371
-d '{
368
372
"destinations": [{
369
373
"amount": 14,
@@ -390,6 +394,7 @@ endpoint as follows:
390
394
curl -X GET https://localhost:8090/api/v1/transactions?wallet_id=Ae2tdPwUPE...8V3AVTnqGZ\
391
395
-H "Accept: application/json; charset=utf-8" \
392
396
--cacert ./scripts/tls-files/ca.crt \
397
+ --cert ./scripts/tls-files/client.pem
393
398
```
394
399
395
400
Here we constrained the request to a specific account. After our previous transaction the output
@@ -544,6 +549,7 @@ curl -X POST https://localhost:8090/api/v1/transactions \
544
549
-H "Accept: application/json; charset=utf-8" \
545
550
-H "Content-Type: application/json; charset=utf-8" \
546
551
--cacert ./scripts/tls-files/ca.crt \
552
+ --cert ./scripts/tls-files/client.pem \
547
553
-d '{
548
554
"destinations": [
549
555
{
@@ -580,6 +586,7 @@ curl -X POST https://localhost:8090/api/v1/transactions/fees \
580
586
-H "Accept: application/json; charset=utf-8" \
581
587
-H "Content-Type: application/json; charset=utf-8" \
582
588
--cacert ./scripts/tls-files/ca.crt \
589
+ --cert ./scripts/tls-files/client.pem \
583
590
-d '{
584
591
"destinations": [{
585
592
"amount": 14,
@@ -615,6 +622,7 @@ curl -X POST \
615
622
-H 'Content-Type: application/json;charset=utf-8' \
616
623
-H 'Accept: application/json;charset=utf-8' \
617
624
--cacert ./scripts/tls-files/ca.crt \
625
+ --cert ./scripts/tls-files/client.pem \
618
626
-d '{
619
627
"name": "MyOtherAccount",
620
628
"spendingPassword": "5416b2988745725998907addf4613c9b0764f04959030e1b81c603b920a115d0"
@@ -637,15 +645,17 @@ For example:
637
645
curl -X GET \
638
646
https://127.0.0.1:8090/api/v1/wallets/Ae2tdPwUPE...8V3AVTnqGZ/accounts/2902829384 \
639
647
-H 'Accept: application/json;charset=utf-8' \
640
- --cacert ./scripts/tls-files/ca.crt
648
+ --cacert ./scripts/tls-files/ca.crt \
649
+ --cert ./scripts/tls-files/client.pem
641
650
```
642
651
643
652
For a broader view, the full list of accounts of a given wallet can be retrieved using [`GET /api/v1/wallets/{{walletId}}/accounts`](#tag/Accounts%2Fpaths%2F~1api~1v1~1wallets~1{walletId}~1accounts%2Fget)
644
653
```
645
654
curl -X GET \
646
655
https://127.0.0.1:8090/api/v1/wallets/Ae2tdPwUPE...8V3AVTnqGZ/accounts \
647
656
-H 'Accept: application/json;charset=utf-8' \
648
- --cacert ./scripts/tls-files/ca.crt
657
+ --cacert ./scripts/tls-files/ca.crt \
658
+ --cert ./scripts/tls-files/client.pem
649
659
```
650
660
651
661
```json
@@ -673,6 +683,7 @@ curl -X POST \
673
683
-H 'Content-Type: application/json;charset=utf-8' \
674
684
-H 'Accept: application/json;charset=utf-8' \
675
685
--cacert ./scripts/tls-files/ca.crt \
686
+ --cert ./scripts/tls-files/client.pem \
676
687
-d '{
677
688
"walletId": "Ae2tdPwUPE...V3AVTnqGZ4",
678
689
"accountIndex": 2147483648
@@ -697,7 +708,8 @@ You can always view all your available addresses across all your wallets by usin
697
708
```
698
709
curl -X GET https://localhost:8090/api/v1/addresses \
699
710
-H 'Accept: application/json;charset=utf-8' \
700
- --cacert ./scripts/tls-files/ca.crt
711
+ --cacert ./scripts/tls-files/ca.crt \
712
+ --cert ./scripts/tls-files/client.pem
701
713
```
702
714
703
715
```json
@@ -714,7 +726,8 @@ rather verbose and gives real-time progress updates about the current node.
714
726
```
715
727
curl -X GET https://localhost:8090/api/v1/node-info \
716
728
-H 'Accept: application/json;charset=utf-8' \
717
- --cacert ./scripts/tls-files/ca.crt
729
+ --cacert ./scripts/tls-files/ca.crt \
730
+ --cert ./scripts/tls-files/client.pem
718
731
```
719
732
720
733
```json
@@ -746,14 +759,16 @@ ordered by descending date:
746
759
```
747
760
curl -X GET https://127.0.0.1:8090/api/v1/transactions?wallet_id=Ae2tdPwU...3AVTnqGZ&account_index=2902829384&sort_by=DES\[created_at\]&per_page=50' \
748
761
-H 'Accept: application/json;charset=utf-8' \
749
- --cacert ./scripts/tls-files/ca.crt
762
+ --cacert ./scripts/tls-files/ca.crt \
763
+ --cert ./scripts/tls-files/client.pem
750
764
```
751
765
For example, in order to retrieve the last 50 transactions, ordered by descending date:
752
766
753
767
```
754
768
curl -X GET 'https://127.0.0.1:8090/api/v1/transactions?wallet_id=Ae2tdPwU...3AVTnqGZ &sort_by=DES\[created_at\]&per_page=50' \
755
769
-H 'Accept: application/json;charset=utf-8' \
756
- --cacert ./scripts/tls-files/ca.crt
770
+ --cacert ./scripts/tls-files/ca.crt \
771
+ --cert ./scripts/tls-files/client.pem
757
772
```
758
773
759
774
@@ -762,7 +777,8 @@ Another example, if you were to look for all transactions made since the 1st of
762
777
```
763
778
curl -X GET 'https://127.0.0.1:8090/api/v1/transactions?wallet_id=Ae2tdPwU...3AVTnqGZ&created_at=GT\[2018-01-01T00:00:00.00000\]' \
764
779
-H 'Accept: application/json;charset=utf-8' \
765
- --cacert ./scripts/tls-files/ca.crt
780
+ --cacert ./scripts/tls-files/ca.crt \
781
+ --cert ./scripts/tls-files/client.pem
766
782
```
767
783
768
784
Make sure to carefully read the section about [Pagination](#section/Pagination) to fully
0 commit comments