2#include <test/jtx/utility.h>
4#include <xrpld/rpc/RPCCall.h>
6#include <xrpl/beast/unit_test.h>
7#include <xrpl/json/json_reader.h>
8#include <xrpl/protocol/ApiVersion.h>
9#include <xrpl/protocol/ErrorCodes.h>
11#include <boost/algorithm/string.hpp>
35 char const* description_,
45 char const* description_,
66 {
"account_channels: minimal.",
68 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
71 "method" : "account_channels",
74 "api_version" : %API_VER%,
75 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
79 {"account_channels: account and ledger hash.",
81 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rD5MbavGfiSC5m7mkxy1FANuT7s3HxqpoF"},
84 "method" : "account_channels",
87 "api_version" : %API_VER%,
88 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
89 "destination_account" : "rD5MbavGfiSC5m7mkxy1FANuT7s3HxqpoF"
93 {"account_channels: account and ledger index.",
95 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"r9emE59aTWb85t64dAebKrxYMBTpzK5yR7"},
98 "method" : "account_channels",
101 "api_version" : %API_VER%,
102 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
103 "destination_account" : "r9emE59aTWb85t64dAebKrxYMBTpzK5yR7"
107 {"account_channels: two accounts.",
109 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"},
112 "method" : "account_channels",
115 "api_version" : %API_VER%,
116 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
117 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
121 {"account_channels: two accounts and ledger hash.",
124 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
125 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
126 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
129 "method" : "account_channels",
132 "api_version" : %API_VER%,
133 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
134 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
135 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
139 {"account_channels: two accounts and ledger index.",
141 {
"account_channels",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"90210"},
144 "method" : "account_channels",
147 "api_version" : %API_VER%,
148 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
149 "destination_account" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
150 "ledger_index" : 90210
154 {"account_channels: too few arguments.",
161 "method" : "account_channels",
164 "error" : "badSyntax",
166 "error_message" : "Syntax error."
170 {"account_channels: too many arguments.",
173 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
174 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
179 "method" : "account_channels",
182 "error" : "badSyntax",
184 "error_message" : "Syntax error."
188 {"account_channels: invalid accountID.",
196 "method" : "account_channels",
199 "error" : "actMalformed",
201 "error_message" : "Account malformed."
208 {
"account_currencies: minimal 1.",
210 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
213 "method" : "account_currencies",
216 "api_version" : %API_VER%,
217 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
221 {"account_currencies: minimal 2.",
223 {
"account_currencies",
"racb4o3DrdYxuCfyVa6vsLb7vgju9RFbBr"},
226 "method" : "account_currencies",
229 "api_version" : %API_VER%,
230 "account" : "racb4o3DrdYxuCfyVa6vsLb7vgju9RFbBr"
234 {"account_currencies: ledger index.",
236 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"42"},
239 "method" : "account_currencies",
242 "api_version" : %API_VER%,
243 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
248 {"account_currencies: validated ledger.",
250 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
253 "method" : "account_currencies",
256 "api_version" : %API_VER%,
257 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
258 "ledger_index" : "validated"
262 {"account_currencies: current ledger.",
264 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current"},
267 "method" : "account_currencies",
270 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
271 "api_version" : %API_VER%,
272 "ledger_index" : "current"
276 {"account_currencies: too few arguments.",
279 "account_currencies",
283 "method" : "account_currencies",
286 "error" : "badSyntax",
288 "error_message" : "Syntax error."
292 {"account_currencies: too many arguments.",
294 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"spare1",
"spare2"},
297 "method" : "account_currencies",
300 "error" : "badSyntax",
302 "error_message" : "Syntax error."
306 {"account_currencies: invalid second argument.",
308 {
"account_currencies",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"yup"},
311 "method" : "account_currencies",
314 "api_version" : %API_VER%,
315 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
321 "account_currencies: invalid accountID.",
324 "account_currencies",
329 "method" : "account_currencies",
332 "error" : "actMalformed",
334 "error_message" : "Account malformed."
342 {
"account_info: minimal.",
344 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
347 "method" : "account_info",
350 "api_version" : %API_VER%,
351 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
355 {"account_info: with numeric ledger index.",
357 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"77777"},
360 "method" : "account_info",
363 "api_version" : %API_VER%,
364 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
365 "ledger_index" : 77777
369 {"account_info: with text ledger index.",
371 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"closed"},
374 "method" : "account_info",
377 "api_version" : %API_VER%,
378 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
379 "ledger_index" : "closed"
383 {"account_info: with ledger hash.",
386 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
387 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
390 "method" : "account_info",
393 "api_version" : %API_VER%,
394 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
395 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
399 {"account_info: with ledger index.",
401 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
404 "method" : "account_info",
407 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
408 "api_version" : %API_VER%,
409 "ledger_index" : "validated"
413 {"account_info: too few arguments.",
420 "method" : "account_info",
423 "error" : "badSyntax",
425 "error_message" : "Syntax error."
429 {"account_info: too many arguments.",
431 {
"account_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"extra1",
"extra2"},
434 "method" : "account_info",
437 "error" : "badSyntax",
439 "error_message" : "Syntax error."
444 "account_info: invalid accountID.",
452 "method" : "account_info",
455 "error" : "actMalformed",
457 "error_message" : "Account malformed."
465 {
"account_lines: minimal.",
467 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
470 "method" : "account_lines",
473 "api_version" : %API_VER%,
474 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
478 {"account_lines: peer.",
480 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"},
483 "method" : "account_lines",
486 "api_version" : %API_VER%,
487 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
488 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
492 {"account_lines: peer and numeric ledger index.",
494 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"888888888"},
497 "method" : "account_lines",
500 "api_version" : %API_VER%,
501 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
502 "ledger_index" : 888888888,
503 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
507 {"account_lines: peer and text ledger index.",
509 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"closed"},
512 "method" : "account_lines",
515 "api_version" : %API_VER%,
516 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
517 "ledger_index" : "closed",
518 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
522 {"account_lines: peer and ledger hash.",
525 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
526 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
527 "FFFFEEEEDDDDCCCCBBBBAAAA9999888877776666555544443333222211110000"},
530 "method" : "account_lines",
533 "api_version" : %API_VER%,
534 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
535 "ledger_hash" : "FFFFEEEEDDDDCCCCBBBBAAAA9999888877776666555544443333222211110000",
536 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
540 {"account_lines: too few arguments.",
547 "method" : "account_lines",
550 "error" : "badSyntax",
552 "error_message" : "Syntax error."
557 "account_lines: four arguments.",
560 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
561 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
566 "method" : "account_lines",
569 "api_version" : %API_VER%,
570 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
571 "ledger_index" : 12345678,
572 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
577 "account_lines: five arguments.",
580 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
581 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
584 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
587 "method" : "account_lines",
590 "api_version" : %API_VER%,
591 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
592 "ledger_index" : 12345678,
593 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
597 {"account_lines: too many arguments.",
600 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
601 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
604 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
608 "method" : "account_lines",
611 "error" : "badSyntax",
613 "error_message" : "Syntax error."
618 "account_lines: first invalid accountID.",
626 "method" : "account_lines",
629 "error" : "actMalformed",
631 "error_message" : "Account malformed."
637 "account_lines: second invalid accountID.",
641 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
646 "method" : "account_lines",
649 "api_version" : %API_VER%,
650 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
656 "account_lines: invalid ledger selector.",
658 {
"account_lines",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"not_a_ledger"},
661 "method" : "account_lines",
664 "api_version" : %API_VER%,
665 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
667 "peer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
675 {
"account_objects: minimal.",
677 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
680 "method" : "account_objects",
683 "api_version" : %API_VER%,
684 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
688 {"account_objects: with numeric ledger index.",
690 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"77777"},
693 "method" : "account_objects",
696 "api_version" : %API_VER%,
697 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
698 "ledger_index" : 77777
702 {"account_objects: with text ledger index.",
704 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"closed"},
707 "method" : "account_objects",
710 "api_version" : %API_VER%,
711 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
712 "ledger_index" : "closed"
716 {"account_objects: with ledger hash.",
719 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
720 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
723 "method" : "account_objects",
726 "api_version" : %API_VER%,
727 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
728 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
732 {"account_objects: with ledger index.",
734 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
737 "method" : "account_objects",
740 "api_version" : %API_VER%,
741 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
742 "ledger_index" : "validated"
746 {"account_objects: too few arguments.",
753 "method" : "account_objects",
756 "error" : "badSyntax",
758 "error_message" : "Syntax error."
763 "account_objects: four arguments.",
767 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
774 "method" : "account_objects",
777 "api_version" : %API_VER%,
778 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
783 "account_objects: five arguments.",
787 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
795 "method" : "account_objects",
798 "api_version" : %API_VER%,
799 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
803 {"account_objects: too many arguments.",
807 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
816 "method" : "account_objects",
819 "error" : "badSyntax",
821 "error_message" : "Syntax error."
826 "account_objects: invalid accountID.",
834 "method" : "account_objects",
837 "error" : "actMalformed",
839 "error_message" : "Account malformed."
847 "account_objects: invalid ledger selection 1.",
849 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
852 "method" : "account_objects",
855 "api_version" : %API_VER%,
856 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
865 "account_objects: invalid ledger selection 2.",
867 {
"account_objects",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
870 "method" : "account_objects",
873 "api_version" : %API_VER%,
874 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
883 {
"account_offers: minimal.",
885 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
888 "method" : "account_offers",
891 "api_version" : %API_VER%,
892 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
896 {"account_offers: with numeric ledger index.",
898 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"987654321"},
901 "method" : "account_offers",
904 "api_version" : %API_VER%,
905 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
906 "ledger_index" : 987654321
910 {"account_offers: with text ledger index.",
912 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
915 "method" : "account_offers",
918 "api_version" : %API_VER%,
919 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
920 "ledger_index" : "validated"
924 {"account_offers: with ledger hash.",
927 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
928 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
931 "method" : "account_offers",
934 "api_version" : %API_VER%,
935 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
936 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
940 {"account_offers: with ledger index.",
942 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
945 "method" : "account_offers",
948 "api_version" : %API_VER%,
949 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
950 "ledger_index" : "validated"
954 {"account_offers: too few arguments.",
961 "method" : "account_offers",
964 "error" : "badSyntax",
966 "error_message" : "Syntax error."
971 "account_offers: four arguments.",
973 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"current",
"extra"},
976 "method" : "account_offers",
979 "api_version" : %API_VER%,
980 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
984 {"account_offers: too many arguments.",
988 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
996 "method" : "account_offers",
999 "error" : "badSyntax",
1001 "error_message" : "Syntax error."
1006 "account_offers: invalid accountID.",
1014 "method" : "account_offers",
1017 "error" : "actMalformed",
1019 "error_message" : "Account malformed."
1027 "account_offers: invalid ledger selection 1.",
1029 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
1032 "method" : "account_offers",
1035 "api_version" : %API_VER%,
1036 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1045 "account_offers: invalid ledger selection 2.",
1047 {
"account_offers",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
1050 "method" : "account_offers",
1053 "api_version" : %API_VER%,
1054 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1063 {
"account_tx: minimal.",
1065 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
1068 "method" : "account_tx",
1071 "api_version" : %API_VER%,
1072 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1076 {"account_tx: ledger_index .",
1078 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"444"},
1081 "method" : "account_tx",
1084 "api_version" : %API_VER%,
1085 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1086 "ledger_index" : 444
1090 {"account_tx: ledger_index plus trailing params.",
1092 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"707",
"descending",
"binary",
"count"},
1095 "method" : "account_tx",
1098 "api_version" : %API_VER%,
1099 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1102 "descending" : true,
1103 "ledger_index" : 707
1107 {"account_tx: ledger_index_min and _max.",
1109 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1"},
1112 "method" : "account_tx",
1115 "api_version" : %API_VER%,
1116 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1117 "ledger_index_max" : -1,
1118 "ledger_index_min" : -1
1122 {"account_tx: ledger_index_min and _max plus trailing params.",
1124 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"413",
"binary",
"count",
"descending"},
1127 "method" : "account_tx",
1130 "api_version" : %API_VER%,
1131 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1134 "descending" : true,
1135 "ledger_index_max" : 413,
1136 "ledger_index_min" : -1
1140 {"account_tx: ledger_index_min and _max plus limit.",
1142 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"247",
"-1",
"300"},
1145 "method" : "account_tx",
1148 "api_version" : %API_VER%,
1149 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1150 "ledger_index_max" : -1,
1151 "ledger_index_min" : 247,
1156 {"account_tx: ledger_index_min and _max, limit, trailing args.",
1158 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"247",
"-1",
"300",
"count",
"descending",
"binary"},
1161 "method" : "account_tx",
1164 "api_version" : %API_VER%,
1165 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1168 "descending" : true,
1169 "ledger_index_max" : -1,
1170 "ledger_index_min" : 247,
1175 {"account_tx: ledger_index_min and _max plus limit and offset.",
1177 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"589",
"590",
"67",
"45"},
1180 "method" : "account_tx",
1183 "api_version" : %API_VER%,
1184 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1185 "ledger_index_max" : 590,
1186 "ledger_index_min" : 589,
1192 {"account_tx: ledger_index_min and _max, limit, offset, trailing.",
1194 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"589",
"590",
"67",
"45",
"descending",
"count"},
1197 "method" : "account_tx",
1200 "api_version" : %API_VER%,
1201 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1203 "descending" : true,
1204 "ledger_index_max" : 590,
1205 "ledger_index_min" : 589,
1211 {"account_tx: too few arguments.",
1218 "method" : "account_tx",
1221 "error" : "badSyntax",
1223 "error_message" : "Syntax error."
1227 {"account_tx: too many arguments.",
1230 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1241 "method" : "account_tx",
1244 "error" : "badSyntax",
1246 "error_message" : "Syntax error."
1251 "account_tx: invalid accountID.",
1253 {
"account_tx",
"rHb9CJAWyB4rj9!VRWn96DkukG4bwdtyTh"},
1256 "method" : "account_tx",
1259 "error" : "actMalformed",
1261 "error_message" : "Account malformed."
1268 "account_tx: invalid ledger.",
1270 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-478.7"},
1273 "method" : "account_tx",
1276 "api_version" : %API_VER%,
1277 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1284 "account_tx: max less than min.",
1286 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"580",
"579"},
1290 "method" : "account_tx",
1293 "error" : "lgrIdxsInvalid",
1295 "error_message" : "Ledger indexes invalid."
1300 "method" : "account_tx",
1303 "error" : "notSynced",
1305 "error_message" : "Not synced to the network."
1312 "account_tx: non-integer min.",
1314 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"Binary",
"-1"},
1320 "account_tx: non-integer max.",
1322 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"counts"},
1328 "account_tx: non-integer offset.",
1330 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1",
"decending"},
1336 "account_tx: non-integer limit.",
1338 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1",
"300",
"false"},
1343 "account_tx: RIPD-1570.",
1345 {
"account_tx",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"-1",
"-1",
"2",
"false",
"false",
"false"},
1351 {
"book_offers: minimal no issuer.",
1360 "method" : "book_offers",
1363 "api_version" : %API_VER%,
1373 {"book_offers: minimal with currency/issuer",
1377 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1378 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1382 "method" : "book_offers",
1385 "api_version" : %API_VER%,
1388 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1392 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1399 "book_offers: add issuer.",
1401 {
"book_offers",
"USD",
"EUR",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"},
1404 "method" : "book_offers",
1407 "api_version" : %API_VER%,
1408 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1418 {"book_offers: add issuer and numeric ledger index.",
1420 {
"book_offers",
"USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"EUR",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"666"},
1423 "method" : "book_offers",
1426 "api_version" : %API_VER%,
1427 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1428 "ledger_index" : 666,
1434 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1439 {"book_offers: add issuer and text ledger index.",
1441 {
"book_offers",
"USD",
"EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
"current"},
1444 "method" : "book_offers",
1447 "api_version" : %API_VER%,
1448 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1449 "ledger_index" : "current",
1452 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1460 {"book_offers: add issuer and ledger hash.",
1463 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1464 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1465 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1466 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
1469 "method" : "book_offers",
1472 "api_version" : %API_VER%,
1473 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1474 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1477 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1481 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1486 {"book_offers: issuer, ledger hash, and limit.",
1490 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1491 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1492 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1493 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1498 "method" : "book_offers",
1501 "api_version" : %API_VER%,
1502 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1503 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1507 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1511 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1517 "book_offers: issuer, ledger hash, limit, and marker.",
1520 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1521 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1522 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1523 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1529 "method" : "book_offers",
1532 "api_version" : %API_VER%,
1533 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1534 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1536 "marker" : "MyMarker",
1539 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1543 "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
1548 {"book_offers: too few arguments.",
1555 "method" : "book_offers",
1558 "error" : "badSyntax",
1560 "error_message" : "Syntax error."
1564 {"book_offers: too many arguments.",
1567 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1568 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1569 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1570 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1577 "method" : "book_offers",
1580 "error" : "badSyntax",
1582 "error_message" : "Syntax error."
1587 {"book_offers: taker pays no currency.",
1591 "/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1592 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1596 "method" : "book_offers",
1599 "error" : "invalidParams",
1601 "error_message" : "Invalid currency/issuer '/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'"
1605 {"book_offers: taker gets no currency.",
1609 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1610 "/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1614 "method" : "book_offers",
1617 "error" : "invalidParams",
1619 "error_message" : "Invalid currency/issuer '/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA'"
1623 {"book_offers: invalid issuer.",
1625 {
"book_offers",
"USD",
"EUR",
"not_a_valid_issuer"},
1628 "method" : "book_offers",
1631 "api_version" : %API_VER%,
1632 "issuer" : "not_a_valid_issuer",
1642 {"book_offers: invalid text ledger index.",
1646 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1647 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1651 "method" : "book_offers",
1654 "api_version" : %API_VER%,
1655 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1659 "issuer" : "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA"
1668 "book_offers: non-numeric limit.",
1672 "USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
1673 "EUR/rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1674 "rnUy2SHTrB9DubsPmkJZUXTf5FcNDGrYEA",
1675 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
1680 "method" : "book_offers",
1683 "error" : "invalidParams",
1685 "error_message" : "Invalid field 'limit'."
1692 {
"can_delete: minimal.",
1699 "method" : "can_delete",
1702 "api_version" : %API_VER%,
1706 {"can_delete: ledger index.",
1714 "method" : "can_delete",
1717 "api_version" : %API_VER%,
1718 "can_delete" : 4294967295
1722 {"can_delete: ledger hash.",
1726 "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210",
1730 "method" : "can_delete",
1733 "api_version" : %API_VER%,
1734 "can_delete" : "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210"
1738 {"can_delete: always.",
1746 "method" : "can_delete",
1749 "api_version" : %API_VER%,
1750 "can_delete" : "always"
1754 {"can_delete: never.",
1762 "method" : "can_delete",
1765 "api_version" : %API_VER%,
1766 "can_delete" : "never"
1770 {"can_delete: now.",
1778 "method" : "can_delete",
1781 "api_version" : %API_VER%,
1782 "can_delete" : "now"
1786 {"can_delete: too many arguments.",
1788 {
"can_delete",
"always",
"never"},
1791 "method" : "can_delete",
1794 "error" : "badSyntax",
1796 "error_message" : "Syntax error."
1800 {"can_delete: invalid argument.",
1802 {
"can_delete",
"invalid"},
1805 "method" : "can_delete",
1808 "api_version" : %API_VER%,
1809 "can_delete" : "invalid"
1814 "can_delete: ledger index > 32 bits.",
1823 "can_delete: ledger hash with no alphas.",
1827 "0123456701234567012345670123456701234567012345670123456701234567",
1834 {
"channel_authorize: minimal.",
1836 {
"channel_authorize",
1837 "secret_can_be_anything",
1838 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1839 "18446744073709551615"},
1842 "method" : "channel_authorize",
1845 "api_version" : %API_VER%,
1846 "amount" : "18446744073709551615",
1847 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1848 "secret" : "secret_can_be_anything"
1852 {"channel_authorize: too few arguments.",
1855 "channel_authorize",
1856 "secret_can_be_anything",
1857 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1861 "method" : "channel_authorize",
1864 "error" : "badSyntax",
1866 "error_message" : "Syntax error."
1870 {"channel_authorize: too many arguments.",
1872 {
"channel_authorize",
1874 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1880 "method" : "channel_authorize",
1883 "error" : "badSyntax",
1885 "error_message" : "Syntax error."
1889 {"channel_authorize: bad key type.",
1891 {
"channel_authorize",
1893 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1898 "method" : "channel_authorize",
1901 "error" : "badKeyType",
1903 "error_message" : "Bad key type."
1907 {"channel_authorize: channel_id too short.",
1909 {
"channel_authorize",
1910 "secret_can_be_anything",
1911 "123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1915 "method" : "channel_authorize",
1918 "error" : "channelMalformed",
1920 "error_message" : "Payment channel is malformed."
1924 {"channel_authorize: channel_id too long.",
1926 {
"channel_authorize",
1927 "secret_can_be_anything",
1928 "10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1932 "method" : "channel_authorize",
1935 "error" : "channelMalformed",
1937 "error_message" : "Payment channel is malformed."
1941 {"channel_authorize: channel_id not hex.",
1943 {
"channel_authorize",
1944 "secret_can_be_anything",
1945 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEZ",
1949 "method" : "channel_authorize",
1952 "error" : "channelMalformed",
1954 "error_message" : "Payment channel is malformed."
1958 {"channel_authorize: negative amount.",
1960 {
"channel_authorize",
1961 "secret_can_be_anything",
1962 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1966 "method" : "channel_authorize",
1969 "error" : "channelAmtMalformed",
1971 "error_message" : "Payment channel amount is malformed."
1975 {"channel_authorize: amount > 64 bits.",
1977 {
"channel_authorize",
1978 "secret_can_be_anything",
1979 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
1980 "18446744073709551616"},
1983 "method" : "channel_authorize",
1986 "error" : "channelAmtMalformed",
1988 "error_message" : "Payment channel amount is malformed."
1995 {
"channel_verify: public key.",
1998 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
1999 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2004 "method" : "channel_verify",
2007 "api_version" : %API_VER%,
2009 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2010 "public_key" : "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2011 "signature" : "DEADBEEF"
2015 {"channel_verify: public key hex.",
2018 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2019 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2020 "18446744073709551615",
2024 "method" : "channel_verify",
2027 "api_version" : %API_VER%,
2028 "amount" : "18446744073709551615",
2029 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2030 "public_key" : "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2031 "signature" : "DEADBEEF"
2035 {"channel_verify: too few arguments.",
2038 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2039 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
2042 "method" : "channel_verify",
2045 "error" : "badSyntax",
2047 "error_message" : "Syntax error."
2051 {"channel_verify: too many arguments.",
2054 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2055 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2061 "method" : "channel_verify",
2064 "error" : "badSyntax",
2066 "error_message" : "Syntax error."
2070 {"channel_verify: malformed public key.",
2073 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9GoV",
2074 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2079 "method" : "channel_verify",
2082 "error" : "publicMalformed",
2084 "error_message" : "Public key is malformed."
2088 {"channel_verify: malformed hex public key.",
2091 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F",
2092 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2097 "method" : "channel_verify",
2100 "error" : "publicMalformed",
2102 "error_message" : "Public key is malformed."
2106 {"channel_verify: invalid channel id.",
2109 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2110 "10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2115 "method" : "channel_verify",
2118 "error" : "channelMalformed",
2120 "error_message" : "Payment channel is malformed."
2124 {"channel_verify: short channel id.",
2127 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2128 "123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2133 "method" : "channel_verify",
2136 "error" : "channelMalformed",
2138 "error_message" : "Payment channel is malformed."
2142 {"channel_verify: amount too small.",
2145 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2146 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2151 "method" : "channel_verify",
2154 "error" : "channelAmtMalformed",
2156 "error_message" : "Payment channel amount is malformed."
2160 {"channel_verify: amount too large.",
2163 "021D93E21C44160A1B3B66DA1F37B86BE39FFEA3FC4B95FAA2063F82EE823599F6",
2164 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2165 "18446744073709551616",
2169 "method" : "channel_verify",
2172 "error" : "channelAmtMalformed",
2174 "error_message" : "Payment channel amount is malformed."
2178 {"channel_verify: non-hex signature.",
2181 "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2182 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2184 "ThisIsNotHexadecimal"},
2187 "method" : "channel_verify",
2190 "api_version" : %API_VER%,
2191 "amount" : "40000000",
2192 "channel_id" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF",
2193 "public_key" : "aB4BXXLuPu8DpVuyq1DBiu3SrPdtK9AYZisKhu8mvkoiUD8J9Gov",
2194 "signature" : "ThisIsNotHexadecimal"
2201 {
"connect: minimal.",
2205 "ThereIsNoCheckingOnTheIPFormat",
2209 "method" : "connect",
2212 "api_version" : %API_VER%,
2213 "ip" : "ThereIsNoCheckingOnTheIPFormat"
2217 {"connect: ip and port.",
2219 {
"connect",
"ThereIsNoCheckingOnTheIPFormat",
"6561"},
2222 "method" : "connect",
2225 "api_version" : %API_VER%,
2226 "ip" : "ThereIsNoCheckingOnTheIPFormat",
2231 {"connect: too few arguments.",
2238 "method" : "connect",
2241 "error" : "badSyntax",
2243 "error_message" : "Syntax error."
2247 {"connect: too many arguments.",
2249 {
"connect",
"ThereIsNoCheckingOnTheIPFormat",
"6561",
"extra"},
2252 "method" : "connect",
2255 "error" : "badSyntax",
2257 "error_message" : "Syntax error."
2262 "connect: port too small.",
2266 "ThereIsNoCheckingOnTheIPFormat",
2272 "connect: port too large.",
2276 "ThereIsNoCheckingOnTheIPFormat",
2284 {
"consensus_info: minimal.",
2291 "method" : "consensus_info",
2294 "api_version" : %API_VER%
2298 {"consensus_info: too many arguments.",
2300 {
"consensus_info",
"whatever"},
2303 "method" : "consensus_info",
2306 "error" : "badSyntax",
2308 "error_message" : "Syntax error."
2315 {
"deposit_authorized: minimal.",
2318 "deposit_authorized",
2319 "source_account_NotValidated",
2320 "destination_account_NotValidated",
2324 "method" : "deposit_authorized",
2327 "api_version" : %API_VER%,
2328 "destination_account" : "destination_account_NotValidated",
2329 "source_account" : "source_account_NotValidated"
2333 {"deposit_authorized: with text ledger index.",
2335 {
"deposit_authorized",
"source_account_NotValidated",
"destination_account_NotValidated",
"validated"},
2338 "method" : "deposit_authorized",
2341 "api_version" : %API_VER%,
2342 "destination_account" : "destination_account_NotValidated",
2343 "ledger_index" : "validated",
2344 "source_account" : "source_account_NotValidated"
2348 {"deposit_authorized: with ledger index.",
2350 {
"deposit_authorized",
2351 "source_account_NotValidated",
2352 "destination_account_NotValidated",
2364 "method" : "deposit_authorized",
2367 "api_version" : %API_VER%,
2368 "destination_account" : "destination_account_NotValidated",
2369 "ledger_index" : 4294967295,
2370 "source_account" : "source_account_NotValidated",
2371 "credentials": ["cred1", "cred2", "cred3", "cred4", "cred5", "cred6", "cred7", "cred8"]
2375 {"deposit_authorized: with ledger hash.",
2377 {
"deposit_authorized",
2378 "source_account_NotValidated",
2379 "destination_account_NotValidated",
2380 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
2383 "method" : "deposit_authorized",
2386 "api_version" : %API_VER%,
2387 "destination_account" : "destination_account_NotValidated",
2388 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
2389 "source_account" : "source_account_NotValidated"
2393 {"deposit_authorized: too few arguments.",
2396 "deposit_authorized",
2397 "source_account_NotValidated",
2401 "method" : "deposit_authorized",
2404 "error" : "badSyntax",
2406 "error_message" : "Syntax error."
2410 {"deposit_authorized: too many arguments.",
2412 {
"deposit_authorized",
2413 "source_account_NotValidated",
2414 "destination_account_NotValidated",
2415 "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789",
2427 "method" : "deposit_authorized",
2430 "error" : "badSyntax",
2432 "error_message" : "Syntax error."
2436 {"deposit_authorized: invalid ledger selection.",
2439 "deposit_authorized",
2440 "source_account_NotValidated",
2441 "destination_account_NotValidated",
2446 "method" : "deposit_authorized",
2449 "api_version" : %API_VER%,
2450 "destination_account" : "destination_account_NotValidated",
2452 "source_account" : "source_account_NotValidated"
2459 {
"feature: minimal.",
2466 "method" : "feature",
2469 "api_version" : %API_VER%,
2473 {"feature: with name.",
2475 {
"feature",
"featureNameOrHexIsNotValidated"},
2478 "method" : "feature",
2481 "api_version" : %API_VER%,
2482 "feature" : "featureNameOrHexIsNotValidated"
2486 {"feature: accept.",
2489 "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA98"
2494 "method" : "feature",
2497 "api_version" : %API_VER%,
2498 "feature" : "FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210",
2503 {"feature: reject.",
2505 {
"feature",
"0",
"reject"},
2508 "method" : "feature",
2511 "api_version" : %API_VER%,
2517 {"feature: too many arguments.",
2519 {
"feature",
"featureNameOrHexIsNotValidated",
"accept",
"anotherArg"},
2522 "method" : "feature",
2525 "error" : "badSyntax",
2527 "error_message" : "Syntax error."
2531 {"feature: neither accept nor reject.",
2535 "featureNameOrHexIsNotValidated",
2540 "method" : "feature",
2543 "error" : "invalidParams",
2545 "error_message" : "Invalid parameters."
2552 {
"fetch_info: minimal.",
2559 "method" : "fetch_info",
2562 "api_version" : %API_VER%,
2566 {"fetch_info: clear.",
2568 {
"fetch_info",
"clear"},
2571 "method" : "fetch_info",
2574 "api_version" : %API_VER%,
2579 {"fetch_info: too many arguments.",
2581 {
"fetch_info",
"clear",
"other"},
2584 "method" : "fetch_info",
2587 "error" : "badSyntax",
2589 "error_message" : "Syntax error."
2593 {"fetch_info: other trailing argument.",
2595 {
"fetch_info",
"too"},
2598 "method" : "fetch_info",
2601 "api_version" : %API_VER%,
2609 {
"gateway_balances: minimal.",
2611 {
"gateway_balances",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
2614 "method" : "gateway_balances",
2617 "api_version" : %API_VER%,
2618 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2622 {"gateway_balances: with ledger index.",
2624 {
"gateway_balances",
"890765",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
2627 "method" : "gateway_balances",
2630 "api_version" : %API_VER%,
2631 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2632 "ledger_index" : "890765"
2636 {"gateway_balances: with text ledger index.",
2638 {
"gateway_balances",
"current",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
2641 "method" : "gateway_balances",
2644 "api_version" : %API_VER%,
2645 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2646 "ledger_index" : "current"
2650 {"gateway_balances: with 64 character ledger hash.",
2652 {
"gateway_balances",
2653 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
2654 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
2657 "method" : "gateway_balances",
2660 "api_version" : %API_VER%,
2661 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2662 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
2666 {"gateway_balances: 1 hotwallet.",
2668 {
"gateway_balances",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"hotwallet_is_not_validated"},
2671 "method" : "gateway_balances",
2674 "api_version" : %API_VER%,
2675 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2676 "hotwallet" : [ "hotwallet_is_not_validated" ]
2680 {"gateway_balances: 3 hotwallets.",
2684 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
2685 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2686 "hotwallet_is_not_validated_1",
2687 "hotwallet_is_not_validated_2",
2688 "hotwallet_is_not_validated_3",
2692 "method" : "gateway_balances",
2695 "api_version" : %API_VER%,
2696 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
2698 "hotwallet_is_not_validated_1",
2699 "hotwallet_is_not_validated_2",
2700 "hotwallet_is_not_validated_3"
2702 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
2706 {"gateway_balances: too few arguments.",
2713 "method" : "gateway_balances",
2716 "error" : "badSyntax",
2718 "error_message" : "Syntax error."
2722 {"gateway_balances: empty first argument.",
2724 {
"gateway_balances",
""},
2727 "method" : "gateway_balances",
2730 "error" : "invalidParams",
2732 "error_message" : "Invalid first parameter"
2736 {"gateway_balances: with ledger index but no gateway.",
2744 "method" : "gateway_balances",
2747 "error" : "invalidParams",
2749 "error_message" : "Invalid hotwallet"
2753 {"gateway_balances: with text ledger index but no gateway.",
2761 "method" : "gateway_balances",
2764 "error" : "invalidParams",
2766 "error_message" : "Invalid hotwallet"
2770 {"gateway_balances: with 64 character ledger hash but no gateway.",
2774 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
2778 "method" : "gateway_balances",
2781 "error" : "invalidParams",
2783 "error_message" : "Invalid hotwallet"
2790 {
"get_counts: minimal.",
2797 "method" : "get_counts",
2800 "api_version" : %API_VER%,
2804 {"get_counts: with maximum count.",
2806 {
"get_counts",
"100"},
2809 "method" : "get_counts",
2812 "api_version" : %API_VER%,
2817 {"get_counts: too many arguments.",
2819 {
"get_counts",
"100",
"whatever"},
2822 "method" : "get_counts",
2825 "error" : "badSyntax",
2827 "error_message" : "Syntax error."
2831 {"get_counts: count too small.",
2848 R
"({"json_argument":true})",
2852 "method" : "command",
2855 "api_version" : %API_VER%,
2856 "json_argument" : true,
2857 "method" : "command"
2861 {"json: null object.",
2870 "method" : "command",
2873 "api_version" : %API_VER%,
2874 "method" : "command"
2878 {"json: too few arguments.",
2880 {
"json",
"command"},
2886 "error" : "badSyntax",
2888 "error_message" : "Syntax error."
2892 {"json: too many arguments.",
2894 {
"json",
"command", R
"({"json_argument":true})", "extra"},
2900 "error" : "badSyntax",
2902 "error_message" : "Syntax error."
2906 {"json: array, not object.",
2911 R
"(["arg1","arg2"])",
2918 "error" : "invalidParams",
2920 "error_message" : "Invalid parameters."
2924 {"json: invalid json (note closing comma).",
2929 R
"({"json_argument":true,})",
2936 "error" : "invalidParams",
2938 "error_message" : "Invalid parameters."
2945 {
"json2: minimal object.",
2949 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1"})",
2955 "method" : "call_1",
2958 "api_version" : %API_VER%,
2961 "method" : "call_1",
2967 {"json2: object with nested params.",
2973 "ripplerpc" : "2.0",
2975 "method" : "call_1",
2976 "params" : [{"inner_arg" : "yup"}]
2983 "method" : "call_1",
2986 "api_version" : %API_VER%,
2992 "method" : "call_1",
2998 {"json2: minimal array.",
3002 R
"([{"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1"}])",
3010 "api_version" : %API_VER%,
3013 "method" : "call_1",
3019 {"json2: array with object with nested params.",
3028 "params" : [{"inner_arg" : "yup"}]}
3037 "api_version" : %API_VER%,
3043 "method" : "call_1",
3048 {"json2: too few arguments.",
3058 "error" : "badSyntax",
3060 "error_message" : "Syntax error."
3064 {"json2: too many arguments.",
3066 {
"json2", R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_this"})", "extra"},
3072 "error" : "badSyntax",
3074 "error_message" : "Syntax error."
3078 {"json2: malformed json (note extra comma).",
3082 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1",})",
3091 "error" : "invalidParams",
3093 "error_message" : "Invalid parameters.",
3101 {"json2: omit jsonrpc.",
3105 R
"({"ripplerpc":"2.0","id":"A1","method":"call_1"})",
3113 "error" : "invalidParams",
3115 "error_message" : "Invalid parameters.",
3122 {"json2: wrong jsonrpc version.",
3126 R
"({"jsonrpc":"2.1","ripplerpc":"2.0","id":"A1","method":"call_1"})",
3135 "error" : "invalidParams",
3137 "error_message" : "Invalid parameters.",
3145 {"json2: omit ripplerpc.",
3149 R
"({"jsonrpc":"2.0","id":"A1","method":"call_1"})",
3158 "error" : "invalidParams",
3160 "error_message" : "Invalid parameters.",
3166 {"json2: wrong ripplerpc version.",
3170 R
"({"jsonrpc":"2.0","ripplerpc":"2.00","id":"A1","method":"call_1"})",
3179 "error" : "invalidParams",
3181 "error_message" : "Invalid parameters.",
3184 "ripplerpc" : "2.00"
3187 "ripplerpc" : "2.00"
3193 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","method":"call_1"})",
3201 "error" : "invalidParams",
3203 "error_message" : "Invalid parameters.",
3210 {"json2: omit method.",
3214 R
"({"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1"})",
3223 "error" : "invalidParams",
3225 "error_message" : "Invalid parameters.",
3233 {"json2: empty outer array.",
3244 "error" : "invalidParams",
3246 "error_message" : "Invalid parameters."
3250 {"json2: empty inner array.",
3254 R
"([{"jsonrpc":"2.0","ripplerpc":"2.0","id":"A1","method":"call_1",[]}])",
3261 "error" : "invalidParams",
3263 "error_message" : "Invalid parameters."
3267 {"json2: array with non-json2 object.",
3273 "ripplerpc" : "2.0",
3284 "error" : "invalidParams",
3286 "error_message" : "Invalid parameters."
3290 {"json2: non-object or -array inner params member.",
3296 "ripplerpc" : "2.0",
3298 "method" : "call_1",
3309 "error" : "invalidParams",
3311 "error_message" : "Invalid parameters.",
3322 {
"ledger: minimal.",
3327 "method" : "ledger",
3330 "api_version" : %API_VER%,
3334 {"ledger: ledger index.",
3336 {
"ledger",
"4294967295"},
3339 "method" : "ledger",
3342 "api_version" : %API_VER%,
3343 "ledger_index" : 4294967295
3347 {"ledger: text ledger index.",
3349 {
"ledger",
"validated"},
3352 "method" : "ledger",
3355 "api_version" : %API_VER%,
3356 "ledger_index" : "validated"
3360 {"ledger: ledger hash.",
3362 {
"ledger",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
3365 "method" : "ledger",
3368 "api_version" : %API_VER%,
3369 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
3375 {
"ledger",
"current",
"full"},
3378 "method" : "ledger",
3381 "api_version" : %API_VER%,
3383 "ledger_index" : "current"
3389 {
"ledger",
"closed",
"tx"},
3392 "method" : "ledger",
3395 "api_version" : %API_VER%,
3397 "ledger_index" : "closed",
3398 "transactions" : true
3402 {"ledger: too many arguments.",
3404 {
"ledger",
"4294967295",
"spare"},
3407 "method" : "ledger",
3410 "api_version" : %API_VER%,
3411 "ledger_index" : 4294967295
3415 {"ledger: ledger index too small.",
3420 "method" : "ledger",
3423 "api_version" : %API_VER%,
3428 {"ledger: ledger index too big.",
3430 {
"ledger",
"4294967296"},
3433 "method" : "ledger",
3436 "api_version" : %API_VER%,
3441 {"ledger: invalid ledger text.",
3443 {
"ledger",
"latest"},
3446 "method" : "ledger",
3449 "api_version" : %API_VER%,
3454 {"ledger: unsupported final argument.",
3456 {
"ledger",
"current",
"expand"},
3459 "method" : "ledger",
3462 "api_version" : %API_VER%,
3463 "ledger_index" : "current"
3470 {
"ledger_closed: minimal.",
3475 "method" : "ledger_closed",
3478 "api_version" : %API_VER%,
3482 {"ledger_closed: too many arguments.",
3484 {
"ledger_closed",
"today"},
3487 "method" : "ledger_closed",
3490 "error" : "badSyntax",
3492 "error_message" : "Syntax error."
3499 {
"ledger_current: minimal.",
3504 "method" : "ledger_current",
3507 "api_version" : %API_VER%,
3511 {"ledger_current: too many arguments.",
3513 {
"ledger_current",
"today"},
3516 "method" : "ledger_current",
3519 "error" : "badSyntax",
3521 "error_message" : "Syntax error."
3528 {
"ledger_header: ledger index.",
3530 {
"ledger_header",
"4294967295"},
3533 "method" : "ledger_header",
3536 "api_version" : %API_VER%,
3537 "ledger_index" : 4294967295
3541 {"ledger_header: ledger hash.",
3543 {
"ledger_header",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
3546 "method" : "ledger_header",
3549 "api_version" : %API_VER%,
3550 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
3554 {"ledger_header: too few arguments.",
3561 "method" : "ledger_header",
3564 "error" : "badSyntax",
3566 "error_message" : "Syntax error."
3570 {"ledger_header: too many arguments.",
3572 {
"ledger_header",
"4294967295",
"spare"},
3575 "method" : "ledger_header",
3578 "error" : "badSyntax",
3580 "error_message" : "Syntax error."
3584 {"ledger_header: text ledger index.",
3586 {
"ledger_header",
"current"},
3589 "method" : "ledger_header",
3592 "api_version" : %API_VER%,
3597 {"ledger_header: ledger index too small.",
3599 {
"ledger_header",
"-1"},
3602 "method" : "ledger_header",
3605 "api_version" : %API_VER%,
3610 {"ledger_header: ledger index too big.",
3612 {
"ledger_header",
"4294967296"},
3615 "method" : "ledger_header",
3618 "api_version" : %API_VER%,
3626 {
"ledger_request: ledger index.",
3628 {
"ledger_request",
"4294967295"},
3631 "method" : "ledger_request",
3634 "api_version" : %API_VER%,
3635 "ledger_index" : 4294967295
3639 {"ledger_request: ledger hash.",
3641 {
"ledger_request",
"ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"},
3644 "method" : "ledger_request",
3647 "api_version" : %API_VER%,
3648 "ledger_hash" : "ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789"
3652 {"ledger_request: too few arguments.",
3659 "method" : "ledger_request",
3662 "error" : "badSyntax",
3664 "error_message" : "Syntax error."
3668 {"ledger_request: too many arguments.",
3670 {
"ledger_request",
"4294967295",
"spare"},
3673 "method" : "ledger_request",
3676 "error" : "badSyntax",
3678 "error_message" : "Syntax error."
3682 {"ledger_request: text ledger index.",
3684 {
"ledger_request",
"current"},
3687 "method" : "ledger_request",
3690 "api_version" : %API_VER%,
3695 {"ledger_request: ledger index too small.",
3697 {
"ledger_request",
"-1"},
3700 "method" : "ledger_request",
3703 "api_version" : %API_VER%,
3708 {"ledger_request: ledger index too big.",
3710 {
"ledger_request",
"4294967296"},
3713 "method" : "ledger_request",
3716 "api_version" : %API_VER%,
3724 {
"log_level: minimal.",
3731 "method" : "log_level",
3734 "api_version" : %API_VER%,
3738 {"log_level: fatal.",
3740 {
"log_level",
"fatal"},
3743 "method" : "log_level",
3746 "api_version" : %API_VER%,
3747 "severity" : "fatal"
3751 {"log_level: error.",
3753 {
"log_level",
"error"},
3756 "method" : "log_level",
3759 "api_version" : %API_VER%,
3760 "severity" : "error"
3764 {"log_level: warn.",
3766 {
"log_level",
"warn"},
3769 "method" : "log_level",
3772 "api_version" : %API_VER%,
3777 {"log_level: debug.",
3779 {
"log_level",
"debug"},
3782 "method" : "log_level",
3785 "api_version" : %API_VER%,
3786 "severity" : "debug"
3790 {"log_level: trace.",
3792 {
"log_level",
"trace"},
3795 "method" : "log_level",
3798 "api_version" : %API_VER%,
3799 "severity" : "trace"
3803 {"log_level: base partition.",
3805 {
"log_level",
"base",
"trace"},
3808 "method" : "log_level",
3811 "api_version" : %API_VER%,
3812 "partition" : "base",
3813 "severity" : "trace"
3817 {"log_level: partition_name.",
3819 {
"log_level",
"partition_name",
"fatal"},
3822 "method" : "log_level",
3825 "api_version" : %API_VER%,
3826 "partition" : "partition_name",
3827 "severity" : "fatal"
3831 {"log_level: too many arguments.",
3833 {
"log_level",
"partition_name",
"fatal",
"extra"},
3836 "method" : "log_level",
3839 "error" : "badSyntax",
3841 "error_message" : "Syntax error."
3845 {"log_level: invalid severity.",
3847 {
"log_level",
"err"},
3850 "method" : "log_level",
3853 "api_version" : %API_VER%,
3858 {"log_level: swap partition name and severity.",
3867 "method" : "log_level",
3870 "api_version" : %API_VER%,
3871 "partition" : "fatal",
3872 "severity" : "partition_name"
3879 {
"logrotate: minimal.",
3886 "method" : "logrotate",
3889 "api_version" : %API_VER%,
3893 {"logrotate: too many arguments.",
3895 {
"logrotate",
"extra"},
3898 "method" : "logrotate",
3901 "error" : "badSyntax",
3903 "error_message" : "Syntax error."
3910 {
"owner_info: minimal.",
3912 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"},
3915 "method" : "owner_info",
3918 "api_version" : %API_VER%,
3919 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh"
3923 {"owner_info: with numeric ledger index.",
3925 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"987654321"},
3928 "method" : "owner_info",
3931 "api_version" : %API_VER%,
3932 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3933 "ledger_index" : 987654321
3937 {"owner_info: with text ledger index.",
3939 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
3942 "method" : "owner_info",
3945 "api_version" : %API_VER%,
3946 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3947 "ledger_index" : "validated"
3951 {"owner_info: with ledger hash.",
3954 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3955 "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"},
3958 "method" : "owner_info",
3961 "api_version" : %API_VER%,
3962 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3963 "ledger_hash" : "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"
3967 {"owner_info: with ledger index.",
3969 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"validated"},
3972 "method" : "owner_info",
3975 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
3976 "api_version" : %API_VER%,
3977 "ledger_index" : "validated"
3981 {"owner_info: too few arguments.",
3988 "method" : "owner_info",
3991 "error" : "badSyntax",
3993 "error_message" : "Syntax error."
3997 {"owner_info: too many arguments.",
4001 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4008 "method" : "owner_info",
4011 "error" : "badSyntax",
4013 "error_message" : "Syntax error."
4018 "owner_info: invalid accountID.",
4026 "method" : "owner_info",
4029 "error" : "actMalformed",
4031 "error_message" : "Account malformed."
4039 "owner_info: invalid ledger selection.",
4041 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
4044 "method" : "owner_info",
4047 "api_version" : %API_VER%,
4048 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4057 "owner_info: invalid ledger selection.",
4059 {
"owner_info",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"no_ledger"},
4062 "method" : "owner_info",
4065 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4066 "api_version" : %API_VER%,
4085 "api_version" : %API_VER%,
4089 {"peers: too many arguments.",
4097 "error" : "badSyntax",
4099 "error_message" : "Syntax error."
4106 {
"peer_reservations_add: minimal.",
4108 {
"peer_reservations_add",
"public_key_string"},
4111 "method" : "peer_reservations_add",
4114 "api_version" : %API_VER%,
4115 "public_key" : "public_key_string"
4119 {"peer_reservations_add: with description.",
4121 {
"peer_reservations_add",
"public_key_string",
"public_key_description"},
4124 "method" : "peer_reservations_add",
4127 "api_version" : %API_VER%,
4128 "description" : "public_key_description",
4129 "public_key" : "public_key_string"
4133 {"peer_reservations_add: too few arguments.",
4135 {
"peer_reservations_add"},
4138 "method" : "peer_reservations_add",
4141 "error" : "badSyntax",
4143 "error_message" : "Syntax error."
4147 {"peer_reservations_add: too many arguments.",
4149 {
"peer_reservations_add",
"public_key_string",
"public_key_description",
"spare"},
4152 "method" : "peer_reservations_add",
4155 "error" : "badSyntax",
4157 "error_message" : "Syntax error."
4164 {
"peer_reservations_del: minimal.",
4166 {
"peer_reservations_del",
"public_key_string"},
4169 "method" : "peer_reservations_del",
4172 "api_version" : %API_VER%,
4173 "public_key" : "public_key_string"
4177 {"peer_reservations_del: too few arguments.",
4179 {
"peer_reservations_del"},
4182 "method" : "peer_reservations_del",
4185 "error" : "badSyntax",
4187 "error_message" : "Syntax error."
4191 {"peer_reservations_del: too many arguments.",
4193 {
"peer_reservations_del",
"public_key_string",
"public_key_description",
"spare"},
4196 "method" : "peer_reservations_del",
4199 "error" : "badSyntax",
4201 "error_message" : "Syntax error."
4218 "api_version" : %API_VER%,
4222 {"ping: too many arguments.",
4230 "error" : "badSyntax",
4232 "error_message" : "Syntax error."
4249 "api_version" : %API_VER%,
4254 "print: extra argument.",
4262 "api_version" : %API_VER%,
4263 "params" : [ "extra" ]
4267 {"print: too many arguments.",
4269 {
"print",
"extra1",
"extra2"},
4275 "error" : "badSyntax",
4277 "error_message" : "Syntax error."
4284 {
"random: minimal.",
4291 "method" : "random",
4294 "api_version" : %API_VER%,
4298 {"random: too many arguments.",
4300 {
"random",
"extra"},
4303 "method" : "random",
4306 "error" : "badSyntax",
4308 "error_message" : "Syntax error."
4315 {
"ripple_path_find: minimal.",
4319 R
"({"json_argument":true})",
4323 "method" : "ripple_path_find",
4326 "api_version" : %API_VER%,
4327 "json_argument" : true
4331 {"ripple_path_find: ledger index.",
4333 {
"ripple_path_find", R
"({"json_argument":true})", "4294967295"},
4336 "method" : "ripple_path_find",
4339 "api_version" : %API_VER%,
4340 "json_argument" : true,
4341 "ledger_index" : 4294967295
4345 {"ripple_path_find: text ledger index.",
4347 {
"ripple_path_find", R
"({"json_argument":true})", "closed"},
4350 "method" : "ripple_path_find",
4353 "api_version" : %API_VER%,
4354 "json_argument" : true,
4355 "ledger_index" : "closed"
4359 {"ripple_path_find: ledger hash.",
4361 {
"ripple_path_find",
4362 R
"({"json_argument":true})",
4363 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"},
4366 "method" : "ripple_path_find",
4369 "api_version" : %API_VER%,
4370 "json_argument" : true,
4371 "ledger_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
4376 {"ripple_path_find: too few arguments.",
4383 "method" : "ripple_path_find",
4386 "error" : "badSyntax",
4388 "error_message" : "Syntax error."
4392 {"ripple_path_find: too many arguments.",
4394 {
"ripple_path_find", R
"({"json_argument":true})", "current",
"extra"},
4397 "method" : "ripple_path_find",
4400 "error" : "badSyntax",
4402 "error_message" : "Syntax error."
4406 {"ripple_path_find: invalid json (note extra comma).",
4410 R
"({"json_argument":true,})",
4414 "method" : "ripple_path_find",
4417 "error" : "invalidParams",
4419 "error_message" : "Invalid parameters."
4423 {"ripple_path_find: ledger index too small.",
4425 {
"ripple_path_find", R
"({"json_argument":true})", "-1"},
4428 "method" : "ripple_path_find",
4431 "api_version" : %API_VER%,
4432 "json_argument" : true,
4437 {"ripple_path_find: ledger index too big.",
4439 {
"ripple_path_find", R
"({"json_argument":true})", "4294967296"},
4442 "method" : "ripple_path_find",
4445 "api_version" : %API_VER%,
4446 "json_argument" : true,
4451 {"ripple_path_find: invalid text ledger index.",
4453 {
"ripple_path_find", R
"({"json_argument":true})", "cur"},
4456 "method" : "ripple_path_find",
4459 "api_version" : %API_VER%,
4460 "json_argument" : true,
4473 R
"({"json_argument":true})",
4480 "api_version" : %API_VER%,
4481 "secret" : "my_secret",
4483 "json_argument" : true
4490 {
"sign",
"my_secret", R
"({"json_argument":true})", "offline"},
4496 "api_version" : %API_VER%,
4498 "secret" : "my_secret",
4500 "json_argument" : true
4505 {"sign: too few arguments.",
4507 {
"sign",
"contents_of_blob"},
4513 "error" : "badSyntax",
4515 "error_message" : "Syntax error."
4519 {"sign: offline flag with signature_target.",
4521 {
"sign",
"my_secret", R
"({"json_argument":true})", "offline",
"extra"},
4527 "api_version" : %API_VER%,
4529 "secret" : "my_secret",
4530 "signature_target" : "extra",
4533 "json_argument" : true
4538 {"sign: too many arguments.",
4540 {
"sign",
"my_secret", R
"({"json_argument":true})", "offline",
"CounterpartySignature",
"extra"},
4546 "error" : "badSyntax",
4548 "error_message" : "Syntax error."
4552 {"sign: invalid JSON (note extra comma).",
4557 R
"({"json_argument":true,})",
4564 "error" : "invalidParams",
4566 "error_message" : "Invalid parameters."
4570 {"sign: misspelled offline flag interpreted as signature_target.",
4572 {
"sign",
"my_secret", R
"({"json_argument":true})", "offlin"},
4578 "api_version" : %API_VER%,
4579 "secret" : "my_secret",
4580 "signature_target" : "offlin",
4583 "json_argument" : true
4591 {
"sign_for: minimal.",
4595 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4597 R
"({"json_argument":true})",
4601 "method" : "sign_for",
4604 "api_version" : %API_VER%,
4605 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4606 "secret" : "my_secret",
4608 "json_argument" : true
4613 {"sign_for: offline.",
4615 {
"sign_for",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"my_secret", R
"({"json_argument":true})", "offline"},
4618 "method" : "sign_for",
4621 "api_version" : %API_VER%,
4622 "account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4624 "secret" : "my_secret",
4626 "json_argument" : true
4631 {"sign_for: too few arguments.",
4635 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4640 "method" : "sign_for",
4643 "error" : "badSyntax",
4645 "error_message" : "Syntax error."
4649 {"sign_for: too many arguments.",
4651 {
"sign_for",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"my_secret", R
"({"json_argument":true})", "offline",
"extra"},
4654 "method" : "sign_for",
4657 "error" : "badSyntax",
4659 "error_message" : "Syntax error."
4663 {"sign_for: invalid json (note extra comma).",
4667 "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
4669 R
"({"json_argument":true,})",
4673 "method" : "sign_for",
4676 "error" : "invalidParams",
4678 "error_message" : "Invalid parameters."
4682 {"sign_for: invalid final argument.",
4684 {
"sign_for",
"rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
"my_secret", R
"({"json_argument":true})", "ofline"},
4687 "method" : "sign_for",
4690 "error" : "invalidParams",
4692 "error_message" : "Invalid parameters."
4701 {
"submit",
"the blob is unvalidated and may be any length..."},
4704 "method" : "submit",
4707 "api_version" : %API_VER%,
4708 "tx_blob" : "the blob is unvalidated and may be any length..."
4717 R
"({"json_argument":true})",
4721 "method" : "submit",
4724 "api_version" : %API_VER%,
4725 "secret" : "my_secret",
4727 "json_argument" : true
4732 {"submit: too few arguments.",
4739 "method" : "submit",
4742 "error" : "badSyntax",
4744 "error_message" : "Syntax error."
4749 "submit: four arguments.",
4751 {
"submit",
"my_secret", R
"({"json_argument":true})", "offline"},
4754 "method" : "submit",
4757 "api_version" : %API_VER%,
4759 "secret" : "my_secret",
4761 "json_argument" : true
4766 {"submit: offline flag with signature_target.",
4768 {
"submit",
"my_secret", R
"({"json_argument":true})", "offline",
"extra"},
4771 "method" : "submit",
4774 "api_version" : %API_VER%,
4776 "secret" : "my_secret",
4777 "signature_target" : "extra",
4780 "json_argument" : true
4785 {"submit: too many arguments.",
4787 {
"submit",
"my_secret", R
"({"json_argument":true})", "offline",
"CounterpartySignature",
"extra"},
4790 "method" : "submit",
4793 "error" : "badSyntax",
4795 "error_message" : "Syntax error."
4799 {"submit: invalid json (note extra comma).",
4804 R
"({"json_argument":true,})",
4808 "method" : "submit",
4811 "error" : "invalidParams",
4813 "error_message" : "Invalid parameters."
4817 {"submit: misspelled offline flag interpreted as signature_target.",
4819 {
"submit",
"my_secret", R
"({"json_argument":true})", "offlne"},
4822 "method" : "submit",
4825 "api_version" : %API_VER%,
4826 "secret" : "my_secret",
4827 "signature_target" : "offlne",
4830 "json_argument" : true
4838 {
"submit_multisigned: json.",
4841 "submit_multisigned",
4842 R
"({"json_argument":true})",
4846 "method" : "submit_multisigned",
4849 "api_version" : %API_VER%,
4851 "json_argument" : true
4856 {"submit_multisigned: too few arguments.",
4859 "submit_multisigned",
4863 "method" : "submit_multisigned",
4866 "error" : "badSyntax",
4868 "error_message" : "Syntax error."
4872 {"submit_multisigned: too many arguments.",
4874 {
"submit_multisigned", R
"({"json_argument":true})", "extra"},
4877 "method" : "submit_multisigned",
4880 "error" : "badSyntax",
4882 "error_message" : "Syntax error."
4886 {"submit_multisigned: invalid json (note extra comma).",
4889 "submit_multisigned",
4890 R
"({"json_argument":true,})",
4894 "method" : "submit_multisigned",
4897 "error" : "invalidParams",
4899 "error_message" : "Invalid parameters."
4907 {
"server_info: minimal.",
4914 "method" : "server_info",
4917 "api_version" : %API_VER%,
4921 {"server_info: counters.",
4923 {
"server_info",
"counters"},
4926 "method" : "server_info",
4929 "api_version" : %API_VER%,
4934 {"server_info: too many arguments.",
4936 {
"server_info",
"counters",
"extra"},
4939 "method" : "server_info",
4942 "error" : "badSyntax",
4944 "error_message" : "Syntax error."
4948 {"server_info: non-counters argument.",
4950 {
"server_info",
"counter"},
4953 "method" : "server_info",
4956 "api_version" : %API_VER%,
4963 {
"server_state: minimal.",
4970 "method" : "server_state",
4973 "api_version" : %API_VER%,
4977 {"server_state: counters.",
4979 {
"server_state",
"counters"},
4982 "method" : "server_state",
4985 "api_version" : %API_VER%,
4990 {"server_state: too many arguments.",
4992 {
"server_state",
"counters",
"extra"},
4995 "method" : "server_state",
4998 "error" : "badSyntax",
5000 "error_message" : "Syntax error."
5004 {"server_state: non-counters argument.",
5006 {
"server_state",
"counter"},
5009 "method" : "server_state",
5012 "api_version" : %API_VER%,
5029 "api_version" : %API_VER%,
5033 {"stop: too many arguments.",
5041 "error" : "badSyntax",
5043 "error_message" : "Syntax error."
5050 {
"transaction_entry: ledger index.",
5052 {
"transaction_entry",
"0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
"4294967295"},
5055 "method" : "transaction_entry",
5058 "api_version" : %API_VER%,
5059 "ledger_index" : 4294967295,
5060 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5064 {"transaction_entry: text ledger index.",
5066 {
"transaction_entry",
"0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
"current"},
5069 "method" : "transaction_entry",
5072 "api_version" : %API_VER%,
5073 "ledger_index" : "current",
5074 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5078 {"transaction_entry: ledger hash.",
5080 {
"transaction_entry",
5081 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5082 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210"},
5085 "method" : "transaction_entry",
5088 "api_version" : %API_VER%,
5089 "ledger_hash" : "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210",
5090 "tx_hash" : "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV"
5094 {"transaction_entry: too few arguments.",
5097 "transaction_entry",
5098 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5102 "method" : "transaction_entry",
5105 "error" : "badSyntax",
5107 "error_message" : "Syntax error."
5111 {"transaction_entry: too many arguments.",
5113 {
"transaction_entry",
"0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
"validated",
"extra"},
5116 "method" : "transaction_entry",
5119 "error" : "badSyntax",
5121 "error_message" : "Syntax error."
5125 {"transaction_entry: short tx_hash.",
5128 "transaction_entry",
5129 "123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5134 "method" : "transaction_entry",
5137 "error" : "invalidParams",
5139 "error_message" : "Invalid parameters."
5143 {"transaction_entry: long tx_hash.",
5146 "transaction_entry",
5147 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUVW",
5152 "method" : "transaction_entry",
5155 "error" : "invalidParams",
5157 "error_message" : "Invalid parameters."
5161 {"transaction_entry: small ledger index.",
5164 "transaction_entry",
5165 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5170 "method" : "transaction_entry",
5173 "error" : "invalidParams",
5175 "error_message" : "Invalid parameters."
5179 {"transaction_entry: large ledger index.",
5182 "transaction_entry",
5183 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5188 "method" : "transaction_entry",
5191 "error" : "invalidParams",
5193 "error_message" : "Invalid parameters."
5197 {"transaction_entry: short ledger hash.",
5200 "transaction_entry",
5201 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5202 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA987654321",
5206 "method" : "transaction_entry",
5209 "error" : "invalidParams",
5211 "error_message" : "Invalid parameters."
5215 {"transaction_entry: long ledger hash.",
5218 "transaction_entry",
5219 "0123456789ABCDEFGHIJKLMNOPQRSTUV0123456789ABCDEFGHIJKLMNOPQRSTUV",
5220 "VUTSRQPONMLKJIHGFEDCBA9876543210VUTSRQPONMLKJIHGFEDCBA9876543210Z",
5224 "method" : "transaction_entry",
5227 "error" : "invalidParams",
5229 "error_message" : "Invalid parameters."
5236 {
"tx: ctid. minimal",
5238 {
"tx",
"FFFFFFFFFFFFFFFF",
"1",
"2"},
5244 "api_version" : %API_VER%,
5245 "ctid" : "FFFFFFFFFFFFFFFF",
5251 {"tx: ctid. binary",
5253 {
"tx",
"FFFFFFFFFFFFFFFF",
"binary",
"1",
"2"},
5259 "api_version" : %API_VER%,
5261 "ctid" : "FFFFFFFFFFFFFFFF",
5269 {
"tx",
"transaction_hash_is_not_validated"},
5275 "api_version" : %API_VER%,
5276 "transaction" : "transaction_hash_is_not_validated"
5282 {
"tx",
"transaction_hash_is_not_validated",
"binary"},
5288 "api_version" : %API_VER%,
5290 "transaction" : "transaction_hash_is_not_validated"
5294 {"tx: too few arguments.",
5304 "error" : "badSyntax",
5306 "error_message" : "Syntax error."
5310 {"tx: too many arguments.",
5312 {
"tx",
"transaction_hash_is_not_validated",
"binary",
"1",
"2",
"extra"},
5318 "error" : "badSyntax",
5320 "error_message" : "Syntax error."
5324 {"tx: invalid final argument is apparently ignored.",
5326 {
"tx",
"transaction_hash_is_not_validated",
"bin"},
5332 "api_version" : %API_VER%,
5333 "transaction" : "transaction_hash_is_not_validated"
5340 {
"tx_history: minimal.",
5342 {
"tx_history",
"0"},
5345 "method" : "tx_history",
5348 "api_version" : %API_VER%,
5353 {"tx_history: too few arguments.",
5360 "method" : "tx_history",
5363 "error" : "badSyntax",
5365 "error_message" : "Syntax error."
5369 {"tx_history: too many arguments.",
5371 {
"tx_history",
"0",
"1"},
5374 "method" : "tx_history",
5377 "error" : "badSyntax",
5379 "error_message" : "Syntax error."
5385 "tx_history: start too small.",
5387 {
"tx_history",
"-1"},
5393 "tx_history: start too big.",
5395 {
"tx_history",
"4294967296"},
5401 "tx_history: start not integer.",
5403 {
"tx_history",
"beginning"},
5410 {
"unl_list: minimal.",
5417 "method" : "unl_list",
5420 "api_version" : %API_VER%,
5424 {"unl_list: too many arguments.",
5426 {
"unl_list",
"extra"},
5429 "method" : "unl_list",
5432 "error" : "badSyntax",
5434 "error_message" : "Syntax error."
5441 {
"validation_create: minimal.",
5444 "validation_create",
5448 "method" : "validation_create",
5451 "api_version" : %API_VER%,
5455 {"validation_create: with secret.",
5457 {
"validation_create",
"the form of the secret is not validated"},
5460 "method" : "validation_create",
5463 "api_version" : %API_VER%,
5464 "secret" : "the form of the secret is not validated"
5468 {"validation_create: too many arguments.",
5470 {
"validation_create",
"the form of the secret is not validated",
"extra"},
5473 "method" : "validation_create",
5476 "error" : "badSyntax",
5478 "error_message" : "Syntax error."
5485 {
"version: minimal.",
5492 "method" : "version",
5495 "api_version" : %API_VER%,
5499 {"version: too many arguments.",
5501 {
"version",
"extra"},
5504 "method" : "version",
5507 "error" : "badSyntax",
5509 "error_message" : "Syntax error."
5516 {
"wallet_propose: minimal.",
5523 "method" : "wallet_propose",
5526 "api_version" : %API_VER%,
5530 {"wallet_propose: with passphrase.",
5532 {
"wallet_propose",
"the form of the passphrase is not validated"},
5535 "method" : "wallet_propose",
5538 "api_version" : %API_VER%,
5539 "passphrase" : "the form of the passphrase is not validated"
5543 {"wallet_propose: too many arguments.",
5545 {
"wallet_propose",
"the form of the passphrase is not validated",
"extra"},
5548 "method" : "wallet_propose",
5551 "error" : "badSyntax",
5553 "error_message" : "Syntax error."
5560 {
"internal: minimal.",
5562 {
"internal",
"command_name"},
5565 "method" : "internal",
5568 "api_version" : %API_VER%,
5569 "internal_command" : "command_name",
5574 {"internal: with parameters.",
5576 {
"internal",
"command_name",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
5579 "method" : "internal",
5582 "api_version" : %API_VER%,
5583 "internal_command" : "command_name",
5584 "params" : [ "string_arg", "1", "-1", "4294967296", "3.14159" ]
5588 {"internal: too few arguments.",
5595 "method" : "internal",
5598 "error" : "badSyntax",
5600 "error_message" : "Syntax error."
5607 {
"path_find: minimal.",
5614 "method" : "path_find",
5617 "error" : "noEvents",
5619 "error_message" : "Current transport does not support events."
5623 {"path_find: with arguments.",
5625 {
"path_find",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
5628 "method" : "path_find",
5631 "error" : "noEvents",
5633 "error_message" : "Current transport does not support events."
5640 {
"subscribe: minimal.",
5647 "method" : "subscribe",
5650 "error" : "noEvents",
5652 "error_message" : "Current transport does not support events."
5656 {"subscribe: with arguments.",
5658 {
"subscribe",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
5661 "method" : "subscribe",
5664 "error" : "noEvents",
5666 "error_message" : "Current transport does not support events."
5673 {
"unsubscribe: minimal.",
5680 "method" : "unsubscribe",
5683 "error" : "noEvents",
5685 "error_message" : "Current transport does not support events."
5689 {"unsubscribe: with arguments.",
5691 {
"unsubscribe",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
5694 "method" : "unsubscribe",
5697 "error" : "noEvents",
5699 "error_message" : "Current transport does not support events."
5706 {
"unknown_command: minimal.",
5713 "method" : "unknown_command",
5716 "api_version" : %API_VER%,
5720 {"unknown_command: with arguments.",
5722 {
"unknown_command",
"string_arg",
"1",
"-1",
"4294967296",
"3.14159"},
5725 "method" : "unknown_command",
5728 "api_version" : %API_VER%,
5729 "params" : [ "string_arg", "1", "-1", "4294967296", "3.14159" ]
5739 static auto const place_holder =
"%API_VER%";
5741 boost::replace_all(jr, place_holder, version_str);
5748 using namespace test::jtx;
5750 cfg->NETWORK_ID = networkID;
5761 testcase <<
"RPCCall API version " << apiVersion;
5770 if (!BEAST_EXPECT(!rpcCallTest.exp.empty()))
5777 : rpcCallTest.exp.back();
5794 fail(rpcCallTest.description, __FILE__, rpcCallTest.line);
5806 if (
json.isMember(jss::params) &&
json[jss::params].isArray() &&
json[jss::params].size() > 0 &&
5807 json[jss::params][0u].isObject())
5809 json[jss::params][0u].removeMember(jss::error_code);
5822 fail(rpcCallTest.description, __FILE__, rpcCallTest.line);
Unserialize a JSON document into a Value.
bool parse(std::string const &document, Value &root)
Read a Value from a JSON document.
void pass()
Record a successful test condition.
testcase_t testcase
Memberspace for declaring test cases.
void fail(String const &reason, char const *file, int line)
Record a failure.
void run() override
Runs the suite.
void testRPCCall(unsigned apiVersion)
A transaction testing environment.
beast::Journal const journal
Set the expected result code for a JTx The test will fail if the code doesn't match.
static constexpr auto apiMinimumSupportedVersion
static constexpr auto apiMaximumValidVersion
Json::Value cmdToJSONRPC(std::vector< std::string > const &args, beast::Journal j, unsigned int apiVersion)
Given a rippled unit test rpc command, return the corresponding JSON.
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
std::unique_ptr< Config > makeNetworkConfig(uint32_t networkID)
static RPCCallTestData const rpcCallTestArray[]
std::string updateAPIVersionString(char const *const req, unsigned apiVersion)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void forAllApiVersions(Fn const &fn, Args &&... args)
std::vector< char const * > exp
RPCCallTestData & operator=(RPCCallTestData &&)=delete
RPCCallTestData(char const *description_, int line_, std::initializer_list< char const * > const &args_, Exception throwsWhat_, std::initializer_list< char const * > exp_)
RPCCallTestData(char const *description_, int line_, std::initializer_list< char const * > const &args_, Exception throwsWhat_, 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