1#include <test/jtx/Env.h>
2#include <test/jtx/envconfig.h>
3#include <test/jtx/utility.h>
5#include <xrpld/core/Config.h>
6#include <xrpld/rpc/MethodNames.h>
7#include <xrpld/rpc/RPCCall.h>
8#include <xrpld/rpc/detail/Handler.h>
10#include <xrpl/beast/unit_test/suite.h>
11#include <xrpl/json/json_reader.h>
12#include <xrpl/json/json_value.h>
13#include <xrpl/protocol/ApiVersion.h>
14#include <xrpl/protocol/jss.h>
16#include <boost/algorithm/string/replace.hpp>
78 "account_channels: minimal.",
80 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
83 "method" : "account_channels",
86 "api_version" : %API_VER%,
87 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
93 "account_channels: account and ledger hash.",
97 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
98 "rD5MbavGfiSC5m7mkxy1FANuT7s3HxqpoF",
102 "method" : "account_channels",
105 "api_version" : %API_VER%,
106 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
107 "destination_account" : "rD5MbavGfiSC5m7mkxy1FANuT7s3HxqpoF"
113 "account_channels: account and ledger index.",
117 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
118 "r9emE59aTWb85t64dAebKrxYMBTpzK5yR7",
122 "method" : "account_channels",
125 "api_version" : %API_VER%,
126 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
127 "destination_account" : "r9emE59aTWb85t64dAebKrxYMBTpzK5yR7"
133 "account_channels: two accounts.",
137 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
138 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
142 "method" : "account_channels",
145 "api_version" : %API_VER%,
146 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
147 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
153 "account_channels: two accounts and ledger hash.",
157 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
158 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
159 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
163 "method" : "account_channels",
166 "api_version" : %API_VER%,
167 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
168 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
169 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
175 "account_channels: two accounts and ledger index.",
179 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
180 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
185 "method" : "account_channels",
188 "api_version" : %API_VER%,
189 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
190 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
191 "ledger_index" : 90210
197 "account_channels: too few arguments.",
204 "method" : "account_channels",
207 "error" : "badSyntax",
209 "error_message" : "Syntax error."
215 "account_channels: too many arguments.",
219 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
220 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
226 "method" : "account_channels",
229 "error" : "badSyntax",
231 "error_message" : "Syntax error."
237 "account_channels: invalid accountID.",
245 "method" : "account_channels",
248 "error" : "actMalformed",
250 "error_message" : "Account malformed."
259 "account_currencies: minimal 1.",
261 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
264 "method" : "account_currencies",
267 "api_version" : %API_VER%,
268 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
274 "account_currencies: minimal 2.",
276 {
"account_currencies",
"racb4o3DrdYxuCfyVa6vsLb7vgju9RFbBr"},
279 "method" : "account_currencies",
282 "api_version" : %API_VER%,
283 "account" : "racb4o3DrdYxuCfyVa6vsLb7vgju9RFbBr"
289 "account_currencies: ledger index.",
291 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"42"},
294 "method" : "account_currencies",
297 "api_version" : %API_VER%,
298 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
305 "account_currencies: validated ledger.",
307 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
310 "method" : "account_currencies",
313 "api_version" : %API_VER%,
314 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
315 "ledger_index" : "validated"
321 "account_currencies: current ledger.",
323 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current"},
326 "method" : "account_currencies",
329 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
330 "api_version" : %API_VER%,
331 "ledger_index" : "current"
337 "account_currencies: too few arguments.",
340 "account_currencies",
344 "method" : "account_currencies",
347 "error" : "badSyntax",
349 "error_message" : "Syntax error."
355 "account_currencies: too many arguments.",
357 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"spare1",
"spare2"},
360 "method" : "account_currencies",
363 "error" : "badSyntax",
365 "error_message" : "Syntax error."
371 "account_currencies: invalid second argument.",
373 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"yup"},
376 "method" : "account_currencies",
379 "api_version" : %API_VER%,
380 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
387 "account_currencies: invalid accountID.",
390 "account_currencies",
395 "method" : "account_currencies",
398 "error" : "actMalformed",
400 "error_message" : "Account malformed."
409 "account_info: minimal.",
411 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
414 "method" : "account_info",
417 "api_version" : %API_VER%,
418 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
424 "account_info: with numeric ledger index.",
426 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"77777"},
429 "method" : "account_info",
432 "api_version" : %API_VER%,
433 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
434 "ledger_index" : 77777
440 "account_info: with text ledger index.",
442 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"closed"},
445 "method" : "account_info",
448 "api_version" : %API_VER%,
449 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
450 "ledger_index" : "closed"
456 "account_info: with ledger hash.",
460 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
461 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
465 "method" : "account_info",
468 "api_version" : %API_VER%,
469 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
470 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
476 "account_info: with ledger index.",
478 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
481 "method" : "account_info",
484 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
485 "api_version" : %API_VER%,
486 "ledger_index" : "validated"
492 "account_info: too few arguments.",
499 "method" : "account_info",
502 "error" : "badSyntax",
504 "error_message" : "Syntax error."
510 "account_info: too many arguments.",
512 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"extra1",
"extra2"},
515 "method" : "account_info",
518 "error" : "badSyntax",
520 "error_message" : "Syntax error."
526 "account_info: invalid accountID.",
534 "method" : "account_info",
537 "error" : "actMalformed",
539 "error_message" : "Account malformed."
548 "account_lines: minimal.",
550 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
553 "method" : "account_lines",
556 "api_version" : %API_VER%,
557 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
563 "account_lines: peer.",
567 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
568 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
572 "method" : "account_lines",
575 "api_version" : %API_VER%,
576 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
577 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
583 "account_lines: peer and numeric ledger index.",
587 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
588 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
593 "method" : "account_lines",
596 "api_version" : %API_VER%,
597 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
598 "ledger_index" : 888888888,
599 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
605 "account_lines: peer and text ledger index.",
609 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
610 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
615 "method" : "account_lines",
618 "api_version" : %API_VER%,
619 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
620 "ledger_index" : "closed",
621 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
627 "account_lines: peer and ledger hash.",
631 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
632 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
633 "FFFFEEEEDDDDCCCCBBBBAAAA9999888877776666555544443333222211110000",
637 "method" : "account_lines",
640 "api_version" : %API_VER%,
641 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
642 "ledger_hash" : "FFFFEEEEDDDDCCCCBBBBAAAA9999888877776666555544443333222211110000",
643 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
649 "account_lines: too few arguments.",
656 "method" : "account_lines",
659 "error" : "badSyntax",
661 "error_message" : "Syntax error."
668 "account_lines: four arguments.",
672 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
673 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
679 "method" : "account_lines",
682 "api_version" : %API_VER%,
683 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
684 "ledger_index" : 12345678,
685 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
692 "account_lines: five arguments.",
696 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
697 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
700 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
704 "method" : "account_lines",
707 "api_version" : %API_VER%,
708 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
709 "ledger_index" : 12345678,
710 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
716 "account_lines: too many arguments.",
720 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
721 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
724 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
729 "method" : "account_lines",
732 "error" : "badSyntax",
734 "error_message" : "Syntax error."
740 "account_lines: first invalid accountID.",
748 "method" : "account_lines",
751 "error" : "actMalformed",
753 "error_message" : "Account malformed."
759 "account_lines: second invalid accountID.",
763 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
768 "method" : "account_lines",
771 "api_version" : %API_VER%,
772 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
778 "account_lines: invalid ledger selector.",
782 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
783 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
788 "method" : "account_lines",
791 "api_version" : %API_VER%,
792 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
794 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
803 "account_objects: minimal.",
805 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
808 "method" : "account_objects",
811 "api_version" : %API_VER%,
812 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
818 "account_objects: with numeric ledger index.",
820 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"77777"},
823 "method" : "account_objects",
826 "api_version" : %API_VER%,
827 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
828 "ledger_index" : 77777
834 "account_objects: with text ledger index.",
836 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"closed"},
839 "method" : "account_objects",
842 "api_version" : %API_VER%,
843 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
844 "ledger_index" : "closed"
850 "account_objects: with ledger hash.",
854 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
855 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
859 "method" : "account_objects",
862 "api_version" : %API_VER%,
863 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
864 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
870 "account_objects: with ledger index.",
872 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
875 "method" : "account_objects",
878 "api_version" : %API_VER%,
879 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
880 "ledger_index" : "validated"
886 "account_objects: too few arguments.",
893 "method" : "account_objects",
896 "error" : "badSyntax",
898 "error_message" : "Syntax error."
905 "account_objects: four arguments.",
909 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
916 "method" : "account_objects",
919 "api_version" : %API_VER%,
920 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
927 "account_objects: five arguments.",
931 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
939 "method" : "account_objects",
942 "api_version" : %API_VER%,
943 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
949 "account_objects: too many arguments.",
953 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
962 "method" : "account_objects",
965 "error" : "badSyntax",
967 "error_message" : "Syntax error."
973 "account_objects: invalid accountID.",
981 "method" : "account_objects",
984 "error" : "actMalformed",
986 "error_message" : "Account malformed."
994 "account_objects: invalid ledger selection 1.",
996 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
999 "method" : "account_objects",
1002 "api_version" : %API_VER%,
1003 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1012 "account_objects: invalid ledger selection 2.",
1014 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
1017 "method" : "account_objects",
1020 "api_version" : %API_VER%,
1021 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1031 "account_offers: minimal.",
1033 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
1036 "method" : "account_offers",
1039 "api_version" : %API_VER%,
1040 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1046 "account_offers: with numeric ledger index.",
1048 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"987654321"},
1051 "method" : "account_offers",
1054 "api_version" : %API_VER%,
1055 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1056 "ledger_index" : 987654321
1062 "account_offers: with text ledger index.",
1064 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
1067 "method" : "account_offers",
1070 "api_version" : %API_VER%,
1071 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1072 "ledger_index" : "validated"
1078 "account_offers: with ledger hash.",
1082 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1083 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1087 "method" : "account_offers",
1090 "api_version" : %API_VER%,
1091 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1092 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
1098 "account_offers: with ledger index.",
1100 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
1103 "method" : "account_offers",
1106 "api_version" : %API_VER%,
1107 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1108 "ledger_index" : "validated"
1114 "account_offers: too few arguments.",
1121 "method" : "account_offers",
1124 "error" : "badSyntax",
1126 "error_message" : "Syntax error."
1133 "account_offers: four arguments.",
1135 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"extra"},
1138 "method" : "account_offers",
1141 "api_version" : %API_VER%,
1142 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1148 "account_offers: too many arguments.",
1152 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1160 "method" : "account_offers",
1163 "error" : "badSyntax",
1165 "error_message" : "Syntax error."
1171 "account_offers: invalid accountID.",
1179 "method" : "account_offers",
1182 "error" : "actMalformed",
1184 "error_message" : "Account malformed."
1192 "account_offers: invalid ledger selection 1.",
1194 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
1197 "method" : "account_offers",
1200 "api_version" : %API_VER%,
1201 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1210 "account_offers: invalid ledger selection 2.",
1212 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
1215 "method" : "account_offers",
1218 "api_version" : %API_VER%,
1219 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1229 "account_tx: minimal.",
1231 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
1234 "method" : "account_tx",
1237 "api_version" : %API_VER%,
1238 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1244 "account_tx: ledger_index .",
1246 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"444"},
1249 "method" : "account_tx",
1252 "api_version" : %API_VER%,
1253 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1254 "ledger_index" : 444
1260 "account_tx: ledger_index plus trailing params.",
1264 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1272 "method" : "account_tx",
1275 "api_version" : %API_VER%,
1276 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1279 "descending" : true,
1280 "ledger_index" : 707
1286 "account_tx: ledger_index_min and _max.",
1288 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1"},
1291 "method" : "account_tx",
1294 "api_version" : %API_VER%,
1295 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1296 "ledger_index_max" : -1,
1297 "ledger_index_min" : -1
1303 "account_tx: ledger_index_min and _max plus trailing params.",
1307 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1316 "method" : "account_tx",
1319 "api_version" : %API_VER%,
1320 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1323 "descending" : true,
1324 "ledger_index_max" : 413,
1325 "ledger_index_min" : -1
1331 "account_tx: ledger_index_min and _max plus limit.",
1333 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"247",
"-1",
"300"},
1336 "method" : "account_tx",
1339 "api_version" : %API_VER%,
1340 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1341 "ledger_index_max" : -1,
1342 "ledger_index_min" : 247,
1349 "account_tx: ledger_index_min and _max, limit, trailing args.",
1353 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1363 "method" : "account_tx",
1366 "api_version" : %API_VER%,
1367 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1370 "descending" : true,
1371 "ledger_index_max" : -1,
1372 "ledger_index_min" : 247,
1379 "account_tx: ledger_index_min and _max plus limit and offset.",
1381 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"589",
"590",
"67",
"45"},
1384 "method" : "account_tx",
1387 "api_version" : %API_VER%,
1388 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1389 "ledger_index_max" : 590,
1390 "ledger_index_min" : 589,
1398 "account_tx: ledger_index_min and _max, limit, offset, trailing.",
1402 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1412 "method" : "account_tx",
1415 "api_version" : %API_VER%,
1416 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1418 "descending" : true,
1419 "ledger_index_max" : 590,
1420 "ledger_index_min" : 589,
1428 "account_tx: too few arguments.",
1435 "method" : "account_tx",
1438 "error" : "badSyntax",
1440 "error_message" : "Syntax error."
1446 "account_tx: too many arguments.",
1450 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1462 "method" : "account_tx",
1465 "error" : "badSyntax",
1467 "error_message" : "Syntax error."
1473 "account_tx: invalid accountID.",
1475 {
"account_tx",
"rHb9CJAWyB4rj9!VRWn96DkukG4bwdtyTh"},
1478 "method" : "account_tx",
1481 "error" : "actMalformed",
1483 "error_message" : "Account malformed."
1490 "account_tx: invalid ledger.",
1492 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-478.7"},
1495 "method" : "account_tx",
1498 "api_version" : %API_VER%,
1499 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1506 "account_tx: max less than min.",
1508 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"580",
"579"},
1512 "method" : "account_tx",
1515 "error" : "lgrIdxsInvalid",
1517 "error_message" : "Ledger indexes invalid."
1522 "method" : "account_tx",
1525 "error" : "notSynced",
1527 "error_message" : "Not synced to the network."
1535 "account_tx: non-integer min.",
1537 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"Binary",
"-1"},
1543 "account_tx: non-integer max.",
1545 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"counts"},
1551 "account_tx: non-integer offset.",
1553 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1",
"decending"},
1559 "account_tx: non-integer limit.",
1561 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1",
"300",
"false"},
1567 "account_tx: RIPD-1570.",
1571 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1586 "book_offers: minimal no issuer.",
1595 "method" : "book_offers",
1598 "api_version" : %API_VER%,
1610 "book_offers: minimal with currency/issuer",
1614 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1615 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1619 "method" : "book_offers",
1622 "api_version" : %API_VER%,
1625 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1629 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1638 "book_offers: add issuer.",
1640 {
"book_offers",
"USD",
"EUR",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"},
1643 "method" : "book_offers",
1646 "api_version" : %API_VER%,
1647 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1659 "book_offers: add issuer and numeric ledger index.",
1663 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1665 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1670 "method" : "book_offers",
1673 "api_version" : %API_VER%,
1674 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1675 "ledger_index" : 666,
1681 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1688 "book_offers: add issuer and text ledger index.",
1693 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1694 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1699 "method" : "book_offers",
1702 "api_version" : %API_VER%,
1703 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1704 "ledger_index" : "current",
1707 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1717 "book_offers: add issuer and ledger hash.",
1721 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1722 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1723 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1724 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1728 "method" : "book_offers",
1731 "api_version" : %API_VER%,
1732 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1733 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1736 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1740 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1747 "book_offers: issuer, ledger hash, and limit.",
1751 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1752 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1753 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1754 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1759 "method" : "book_offers",
1762 "api_version" : %API_VER%,
1763 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1764 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1768 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1772 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1780 "book_offers: issuer, ledger hash, limit, and marker.",
1784 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1785 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1786 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1787 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1794 "method" : "book_offers",
1797 "api_version" : %API_VER%,
1798 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1799 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1801 "marker" : "MyMarker",
1804 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1808 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1815 "book_offers: too few arguments.",
1822 "method" : "book_offers",
1825 "error" : "badSyntax",
1827 "error_message" : "Syntax error."
1833 "book_offers: too many arguments.",
1837 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1838 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1839 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1840 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1848 "method" : "book_offers",
1851 "error" : "badSyntax",
1853 "error_message" : "Syntax error."
1860 "book_offers: taker pays no currency.",
1864 "/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1865 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1869 "method" : "book_offers",
1872 "error" : "invalidParams",
1874 "error_message" : "Invalid currency/issuer '/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'"
1880 "book_offers: taker gets no currency.",
1884 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1885 "/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1889 "method" : "book_offers",
1892 "error" : "invalidParams",
1894 "error_message" : "Invalid currency/issuer '/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA'"
1900 "book_offers: invalid issuer.",
1902 {
"book_offers",
"USD",
"EUR",
"not_a_valid_issuer"},
1905 "method" : "book_offers",
1908 "api_version" : %API_VER%,
1909 "issuer" : "not_a_valid_issuer",
1921 "book_offers: invalid text ledger index.",
1926 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1927 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1932 "method" : "book_offers",
1935 "api_version" : %API_VER%,
1936 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1940 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1951 "book_offers: non-numeric limit.",
1955 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1956 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1957 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1958 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1963 "method" : "book_offers",
1966 "error" : "invalidParams",
1968 "error_message" : "Invalid field 'limit'."
1977 "can_delete: minimal.",
1984 "method" : "can_delete",
1987 "api_version" : %API_VER%,
1993 "can_delete: ledger index.",
2001 "method" : "can_delete",
2004 "api_version" : %API_VER%,
2005 "can_delete" : 4294967295
2011 "can_delete: ledger hash.",
2015 "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210",
2019 "method" : "can_delete",
2022 "api_version" : %API_VER%,
2023 "can_delete" : "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210"
2029 "can_delete: always.",
2037 "method" : "can_delete",
2040 "api_version" : %API_VER%,
2041 "can_delete" : "always"
2047 "can_delete: never.",
2055 "method" : "can_delete",
2058 "api_version" : %API_VER%,
2059 "can_delete" : "never"
2073 "method" : "can_delete",
2076 "api_version" : %API_VER%,
2077 "can_delete" : "now"
2083 "can_delete: too many arguments.",
2085 {
"can_delete",
"always",
"never"},
2088 "method" : "can_delete",
2091 "error" : "badSyntax",
2093 "error_message" : "Syntax error."
2099 "can_delete: invalid argument.",
2101 {
"can_delete",
"invalid"},
2104 "method" : "can_delete",
2107 "api_version" : %API_VER%,
2108 "can_delete" : "invalid"
2115 "can_delete: ledger index > 32 bits.",
2126 "can_delete: ledger hash with no alphas.",
2130 "0123456701234567012345670123456701234567012345670123456701234567",
2139 "channel_authorize: minimal.",
2142 "channel_authorize",
2143 "secret_can_be_anything",
2144 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2145 "18446744073709551615",
2149 "method" : "channel_authorize",
2152 "api_version" : %API_VER%,
2153 "amount" : "18446744073709551615",
2154 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2155 "secret" : "secret_can_be_anything"
2161 "channel_authorize: too few arguments.",
2164 "channel_authorize",
2165 "secret_can_be_anything",
2166 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2170 "method" : "channel_authorize",
2173 "error" : "badSyntax",
2175 "error_message" : "Syntax error."
2181 "channel_authorize: too many arguments.",
2184 "channel_authorize",
2186 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2193 "method" : "channel_authorize",
2196 "error" : "badSyntax",
2198 "error_message" : "Syntax error."
2204 "channel_authorize: bad key type.",
2207 "channel_authorize",
2209 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2215 "method" : "channel_authorize",
2218 "error" : "badKeyType",
2220 "error_message" : "Bad key type."
2226 "channel_authorize: channel_id too short.",
2229 "channel_authorize",
2230 "secret_can_be_anything",
2231 "123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2236 "method" : "channel_authorize",
2239 "error" : "channelMalformed",
2241 "error_message" : "Payment channel is malformed."
2247 "channel_authorize: channel_id too long.",
2250 "channel_authorize",
2251 "secret_can_be_anything",
2252 "10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2257 "method" : "channel_authorize",
2260 "error" : "channelMalformed",
2262 "error_message" : "Payment channel is malformed."
2268 "channel_authorize: channel_id not hex.",
2271 "channel_authorize",
2272 "secret_can_be_anything",
2273 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEZ",
2278 "method" : "channel_authorize",
2281 "error" : "channelMalformed",
2283 "error_message" : "Payment channel is malformed."
2289 "channel_authorize: negative amount.",
2292 "channel_authorize",
2293 "secret_can_be_anything",
2294 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2299 "method" : "channel_authorize",
2302 "error" : "channelAmtMalformed",
2304 "error_message" : "Payment channel amount is malformed."
2310 "channel_authorize: amount > 64 bits.",
2313 "channel_authorize",
2314 "secret_can_be_anything",
2315 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2316 "18446744073709551616",
2320 "method" : "channel_authorize",
2323 "error" : "channelAmtMalformed",
2325 "error_message" : "Payment channel amount is malformed."
2334 "channel_verify: public key.",
2338 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2339 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2345 "method" : "channel_verify",
2348 "api_version" : %API_VER%,
2350 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2351 "public_key" : "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2352 "signature" : "DEADBEEF"
2358 "channel_verify: public key hex.",
2362 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2363 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2364 "18446744073709551615",
2369 "method" : "channel_verify",
2372 "api_version" : %API_VER%,
2373 "amount" : "18446744073709551615",
2374 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2375 "public_key" : "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2376 "signature" : "DEADBEEF"
2382 "channel_verify: too few arguments.",
2386 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2387 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2391 "method" : "channel_verify",
2394 "error" : "badSyntax",
2396 "error_message" : "Syntax error."
2402 "channel_verify: too many arguments.",
2406 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2407 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2414 "method" : "channel_verify",
2417 "error" : "badSyntax",
2419 "error_message" : "Syntax error."
2425 "channel_verify: malformed public key.",
2429 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9GoV",
2430 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2436 "method" : "channel_verify",
2439 "error" : "publicMalformed",
2441 "error_message" : "Public key is malformed."
2447 "channel_verify: malformed hex public key.",
2451 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F",
2452 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2458 "method" : "channel_verify",
2461 "error" : "publicMalformed",
2463 "error_message" : "Public key is malformed."
2469 "channel_verify: invalid channel id.",
2473 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2474 "10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2480 "method" : "channel_verify",
2483 "error" : "channelMalformed",
2485 "error_message" : "Payment channel is malformed."
2491 "channel_verify: short channel id.",
2495 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2496 "123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2502 "method" : "channel_verify",
2505 "error" : "channelMalformed",
2507 "error_message" : "Payment channel is malformed."
2513 "channel_verify: amount too small.",
2517 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2518 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2524 "method" : "channel_verify",
2527 "error" : "channelAmtMalformed",
2529 "error_message" : "Payment channel amount is malformed."
2535 "channel_verify: amount too large.",
2539 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2540 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2541 "18446744073709551616",
2546 "method" : "channel_verify",
2549 "error" : "channelAmtMalformed",
2551 "error_message" : "Payment channel amount is malformed."
2557 "channel_verify: non-hex signature.",
2561 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2562 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2564 "ThisIsNotHexadecimal",
2568 "method" : "channel_verify",
2571 "api_version" : %API_VER%,
2572 "amount" : "40000000",
2573 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2574 "public_key" : "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2575 "signature" : "ThisIsNotHexadecimal"
2584 "connect: minimal.",
2588 "ThereIsNoCheckingOnTheIPFormat",
2592 "method" : "connect",
2595 "api_version" : %API_VER%,
2596 "ip" : "ThereIsNoCheckingOnTheIPFormat"
2602 "connect: ip and port.",
2604 {
"connect",
"ThereIsNoCheckingOnTheIPFormat",
"6561"},
2607 "method" : "connect",
2610 "api_version" : %API_VER%,
2611 "ip" : "ThereIsNoCheckingOnTheIPFormat",
2618 "connect: too few arguments.",
2625 "method" : "connect",
2628 "error" : "badSyntax",
2630 "error_message" : "Syntax error."
2636 "connect: too many arguments.",
2638 {
"connect",
"ThereIsNoCheckingOnTheIPFormat",
"6561",
"extra"},
2641 "method" : "connect",
2644 "error" : "badSyntax",
2646 "error_message" : "Syntax error."
2653 "connect: port too small.",
2657 "ThereIsNoCheckingOnTheIPFormat",
2665 "connect: port too large.",
2669 "ThereIsNoCheckingOnTheIPFormat",
2679 "consensus_info: minimal.",
2686 "method" : "consensus_info",
2689 "api_version" : %API_VER%
2695 "consensus_info: too many arguments.",
2697 {
"consensus_info",
"whatever"},
2700 "method" : "consensus_info",
2703 "error" : "badSyntax",
2705 "error_message" : "Syntax error."
2714 "deposit_authorized: minimal.",
2717 "deposit_authorized",
2718 "source_account_NotValidated",
2719 "destination_account_NotValidated",
2723 "method" : "deposit_authorized",
2726 "api_version" : %API_VER%,
2727 "destination_account" : "destination_account_NotValidated",
2728 "source_account" : "source_account_NotValidated"
2734 "deposit_authorized: with text ledger index.",
2737 "deposit_authorized",
2738 "source_account_NotValidated",
2739 "destination_account_NotValidated",
2744 "method" : "deposit_authorized",
2747 "api_version" : %API_VER%,
2748 "destination_account" : "destination_account_NotValidated",
2749 "ledger_index" : "validated",
2750 "source_account" : "source_account_NotValidated"
2756 "deposit_authorized: with ledger index.",
2759 "deposit_authorized",
2760 "source_account_NotValidated",
2761 "destination_account_NotValidated",
2774 "method" : "deposit_authorized",
2777 "api_version" : %API_VER%,
2778 "destination_account" : "destination_account_NotValidated",
2779 "ledger_index" : 4294967295,
2780 "source_account" : "source_account_NotValidated",
2781 "credentials": ["cred1", "cred2", "cred3", "cred4", "cred5", "cred6", "cred7", "cred8"]
2787 "deposit_authorized: with ledger hash.",
2790 "deposit_authorized",
2791 "source_account_NotValidated",
2792 "destination_account_NotValidated",
2793 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
2797 "method" : "deposit_authorized",
2800 "api_version" : %API_VER%,
2801 "destination_account" : "destination_account_NotValidated",
2802 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
2803 "source_account" : "source_account_NotValidated"
2809 "deposit_authorized: too few arguments.",
2812 "deposit_authorized",
2813 "source_account_NotValidated",
2817 "method" : "deposit_authorized",
2820 "error" : "badSyntax",
2822 "error_message" : "Syntax error."
2828 "deposit_authorized: too many arguments.",
2831 "deposit_authorized",
2832 "source_account_NotValidated",
2833 "destination_account_NotValidated",
2834 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
2847 "method" : "deposit_authorized",
2850 "error" : "badSyntax",
2852 "error_message" : "Syntax error."
2858 "deposit_authorized: invalid ledger selection.",
2861 "deposit_authorized",
2862 "source_account_NotValidated",
2863 "destination_account_NotValidated",
2868 "method" : "deposit_authorized",
2871 "api_version" : %API_VER%,
2872 "destination_account" : "destination_account_NotValidated",
2874 "source_account" : "source_account_NotValidated"
2883 "feature: minimal.",
2890 "method" : "feature",
2893 "api_version" : %API_VER%,
2899 "feature: with name.",
2901 {
"feature",
"featureNameOrHexIsNotValidated"},
2904 "method" : "feature",
2907 "api_version" : %API_VER%,
2908 "feature" : "featureNameOrHexIsNotValidated"
2918 "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA98"
2924 "method" : "feature",
2927 "api_version" : %API_VER%,
2928 "feature" : "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210",
2937 {
"feature",
"0",
"reject"},
2940 "method" : "feature",
2943 "api_version" : %API_VER%,
2951 "feature: too many arguments.",
2953 {
"feature",
"featureNameOrHexIsNotValidated",
"accept",
"anotherArg"},
2956 "method" : "feature",
2959 "error" : "badSyntax",
2961 "error_message" : "Syntax error."
2967 "feature: neither accept nor reject.",
2971 "featureNameOrHexIsNotValidated",
2976 "method" : "feature",
2979 "error" : "invalidParams",
2981 "error_message" : "Invalid parameters."
2990 "fetch_info: minimal.",
2997 "method" : "fetch_info",
3000 "api_version" : %API_VER%,
3006 "fetch_info: clear.",
3008 {
"fetch_info",
"clear"},
3011 "method" : "fetch_info",
3014 "api_version" : %API_VER%,
3021 "fetch_info: too many arguments.",
3023 {
"fetch_info",
"clear",
"other"},
3026 "method" : "fetch_info",
3029 "error" : "badSyntax",
3031 "error_message" : "Syntax error."
3037 "fetch_info: other trailing argument.",
3039 {
"fetch_info",
"too"},
3042 "method" : "fetch_info",
3045 "api_version" : %API_VER%,
3055 "gateway_balances: minimal.",
3057 {
"gateway_balances",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
3060 "method" : "gateway_balances",
3063 "api_version" : %API_VER%,
3064 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3070 "gateway_balances: with ledger index.",
3072 {
"gateway_balances",
"890765",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
3075 "method" : "gateway_balances",
3078 "api_version" : %API_VER%,
3079 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3080 "ledger_index" : "890765"
3086 "gateway_balances: with text ledger index.",
3088 {
"gateway_balances",
"current",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
3091 "method" : "gateway_balances",
3094 "api_version" : %API_VER%,
3095 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3096 "ledger_index" : "current"
3102 "gateway_balances: with 64 character ledger hash.",
3106 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
3107 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3111 "method" : "gateway_balances",
3114 "api_version" : %API_VER%,
3115 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3116 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
3122 "gateway_balances: 1 hotwallet.",
3124 {
"gateway_balances",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"hotwallet_is_not_validated"},
3127 "method" : "gateway_balances",
3130 "api_version" : %API_VER%,
3131 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3132 "hotwallet" : [ "hotwallet_is_not_validated" ]
3138 "gateway_balances: 3 hotwallets.",
3142 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
3143 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3144 "hotwallet_is_not_validated_1",
3145 "hotwallet_is_not_validated_2",
3146 "hotwallet_is_not_validated_3",
3150 "method" : "gateway_balances",
3153 "api_version" : %API_VER%,
3154 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3156 "hotwallet_is_not_validated_1",
3157 "hotwallet_is_not_validated_2",
3158 "hotwallet_is_not_validated_3"
3160 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
3166 "gateway_balances: too few arguments.",
3173 "method" : "gateway_balances",
3176 "error" : "badSyntax",
3178 "error_message" : "Syntax error."
3184 "gateway_balances: empty first argument.",
3186 {
"gateway_balances",
""},
3189 "method" : "gateway_balances",
3192 "error" : "invalidParams",
3194 "error_message" : "Invalid first parameter"
3200 "gateway_balances: with ledger index but no gateway.",
3208 "method" : "gateway_balances",
3211 "error" : "invalidParams",
3213 "error_message" : "Invalid hotwallet"
3219 "gateway_balances: with text ledger index but no gateway.",
3227 "method" : "gateway_balances",
3230 "error" : "invalidParams",
3232 "error_message" : "Invalid hotwallet"
3238 "gateway_balances: with 64 character ledger hash but no gateway.",
3242 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
3246 "method" : "gateway_balances",
3249 "error" : "invalidParams",
3251 "error_message" : "Invalid hotwallet"
3260 "get_counts: minimal.",
3267 "method" : "get_counts",
3270 "api_version" : %API_VER%,
3276 "get_counts: with maximum count.",
3278 {
"get_counts",
"100"},
3281 "method" : "get_counts",
3284 "api_version" : %API_VER%,
3291 "get_counts: too many arguments.",
3293 {
"get_counts",
"100",
"whatever"},
3296 "method" : "get_counts",
3299 "error" : "badSyntax",
3301 "error_message" : "Syntax error."
3307 "get_counts: count too small.",
3317 "get_counts: count too large.",
3319 {
"get_counts",
"4294967296"},
3332 R
"({"json_argument":true})",
3336 "method" : "command",
3339 "api_version" : %API_VER%,
3340 "json_argument" : true,
3341 "method" : "command"
3347 "json: null object.",
3356 "method" : "command",
3359 "api_version" : %API_VER%,
3360 "method" : "command"
3366 "json: too few arguments.",
3368 {
"json",
"command"},
3374 "error" : "badSyntax",
3376 "error_message" : "Syntax error."
3382 "json: too many arguments.",
3384 {
"json",
"command", R
"({"json_argument":true})", "extra"},
3390 "error" : "badSyntax",
3392 "error_message" : "Syntax error."
3398 "json: array, not object.",
3403 R
"(["arg1","arg2"])",
3410 "error" : "invalidParams",
3412 "error_message" : "Invalid parameters."
3418 "json: invalid json (note closing comma).",
3423 R
"({"json_argument":true,})",
3430 "error" : "invalidParams",
3432 "error_message" : "Invalid parameters."
3441 "json2: minimal object.",
3445 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1"})",
3451 "method" : "call_1",
3454 "api_version" : %API_VER%,
3457 "method" : "call_1",
3465 "json2: object with nested params.",
3471 "ripplerpc" : "2.0",
3473 "method" : "call_1",
3474 "params" : [{"inner_arg" : "yup"}]
3481 "method" : "call_1",
3484 "api_version" : %API_VER%,
3490 "method" : "call_1",
3498 "json2: minimal array.",
3502 R
"([{"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1"}])",
3510 "api_version" : %API_VER%,
3513 "method" : "call_1",
3521 "json2: array with object with nested params.",
3530 "params" : [{"inner_arg" : "yup"}]}
3539 "api_version" : %API_VER%,
3545 "method" : "call_1",
3552 "json2: too few arguments.",
3562 "error" : "badSyntax",
3564 "error_message" : "Syntax error."
3570 "json2: too many arguments.",
3572 {
"json2", R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_this"})", "extra"},
3578 "error" : "badSyntax",
3580 "error_message" : "Syntax error."
3586 "json2: malformed json (note extra comma).",
3590 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1",})",
3599 "error" : "invalidParams",
3601 "error_message" : "Invalid parameters.",
3611 "json2: omit jsonrpc.",
3615 R
"({"ripplerpc":"2.0","id":"A1","method":"call_1"})",
3623 "error" : "invalidParams",
3625 "error_message" : "Invalid parameters.",
3634 "json2: wrong jsonrpc version.",
3638 R
"({"jsonrpc":"2.1","ripplerpc":"2.0","id":"A1","method":"call_1"})",
3647 "error" : "invalidParams",
3649 "error_message" : "Invalid parameters.",
3659 "json2: omit ripplerpc.",
3663 R
"({"jsonrpc":"2.0","id":"A1","method":"call_1"})",
3672 "error" : "invalidParams",
3674 "error_message" : "Invalid parameters.",
3682 "json2: wrong ripplerpc version.",
3686 R
"({"jsonrpc":"2.0","ripplerpc":"2.00","id":"A1","method":"call_1"})",
3695 "error" : "invalidParams",
3697 "error_message" : "Invalid parameters.",
3700 "ripplerpc" : "2.00"
3703 "ripplerpc" : "2.00"
3711 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","method":"call_1"})",
3719 "error" : "invalidParams",
3721 "error_message" : "Invalid parameters.",
3730 "json2: omit method.",
3734 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1"})",
3743 "error" : "invalidParams",
3745 "error_message" : "Invalid parameters.",
3755 "json2: empty outer array.",
3766 "error" : "invalidParams",
3768 "error_message" : "Invalid parameters."
3774 "json2: empty inner array.",
3778 R
"([{"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1",[]}])",
3785 "error" : "invalidParams",
3787 "error_message" : "Invalid parameters."
3793 "json2: array with non-json2 object.",
3799 "ripplerpc" : "2.0",
3810 "error" : "invalidParams",
3812 "error_message" : "Invalid parameters."
3818 "json2: non-object or -array inner params member.",
3824 "ripplerpc" : "2.0",
3826 "method" : "call_1",
3837 "error" : "invalidParams",
3839 "error_message" : "Invalid parameters.",
3857 "method" : "ledger",
3860 "api_version" : %API_VER%,
3866 "ledger: ledger index.",
3868 {
"ledger",
"4294967295"},
3871 "method" : "ledger",
3874 "api_version" : %API_VER%,
3875 "ledger_index" : 4294967295
3881 "ledger: text ledger index.",
3883 {
"ledger",
"validated"},
3886 "method" : "ledger",
3889 "api_version" : %API_VER%,
3890 "ledger_index" : "validated"
3896 "ledger: ledger hash.",
3898 {
"ledger",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
3901 "method" : "ledger",
3904 "api_version" : %API_VER%,
3905 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
3913 {
"ledger",
"current",
"full"},
3916 "method" : "ledger",
3919 "api_version" : %API_VER%,
3921 "ledger_index" : "current"
3929 {
"ledger",
"closed",
"tx"},
3932 "method" : "ledger",
3935 "api_version" : %API_VER%,
3937 "ledger_index" : "closed",
3938 "transactions" : true
3944 "ledger: too many arguments.",
3946 {
"ledger",
"4294967295",
"spare"},
3949 "method" : "ledger",
3952 "api_version" : %API_VER%,
3953 "ledger_index" : 4294967295
3959 "ledger: ledger index too small.",
3964 "method" : "ledger",
3967 "api_version" : %API_VER%,
3974 "ledger: ledger index too big.",
3976 {
"ledger",
"4294967296"},
3979 "method" : "ledger",
3982 "api_version" : %API_VER%,
3989 "ledger: invalid ledger text.",
3991 {
"ledger",
"latest"},
3994 "method" : "ledger",
3997 "api_version" : %API_VER%,
4004 "ledger: unsupported final argument.",
4006 {
"ledger",
"current",
"expand"},
4009 "method" : "ledger",
4012 "api_version" : %API_VER%,
4013 "ledger_index" : "current"
4022 "ledger_closed: minimal.",
4027 "method" : "ledger_closed",
4030 "api_version" : %API_VER%,
4036 "ledger_closed: too many arguments.",
4038 {
"ledger_closed",
"today"},
4041 "method" : "ledger_closed",
4044 "error" : "badSyntax",
4046 "error_message" : "Syntax error."
4055 "ledger_current: minimal.",
4060 "method" : "ledger_current",
4063 "api_version" : %API_VER%,
4069 "ledger_current: too many arguments.",
4071 {
"ledger_current",
"today"},
4074 "method" : "ledger_current",
4077 "error" : "badSyntax",
4079 "error_message" : "Syntax error."
4088 "ledger_header: ledger index.",
4090 {
"ledger_header",
"4294967295"},
4093 "method" : "ledger_header",
4096 "api_version" : %API_VER%,
4097 "ledger_index" : 4294967295
4103 "ledger_header: ledger hash.",
4105 {
"ledger_header",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
4108 "method" : "ledger_header",
4111 "api_version" : %API_VER%,
4112 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
4118 "ledger_header: too few arguments.",
4125 "method" : "ledger_header",
4128 "error" : "badSyntax",
4130 "error_message" : "Syntax error."
4136 "ledger_header: too many arguments.",
4138 {
"ledger_header",
"4294967295",
"spare"},
4141 "method" : "ledger_header",
4144 "error" : "badSyntax",
4146 "error_message" : "Syntax error."
4152 "ledger_header: text ledger index.",
4154 {
"ledger_header",
"current"},
4157 "method" : "ledger_header",
4160 "api_version" : %API_VER%,
4167 "ledger_header: ledger index too small.",
4169 {
"ledger_header",
"-1"},
4172 "method" : "ledger_header",
4175 "api_version" : %API_VER%,
4182 "ledger_header: ledger index too big.",
4184 {
"ledger_header",
"4294967296"},
4187 "method" : "ledger_header",
4190 "api_version" : %API_VER%,
4200 "ledger_request: ledger index.",
4202 {
"ledger_request",
"4294967295"},
4205 "method" : "ledger_request",
4208 "api_version" : %API_VER%,
4209 "ledger_index" : 4294967295
4215 "ledger_request: ledger hash.",
4217 {
"ledger_request",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
4220 "method" : "ledger_request",
4223 "api_version" : %API_VER%,
4224 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
4230 "ledger_request: too few arguments.",
4237 "method" : "ledger_request",
4240 "error" : "badSyntax",
4242 "error_message" : "Syntax error."
4248 "ledger_request: too many arguments.",
4250 {
"ledger_request",
"4294967295",
"spare"},
4253 "method" : "ledger_request",
4256 "error" : "badSyntax",
4258 "error_message" : "Syntax error."
4264 "ledger_request: text ledger index.",
4266 {
"ledger_request",
"current"},
4269 "method" : "ledger_request",
4272 "api_version" : %API_VER%,
4279 "ledger_request: ledger index too small.",
4281 {
"ledger_request",
"-1"},
4284 "method" : "ledger_request",
4287 "api_version" : %API_VER%,
4294 "ledger_request: ledger index too big.",
4296 {
"ledger_request",
"4294967296"},
4299 "method" : "ledger_request",
4302 "api_version" : %API_VER%,
4312 "log_level: minimal.",
4319 "method" : "log_level",
4322 "api_version" : %API_VER%,
4328 "log_level: fatal.",
4330 {
"log_level",
"fatal"},
4333 "method" : "log_level",
4336 "api_version" : %API_VER%,
4337 "severity" : "fatal"
4343 "log_level: error.",
4345 {
"log_level",
"error"},
4348 "method" : "log_level",
4351 "api_version" : %API_VER%,
4352 "severity" : "error"
4360 {
"log_level",
"warn"},
4363 "method" : "log_level",
4366 "api_version" : %API_VER%,
4373 "log_level: debug.",
4375 {
"log_level",
"debug"},
4378 "method" : "log_level",
4381 "api_version" : %API_VER%,
4382 "severity" : "debug"
4388 "log_level: trace.",
4390 {
"log_level",
"trace"},
4393 "method" : "log_level",
4396 "api_version" : %API_VER%,
4397 "severity" : "trace"
4403 "log_level: base partition.",
4405 {
"log_level",
"base",
"trace"},
4408 "method" : "log_level",
4411 "api_version" : %API_VER%,
4412 "partition" : "base",
4413 "severity" : "trace"
4419 "log_level: partition_name.",
4421 {
"log_level",
"partition_name",
"fatal"},
4424 "method" : "log_level",
4427 "api_version" : %API_VER%,
4428 "partition" : "partition_name",
4429 "severity" : "fatal"
4435 "log_level: too many arguments.",
4437 {
"log_level",
"partition_name",
"fatal",
"extra"},
4440 "method" : "log_level",
4443 "error" : "badSyntax",
4445 "error_message" : "Syntax error."
4451 "log_level: invalid severity.",
4453 {
"log_level",
"err"},
4456 "method" : "log_level",
4459 "api_version" : %API_VER%,
4466 "log_level: swap partition name and severity.",
4475 "method" : "log_level",
4478 "api_version" : %API_VER%,
4479 "partition" : "fatal",
4480 "severity" : "partition_name"
4489 "logrotate: minimal.",
4496 "method" : "logrotate",
4499 "api_version" : %API_VER%,
4505 "logrotate: too many arguments.",
4507 {
"logrotate",
"extra"},
4510 "method" : "logrotate",
4513 "error" : "badSyntax",
4515 "error_message" : "Syntax error."
4524 "owner_info: minimal.",
4526 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
4529 "method" : "owner_info",
4532 "api_version" : %API_VER%,
4533 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
4539 "owner_info: with numeric ledger index.",
4541 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"987654321"},
4544 "method" : "owner_info",
4547 "api_version" : %API_VER%,
4548 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4549 "ledger_index" : 987654321
4555 "owner_info: with text ledger index.",
4557 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
4560 "method" : "owner_info",
4563 "api_version" : %API_VER%,
4564 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4565 "ledger_index" : "validated"
4571 "owner_info: with ledger hash.",
4575 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4576 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
4580 "method" : "owner_info",
4583 "api_version" : %API_VER%,
4584 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4585 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
4591 "owner_info: with ledger index.",
4593 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
4596 "method" : "owner_info",
4599 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4600 "api_version" : %API_VER%,
4601 "ledger_index" : "validated"
4607 "owner_info: too few arguments.",
4614 "method" : "owner_info",
4617 "error" : "badSyntax",
4619 "error_message" : "Syntax error."
4625 "owner_info: too many arguments.",
4629 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4636 "method" : "owner_info",
4639 "error" : "badSyntax",
4641 "error_message" : "Syntax error."
4647 "owner_info: invalid accountID.",
4655 "method" : "owner_info",
4658 "error" : "actMalformed",
4660 "error_message" : "Account malformed."
4668 "owner_info: invalid ledger selection.",
4670 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
4673 "method" : "owner_info",
4676 "api_version" : %API_VER%,
4677 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4686 "owner_info: invalid ledger selection.",
4688 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
4691 "method" : "owner_info",
4694 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4695 "api_version" : %API_VER%,
4715 "api_version" : %API_VER%,
4721 "peers: too many arguments.",
4729 "error" : "badSyntax",
4731 "error_message" : "Syntax error."
4740 "peer_reservations_add: minimal.",
4742 {
"peer_reservations_add",
"public_key_string"},
4745 "method" : "peer_reservations_add",
4748 "api_version" : %API_VER%,
4749 "public_key" : "public_key_string"
4755 "peer_reservations_add: with description.",
4757 {
"peer_reservations_add",
"public_key_string",
"public_key_description"},
4760 "method" : "peer_reservations_add",
4763 "api_version" : %API_VER%,
4764 "description" : "public_key_description",
4765 "public_key" : "public_key_string"
4771 "peer_reservations_add: too few arguments.",
4773 {
"peer_reservations_add"},
4776 "method" : "peer_reservations_add",
4779 "error" : "badSyntax",
4781 "error_message" : "Syntax error."
4787 "peer_reservations_add: too many arguments.",
4789 {
"peer_reservations_add",
"public_key_string",
"public_key_description",
"spare"},
4792 "method" : "peer_reservations_add",
4795 "error" : "badSyntax",
4797 "error_message" : "Syntax error."
4806 "peer_reservations_del: minimal.",
4808 {
"peer_reservations_del",
"public_key_string"},
4811 "method" : "peer_reservations_del",
4814 "api_version" : %API_VER%,
4815 "public_key" : "public_key_string"
4821 "peer_reservations_del: too few arguments.",
4823 {
"peer_reservations_del"},
4826 "method" : "peer_reservations_del",
4829 "error" : "badSyntax",
4831 "error_message" : "Syntax error."
4837 "peer_reservations_del: too many arguments.",
4839 {
"peer_reservations_del",
"public_key_string",
"public_key_description",
"spare"},
4842 "method" : "peer_reservations_del",
4845 "error" : "badSyntax",
4847 "error_message" : "Syntax error."
4866 "api_version" : %API_VER%,
4872 "ping: too many arguments.",
4880 "error" : "badSyntax",
4882 "error_message" : "Syntax error."
4901 "api_version" : %API_VER%,
4908 "print: extra argument.",
4916 "api_version" : %API_VER%,
4917 "params" : [ "extra" ]
4923 "print: too many arguments.",
4925 {
"print",
"extra1",
"extra2"},
4931 "error" : "badSyntax",
4933 "error_message" : "Syntax error."
4949 "method" : "random",
4952 "api_version" : %API_VER%,
4958 "random: too many arguments.",
4960 {
"random",
"extra"},
4963 "method" : "random",
4966 "error" : "badSyntax",
4968 "error_message" : "Syntax error."
4977 "ripple_path_find: minimal.",
4981 R
"({"json_argument":true})",
4985 "method" : "ripple_path_find",
4988 "api_version" : %API_VER%,
4989 "json_argument" : true
4995 "ripple_path_find: ledger index.",
4997 {
"ripple_path_find", R
"({"json_argument":true})", "4294967295"},
5000 "method" : "ripple_path_find",
5003 "api_version" : %API_VER%,
5004 "json_argument" : true,
5005 "ledger_index" : 4294967295
5011 "ripple_path_find: text ledger index.",
5013 {
"ripple_path_find", R
"({"json_argument":true})", "closed"},
5016 "method" : "ripple_path_find",
5019 "api_version" : %API_VER%,
5020 "json_argument" : true,
5021 "ledger_index" : "closed"
5027 "ripple_path_find: ledger hash.",
5031 R
"({"json_argument":true})",
5032 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5036 "method" : "ripple_path_find",
5039 "api_version" : %API_VER%,
5040 "json_argument" : true,
5041 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5048 "ripple_path_find: too few arguments.",
5055 "method" : "ripple_path_find",
5058 "error" : "badSyntax",
5060 "error_message" : "Syntax error."
5066 "ripple_path_find: too many arguments.",
5068 {
"ripple_path_find", R
"({"json_argument":true})", "current",
"extra"},
5071 "method" : "ripple_path_find",
5074 "error" : "badSyntax",
5076 "error_message" : "Syntax error."
5082 "ripple_path_find: invalid json (note extra comma).",
5086 R
"({"json_argument":true,})",
5090 "method" : "ripple_path_find",
5093 "error" : "invalidParams",
5095 "error_message" : "Invalid parameters."
5101 "ripple_path_find: ledger index too small.",
5103 {
"ripple_path_find", R
"({"json_argument":true})", "-1"},
5106 "method" : "ripple_path_find",
5109 "api_version" : %API_VER%,
5110 "json_argument" : true,
5117 "ripple_path_find: ledger index too big.",
5119 {
"ripple_path_find", R
"({"json_argument":true})", "4294967296"},
5122 "method" : "ripple_path_find",
5125 "api_version" : %API_VER%,
5126 "json_argument" : true,
5133 "ripple_path_find: invalid text ledger index.",
5135 {
"ripple_path_find", R
"({"json_argument":true})", "cur"},
5138 "method" : "ripple_path_find",
5141 "api_version" : %API_VER%,
5142 "json_argument" : true,
5157 R
"({"json_argument":true})",
5164 "api_version" : %API_VER%,
5165 "secret" : "my_secret",
5167 "json_argument" : true
5176 {
"sign",
"my_secret", R
"({"json_argument":true})", "offline"},
5182 "api_version" : %API_VER%,
5184 "secret" : "my_secret",
5186 "json_argument" : true
5193 "sign: too few arguments.",
5195 {
"sign",
"contents_of_blob"},
5201 "error" : "badSyntax",
5203 "error_message" : "Syntax error."
5209 "sign: offline flag with signature_target.",
5211 {
"sign",
"my_secret", R
"({"json_argument":true})", "offline",
"extra"},
5217 "api_version" : %API_VER%,
5219 "secret" : "my_secret",
5220 "signature_target" : "extra",
5223 "json_argument" : true
5230 "sign: too many arguments.",
5235 R
"({"json_argument":true})",
5237 "CounterpartySignature",
5245 "error" : "badSyntax",
5247 "error_message" : "Syntax error."
5253 "sign: invalid JSON (note extra comma).",
5258 R
"({"json_argument":true,})",
5265 "error" : "invalidParams",
5267 "error_message" : "Invalid parameters."
5273 "sign: misspelled offline flag interpreted as signature_target.",
5275 {
"sign",
"my_secret", R
"({"json_argument":true})", "offlin"},
5281 "api_version" : %API_VER%,
5282 "secret" : "my_secret",
5283 "signature_target" : "offlin",
5286 "json_argument" : true
5296 "sign_for: minimal.",
5300 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5302 R
"({"json_argument":true})",
5306 "method" : "sign_for",
5309 "api_version" : %API_VER%,
5310 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5311 "secret" : "my_secret",
5313 "json_argument" : true
5320 "sign_for: offline.",
5324 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5326 R
"({"json_argument":true})",
5331 "method" : "sign_for",
5334 "api_version" : %API_VER%,
5335 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5337 "secret" : "my_secret",
5339 "json_argument" : true
5346 "sign_for: too few arguments.",
5350 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5355 "method" : "sign_for",
5358 "error" : "badSyntax",
5360 "error_message" : "Syntax error."
5366 "sign_for: too many arguments.",
5370 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5372 R
"({"json_argument":true})",
5378 "method" : "sign_for",
5381 "error" : "badSyntax",
5383 "error_message" : "Syntax error."
5389 "sign_for: invalid json (note extra comma).",
5393 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5395 R
"({"json_argument":true,})",
5399 "method" : "sign_for",
5402 "error" : "invalidParams",
5404 "error_message" : "Invalid parameters."
5410 "sign_for: invalid final argument.",
5414 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
5416 R
"({"json_argument":true})",
5421 "method" : "sign_for",
5424 "error" : "invalidParams",
5426 "error_message" : "Invalid parameters."
5437 {
"submit",
"the blob is unvalidated and may be any length..."},
5440 "method" : "submit",
5443 "api_version" : %API_VER%,
5444 "tx_blob" : "the blob is unvalidated and may be any length..."
5455 R
"({"json_argument":true})",
5459 "method" : "submit",
5462 "api_version" : %API_VER%,
5463 "secret" : "my_secret",
5465 "json_argument" : true
5472 "submit: too few arguments.",
5479 "method" : "submit",
5482 "error" : "badSyntax",
5484 "error_message" : "Syntax error."
5491 "submit: four arguments.",
5493 {
"submit",
"my_secret", R
"({"json_argument":true})", "offline"},
5496 "method" : "submit",
5499 "api_version" : %API_VER%,
5501 "secret" : "my_secret",
5503 "json_argument" : true
5510 "submit: offline flag with signature_target.",
5512 {
"submit",
"my_secret", R
"({"json_argument":true})", "offline",
"extra"},
5515 "method" : "submit",
5518 "api_version" : %API_VER%,
5520 "secret" : "my_secret",
5521 "signature_target" : "extra",
5524 "json_argument" : true
5531 "submit: too many arguments.",
5536 R
"({"json_argument":true})",
5538 "CounterpartySignature",
5543 "method" : "submit",
5546 "error" : "badSyntax",
5548 "error_message" : "Syntax error."
5554 "submit: invalid json (note extra comma).",
5559 R
"({"json_argument":true,})",
5563 "method" : "submit",
5566 "error" : "invalidParams",
5568 "error_message" : "Invalid parameters."
5574 "submit: misspelled offline flag interpreted as signature_target.",
5576 {
"submit",
"my_secret", R
"({"json_argument":true})", "offlne"},
5579 "method" : "submit",
5582 "api_version" : %API_VER%,
5583 "secret" : "my_secret",
5584 "signature_target" : "offlne",
5587 "json_argument" : true
5597 "submit_multisigned: json.",
5600 "submit_multisigned",
5601 R
"({"json_argument":true})",
5605 "method" : "submit_multisigned",
5608 "api_version" : %API_VER%,
5610 "json_argument" : true
5617 "submit_multisigned: too few arguments.",
5620 "submit_multisigned",
5624 "method" : "submit_multisigned",
5627 "error" : "badSyntax",
5629 "error_message" : "Syntax error."
5635 "submit_multisigned: too many arguments.",
5637 {
"submit_multisigned", R
"({"json_argument":true})", "extra"},
5640 "method" : "submit_multisigned",
5643 "error" : "badSyntax",
5645 "error_message" : "Syntax error."
5651 "submit_multisigned: invalid json (note extra comma).",
5654 "submit_multisigned",
5655 R
"({"json_argument":true,})",
5659 "method" : "submit_multisigned",
5662 "error" : "invalidParams",
5664 "error_message" : "Invalid parameters."
5674 "server_info: minimal.",
5681 "method" : "server_info",
5684 "api_version" : %API_VER%,
5690 "server_info: counters.",
5692 {
"server_info",
"counters"},
5695 "method" : "server_info",
5698 "api_version" : %API_VER%,
5705 "server_info: too many arguments.",
5707 {
"server_info",
"counters",
"extra"},
5710 "method" : "server_info",
5713 "error" : "badSyntax",
5715 "error_message" : "Syntax error."
5721 "server_info: non-counters argument.",
5723 {
"server_info",
"counter"},
5726 "method" : "server_info",
5729 "api_version" : %API_VER%,
5738 "server_state: minimal.",
5745 "method" : "server_state",
5748 "api_version" : %API_VER%,
5754 "server_state: counters.",
5756 {
"server_state",
"counters"},
5759 "method" : "server_state",
5762 "api_version" : %API_VER%,
5769 "server_state: too many arguments.",
5771 {
"server_state",
"counters",
"extra"},
5774 "method" : "server_state",
5777 "error" : "badSyntax",
5779 "error_message" : "Syntax error."
5785 "server_state: non-counters argument.",
5787 {
"server_state",
"counter"},
5790 "method" : "server_state",
5793 "api_version" : %API_VER%,
5812 "api_version" : %API_VER%,
5818 "stop: too many arguments.",
5826 "error" : "badSyntax",
5828 "error_message" : "Syntax error."
5837 "transaction_entry: ledger index.",
5840 "transaction_entry",
5841 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5846 "method" : "transaction_entry",
5849 "api_version" : %API_VER%,
5850 "ledger_index" : 4294967295,
5851 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5857 "transaction_entry: text ledger index.",
5860 "transaction_entry",
5861 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5866 "method" : "transaction_entry",
5869 "api_version" : %API_VER%,
5870 "ledger_index" : "current",
5871 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5877 "transaction_entry: ledger hash.",
5880 "transaction_entry",
5881 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5882 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210",
5886 "method" : "transaction_entry",
5889 "api_version" : %API_VER%,
5890 "ledger_hash" : "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210",
5891 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5897 "transaction_entry: too few arguments.",
5900 "transaction_entry",
5901 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5905 "method" : "transaction_entry",
5908 "error" : "badSyntax",
5910 "error_message" : "Syntax error."
5916 "transaction_entry: too many arguments.",
5919 "transaction_entry",
5920 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5926 "method" : "transaction_entry",
5929 "error" : "badSyntax",
5931 "error_message" : "Syntax error."
5937 "transaction_entry: short tx_hash.",
5940 "transaction_entry",
5941 "123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5946 "method" : "transaction_entry",
5949 "error" : "invalidParams",
5951 "error_message" : "Invalid parameters."
5957 "transaction_entry: long tx_hash.",
5960 "transaction_entry",
5961 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUVW",
5966 "method" : "transaction_entry",
5969 "error" : "invalidParams",
5971 "error_message" : "Invalid parameters."
5977 "transaction_entry: small ledger index.",
5980 "transaction_entry",
5981 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5986 "method" : "transaction_entry",
5989 "error" : "invalidParams",
5991 "error_message" : "Invalid parameters."
5997 "transaction_entry: large ledger index.",
6000 "transaction_entry",
6001 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
6006 "method" : "transaction_entry",
6009 "error" : "invalidParams",
6011 "error_message" : "Invalid parameters."
6017 "transaction_entry: short ledger hash.",
6020 "transaction_entry",
6021 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
6022 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA987654321",
6026 "method" : "transaction_entry",
6029 "error" : "invalidParams",
6031 "error_message" : "Invalid parameters."
6037 "transaction_entry: long ledger hash.",
6040 "transaction_entry",
6041 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
6042 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210Z",
6046 "method" : "transaction_entry",
6049 "error" : "invalidParams",
6051 "error_message" : "Invalid parameters."
6060 "tx: ctid. minimal",
6062 {
"tx",
"FFFFFFFFFFFFFFFF",
"1",
"2"},
6068 "api_version" : %API_VER%,
6069 "ctid" : "FFFFFFFFFFFFFFFF",
6079 {
"tx",
"FFFFFFFFFFFFFFFF",
"binary",
"1",
"2"},
6085 "api_version" : %API_VER%,
6087 "ctid" : "FFFFFFFFFFFFFFFF",
6097 {
"tx",
"transaction_hash_is_not_validated"},
6103 "api_version" : %API_VER%,
6104 "transaction" : "transaction_hash_is_not_validated"
6112 {
"tx",
"transaction_hash_is_not_validated",
"binary"},
6118 "api_version" : %API_VER%,
6120 "transaction" : "transaction_hash_is_not_validated"
6126 "tx: too few arguments.",
6136 "error" : "badSyntax",
6138 "error_message" : "Syntax error."
6144 "tx: too many arguments.",
6146 {
"tx",
"transaction_hash_is_not_validated",
"binary",
"1",
"2",
"extra"},
6152 "error" : "badSyntax",
6154 "error_message" : "Syntax error."
6160 "tx: invalid final argument is apparently ignored.",
6162 {
"tx",
"transaction_hash_is_not_validated",
"bin"},
6168 "api_version" : %API_VER%,
6169 "transaction" : "transaction_hash_is_not_validated"
6178 "tx_history: minimal.",
6180 {
"tx_history",
"0"},
6183 "method" : "tx_history",
6186 "api_version" : %API_VER%,
6193 "tx_history: too few arguments.",
6200 "method" : "tx_history",
6203 "error" : "badSyntax",
6205 "error_message" : "Syntax error."
6211 "tx_history: too many arguments.",
6213 {
"tx_history",
"0",
"1"},
6216 "method" : "tx_history",
6219 "error" : "badSyntax",
6221 "error_message" : "Syntax error."
6228 "tx_history: start too small.",
6230 {
"tx_history",
"-1"},
6236 "tx_history: start too big.",
6238 {
"tx_history",
"4294967296"},
6244 "tx_history: start not integer.",
6246 {
"tx_history",
"beginning"},
6254 "unl_list: minimal.",
6261 "method" : "unl_list",
6264 "api_version" : %API_VER%,
6270 "unl_list: too many arguments.",
6272 {
"unl_list",
"extra"},
6275 "method" : "unl_list",
6278 "error" : "badSyntax",
6280 "error_message" : "Syntax error."
6289 "validation_create: minimal.",
6292 "validation_create",
6296 "method" : "validation_create",
6299 "api_version" : %API_VER%,
6305 "validation_create: with secret.",
6307 {
"validation_create",
"the form of the secret is not validated"},
6310 "method" : "validation_create",
6313 "api_version" : %API_VER%,
6314 "secret" : "the form of the secret is not validated"
6320 "validation_create: too many arguments.",
6322 {
"validation_create",
"the form of the secret is not validated",
"extra"},
6325 "method" : "validation_create",
6328 "error" : "badSyntax",
6330 "error_message" : "Syntax error."
6339 "version: minimal.",
6346 "method" : "version",
6349 "api_version" : %API_VER%,
6355 "version: too many arguments.",
6357 {
"version",
"extra"},
6360 "method" : "version",
6363 "error" : "badSyntax",
6365 "error_message" : "Syntax error."
6374 "wallet_propose: minimal.",
6381 "method" : "wallet_propose",
6384 "api_version" : %API_VER%,
6390 "wallet_propose: with passphrase.",
6392 {
"wallet_propose",
"the form of the passphrase is not validated"},
6395 "method" : "wallet_propose",
6398 "api_version" : %API_VER%,
6399 "passphrase" : "the form of the passphrase is not validated"
6405 "wallet_propose: too many arguments.",
6407 {
"wallet_propose",
"the form of the passphrase is not validated",
"extra"},
6410 "method" : "wallet_propose",
6413 "error" : "badSyntax",
6415 "error_message" : "Syntax error."
6424 "internal: minimal.",
6426 {
"internal",
"command_name"},
6429 "method" : "internal",
6432 "api_version" : %API_VER%,
6433 "internal_command" : "command_name",
6440 "internal: with parameters.",
6442 {
"internal",
"command_name",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
6445 "method" : "internal",
6448 "api_version" : %API_VER%,
6449 "internal_command" : "command_name",
6450 "params" : [ "string_arg", "1", "-1", "4294967296", "3.14159" ]
6456 "internal: too few arguments.",
6463 "method" : "internal",
6466 "error" : "badSyntax",
6468 "error_message" : "Syntax error."
6477 "path_find: minimal.",
6484 "method" : "path_find",
6487 "error" : "noEvents",
6489 "error_message" : "Current transport does not support events."
6495 "path_find: with arguments.",
6497 {
"path_find",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
6500 "method" : "path_find",
6503 "error" : "noEvents",
6505 "error_message" : "Current transport does not support events."
6514 "subscribe: minimal.",
6521 "method" : "subscribe",
6524 "error" : "noEvents",
6526 "error_message" : "Current transport does not support events."
6532 "subscribe: with arguments.",
6534 {
"subscribe",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
6537 "method" : "subscribe",
6540 "error" : "noEvents",
6542 "error_message" : "Current transport does not support events."
6551 "unsubscribe: minimal.",
6558 "method" : "unsubscribe",
6561 "error" : "noEvents",
6563 "error_message" : "Current transport does not support events."
6569 "unsubscribe: with arguments.",
6571 {
"unsubscribe",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
6574 "method" : "unsubscribe",
6577 "error" : "noEvents",
6579 "error_message" : "Current transport does not support events."
6588 "unknown_command: minimal.",
6595 "method" : "unknown_command",
6598 "api_version" : %API_VER%,
6604 "unknown_command: with arguments.",
6606 {
"unknown_command",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
6609 "method" : "unknown_command",
6612 "api_version" : %API_VER%,
6613 "params" : [ "string_arg", "1", "-1", "4294967296", "3.14159" ]
6624 static auto const kPlaceHolder =
"%API_VER%";
6626 boost::replace_all(jr, kPlaceHolder, versionStr);
6635 cfg->networkId = networkID;
6646 testcase <<
"RPCCall API version " << apiVersion;
6657 if (!BEAST_EXPECT(!rpcCallTest.exp.empty()))
6662 char const*
const expVersioned =
6665 : rpcCallTest.exp.back();
6683 fail(rpcCallTest.description, __FILE__, rpcCallTest.line);
6695 if (
json.isMember(jss::params) &&
json[jss::params].isArray() &&
6696 json[jss::params].size() > 0 &&
json[jss::params][0u].isObject())
6698 json[jss::params][0u].removeMember(jss::error_code);
6711 fail(rpcCallTest.description, __FILE__, rpcCallTest.line);
6733 testcase(
"Command-line and dispatch tables agree");
6743 BEAST_EXPECT(!commandLine.empty());
6744 BEAST_EXPECT(!handlers.empty());
6753 for (
auto const& name : commandLine)
6758 auto const* handler = handlerFor(name);
6759 if (BEAST_EXPECTS(handler !=
nullptr,
std::string{name}))
6760 BEAST_EXPECTS(handler->hasCommandLineForm,
std::string{name});
6763 for (
auto const& name : handlers)
6765 auto const* handler = handlerFor(name);
6766 bool const claimsCommandLine = handler !=
nullptr && handler->hasCommandLineForm;
T binary_search(T... args)
void pass()
Record a successful test condition.
void fail(String const &reason, char const *file, int line)
Record a failure.
TestcaseT testcase
Memberspace for declaring test cases.
Unserialize a JSON document into a Value.
bool parse(std::string const &document, Value &root)
Read a Value from a JSON document.
void run() override
Runs the suite.
void testCommandLineTableMatchesHandlers()
void testRPCCall(unsigned apiVersion)
A transaction testing environment.
beast::Journal const journal
JSON (JavaScript Object Notation).
constexpr std::string_view kInternal
constexpr std::string_view kJson2
constexpr std::string_view kJson
The api_version numbers this server serves.
std::span< NullTerminatedView const > getHandlerNames()
Return the names of all methods, sorted and without duplicates.
Handler const * getHandler(unsigned version, bool betaEnabled, std::string_view name)
static constexpr auto kApiMaximumValidVersion
static constexpr auto kApiMinimumSupportedVersion
static constexpr auto kApiCommandLineVersion
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
json::Value cmdToJSONRPC(std::vector< std::string > const &args, beast::Journal j, unsigned int apiVersion)
Given an xrpld unit test rpc command, return the corresponding JSON.
BEAST_DEFINE_TESTSUITE(AMMClawback, app, xrpl)
std::unique_ptr< Config > makeNetworkConfig(uint32_t networkID)
std::string updateAPIVersionString(char const *const req, unsigned apiVersion)
static RPCCallTestData const kRpcCallTestArray[]
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void forAllApiVersions(Fn const &fn, Args &&... args)
std::span< std::string_view const > commandLineMethodNames()
Return the names of all methods accepted on the command line.
std::vector< char const * > exp
RPCCallTestData & operator=(RPCCallTestData &&)=delete
RPCCallTestData(char const *description, int line, std::initializer_list< char const * > const &args, Exception throwsWhat, char const *exp)
RPCCallTestData(char const *description, int line, std::initializer_list< char const * > const &args, Exception throwsWhat, std::initializer_list< char const * > exp)
char const *const description
std::vector< char const * > const args
RPCCallTestData(RPCCallTestData &&)=delete
RPCCallTestData & operator=(RPCCallTestData const &)=delete
RPCCallTestData(RPCCallTestData const &)=delete
Exception const throwsWhat