This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
/
wallet_api.json
2488 lines (2482 loc) · 89.2 KB
/
wallet_api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"category": "Wallet Methods",
"methods" :
[
{
"method_name": "wallet_get_info",
"description": "Extra information about the wallet.",
"return_type": "json_object",
"parameters" :
[
],
"prerequisites" : ["json_authenticated"]
},
{
"method_name": "wallet_open",
"description": "Opens the wallet of the given name",
"return_type": "void",
"parameters" :
[
{
"name" : "wallet_name",
"type" : "wallet_name",
"description" : "the name of the wallet to open"
}
],
"prerequisites" : ["json_authenticated"],
"aliases" : ["open"]
},
{
"method_name": "wallet_create",
"description": "Creates a wallet with the given name",
"return_type": "void",
"parameters" :
[
{
"name" : "wallet_name",
"type" : "wallet_name",
"description" : "name of the wallet to create"
},
{
"name" : "new_passphrase",
"type" : "new_passphrase",
"description" : "a passphrase for encrypting the wallet"
},
{
"name" : "brain_key",
"type" : "brainkey",
"description" : "a strong passphrase that will be used to generate all private keys, defaults to a large random number",
"default_value" : ""
}
],
"prerequisites" : ["json_authenticated"],
"aliases" : ["create"]
},
{
"method_name": "wallet_get_name",
"description": "Returns the wallet name passed to wallet_open",
"return_type": "optional_wallet_name",
"parameters" : [],
"is_const" : true,
"prerequisites" : ["no_prerequisites"]
},
{
"method_name": "wallet_import_private_key",
"description": "Loads the private key into the specified account. Returns which account it was actually imported to.",
"return_type": "account_name",
"parameters" : [
{
"name" : "wif_key",
"type" : "wif_private_key",
"description" : "A private key in bitcoin Wallet Import Format (WIF)"
},
{
"name" : "account_name",
"type" : "account_name",
"description" : "the name of the account the key should be imported into, if null then the key must belong to an active account",
"default_value" : null
},
{
"name" : "create_new_account",
"type" : "bool",
"description" : "If true, the wallet will attempt to create a new account for the name provided rather than import the key into an existing account",
"default_value" : false
},
{
"name" : "rescan",
"type" : "bool",
"description" : "If true, the wallet will rescan the blockchain looking for transactions that involve this private key",
"default_value" : false
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["import_key", "importprivkey"]
},
{
"method_name": "wallet_import_bitcoin",
"description": "Imports a Bitcoin Core or BitShares PTS wallet",
"return_type": "uint32_t",
"parameters" : [
{
"name" : "wallet_filename",
"type" : "filename",
"description" : "the Bitcoin/PTS wallet file path"
},
{
"name" : "passphrase",
"type" : "passphrase",
"description" : "the imported wallet's password"
},
{
"name" : "account_name",
"type" : "account_name",
"description" : "the account to receive the contents of the wallet"
}
],
"prerequisites" : ["wallet_unlocked"]
},
{
"method_name": "wallet_import_electrum",
"description": "Imports an Electrum wallet",
"return_type": "uint32_t",
"parameters" : [
{
"name" : "wallet_filename",
"type" : "filename",
"description" : "the Electrum wallet file path"
},
{
"name" : "passphrase",
"type" : "passphrase",
"description" : "the imported wallet's password"
},
{
"name" : "account_name",
"type" : "account_name",
"description" : "the account to receive the contents of the wallet"
}
],
"prerequisites" : ["wallet_unlocked"]
},
{
"method_name": "wallet_import_keyhotee",
"description": "Create the key from keyhotee config and import it to the wallet, creating a new account using this key",
"return_type": "void",
"parameters" : [
{
"name" : "firstname",
"type" : "name",
"description" : "first name in keyhotee profile config, for salting the seed of private key"
},
{
"name" : "middlename",
"type" : "name",
"description" : "middle name in keyhotee profile config, for salting the seed of private key"
},
{
"name" : "lastname",
"type" : "name",
"description" : "last name in keyhotee profile config, for salting the seed of private key"
},
{
"name" : "brainkey",
"type" : "brainkey",
"description" : "brainkey in keyhotee profile config, for salting the seed of private key"
},
{
"name" : "keyhoteeid",
"type" : "keyhoteeid",
"description" : "using keyhotee id as account name"
}
],
"prerequisites" : ["wallet_unlocked"]
},
{
"method_name": "wallet_close",
"description": "Closes the curent wallet if one is open",
"return_type": "void",
"parameters" : [],
"prerequisites" : ["no_prerequisites"],
"aliases" : ["close"]
},
{
"method_name": "wallet_backup_create",
"description": "Exports the current wallet to a JSON file",
"return_type": "void",
"parameters" :
[
{
"name" : "json_filename",
"type" : "filename",
"description" : "the full path and filename of JSON file to generate",
"example" : "/path/to/exported_wallet.json"
}
],
"is_const" : true,
"prerequisites" : ["wallet_open"],
"aliases" : ["backupwallet", "wallet_export_to_json"]
},
{
"method_name": "wallet_backup_restore",
"description": "Creates a new wallet from an exported JSON file",
"return_type": "void",
"parameters" :
[
{
"name" : "json_filename",
"type" : "filename",
"description" : "the full path and filename of JSON wallet to import",
"example" : "/path/to/exported_wallet.json"
},
{
"name" : "wallet_name",
"type" : "wallet_name",
"description" : "name of the wallet to create"
},
{
"name" : "imported_wallet_passphrase",
"type" : "passphrase",
"description" : "passphrase of the imported wallet"
}
],
"prerequisites" : ["json_authenticated"],
"aliases" : ["wallet_create_from_json"]
},
{
"method_name": "wallet_set_automatic_backups",
"description": "Enables or disables automatic wallet backups",
"return_type": "bool",
"parameters" :
[
{
"name" : "enabled",
"type" : "bool",
"description" : "true to enable and false to disable"
}
],
"prerequisites" : ["wallet_open"],
"aliases" : ["auto_backup", "autobackup"]
},
{
"method_name": "wallet_set_transaction_expiration_time",
"description": "Set transaction expiration time",
"return_type": "uint32_t",
"parameters" :
[
{
"name" : "seconds",
"type" : "uint32_t",
"description" : "seconds before new transactions expire"
}
],
"prerequisites" : ["wallet_open"],
"aliases" : ["set_expiration"]
},
{
"method_name": "wallet_account_transaction_history",
"description": "Lists transaction history for the specified account",
"return_type": "pretty_transactions",
"parameters" :
[
{
"name" : "account_name",
"type" : "string",
"description" : "the name of the account for which the transaction history will be returned, \"\" for all accounts",
"example" : "alice",
"default_value" : ""
},
{
"name" : "asset_symbol",
"type" : "string",
"description" : "only include transactions involving the specified asset, or \"\" to include all",
"default_value" : ""
},
{
"name" : "limit",
"type" : "int32_t",
"description" : "limit the number of returned transactions; negative for most recent and positive for least recent. 0 does not limit",
"default_value" : 0
},
{
"name" : "start_block_num",
"type" : "uint32_t",
"description" : "the earliest block number to list transactions from; 0 to include all transactions starting from genesis",
"default_value" : 0
},
{
"name" : "end_block_num",
"type" : "uint32_t",
"description" : "the latest block to list transaction from; -1 to include all transactions ending at the head block",
"default_value" : -1
}
],
"prerequisites" : ["wallet_open"],
"is_const": true,
"aliases" : ["history", "listtransactions"]
},
{
"method_name": "wallet_transaction_history_experimental",
"description": "",
"return_type": "experimental_transactions",
"parameters" :
[
{
"name" : "account_name",
"type" : "string",
"description" : "the name of the account for which the transaction history will be returned, \"\" for all accounts",
"example" : "alice",
"default_value" : ""
}
],
"prerequisites" : ["wallet_unlocked"],
"is_const": true,
"aliases" : ["hx"]
},
{
"method_name": "wallet_check_sharedrop",
"description": "",
"return_type": "snapshot_record_list",
"parameters" : [],
"prerequisites" : ["wallet_open"],
"is_const": true
},
{
"method_name": "wallet_remove_transaction",
"description": "Removes the specified transaction record from your transaction history. USE WITH CAUTION! Rescan cannot reconstruct all transaction details",
"return_type": "void",
"parameters" :
[
{
"name" : "transaction_id",
"type" : "string",
"description" : "the id (or id prefix) of the transaction record"
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["remove_transaction", "wallet_transaction_remove"]
},
{
"method_name": "wallet_get_pending_transaction_errors",
"description": "Return any errors for your currently pending transactions",
"return_type": "map<transaction_id_type, fc::exception>",
"parameters" :
[
{
"name" : "filename",
"type" : "string",
"description" : "filename to save pending transaction errors to",
"default_value" : ""
}
],
"prerequisites" : ["wallet_open"],
"is_const": true,
"aliases" : []
},
{
"method_name": "wallet_lock",
"description": "Lock the private keys in wallet, disables spending commands until unlocked",
"return_type": "void",
"parameters" : [],
"prerequisites" : ["wallet_open"],
"aliases" : ["lock"]
},
{
"method_name": "wallet_unlock",
"description": "Unlock the private keys in the wallet to enable spending operations",
"return_type": "void",
"parameters" :
[
{
"name" : "timeout",
"type" : "uint32_t",
"description" : "the number of seconds to keep the wallet unlocked"
},
{
"name" : "passphrase",
"type" : "passphrase",
"description" : "the passphrase for encrypting the wallet"
}
],
"prerequisites" : ["wallet_open"],
"aliases" : ["unlock", "walletpassphrase"]
},
{
"method_name": "wallet_change_passphrase",
"description": "Change the password of the current wallet",
"return_type": "void",
"parameters" :
[
{
"name" : "passphrase",
"type" : "passphrase",
"description" : "the passphrase for encrypting the wallet"
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["walletpassphrasechange"],
"detailed_description" : "This will change the wallet's spending passphrase, please make sure you remember it."
},
{
"method_name": "wallet_list",
"description": "Return a list of wallets in the current data directory",
"return_type": "wallet_name_array",
"parameters" : [],
"prerequisites" : ["json_authenticated"],
"is_const": true,
"aliases" : []
},
{
"method_name": "wallet_account_create",
"description": "Add new account for receiving payments",
"return_type": "public_key",
"parameters" :
[
{
"name" : "account_name",
"type" : "account_name",
"description" : "the name you will use to refer to this receive account",
"enable_autocomplete" : false
},
{
"name" : "private_data",
"type" : "json_variant",
"description" : "Extra data to store with this account record",
"default_value" : null
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : [ "wallet_create_account", "create_account" ]
},
{
"method_name": "wallet_account_set_favorite",
"description": "Updates the favorited status of the specified account",
"return_type": "void",
"parameters" :
[
{
"name" : "account_name",
"type" : "account_name",
"description" : "the name of the account to set favorited status on"
},
{
"name" : "is_favorite",
"type" : "bool",
"description" : "true if account should be marked as a favorite; false otherwise",
"default_value" : true
}
],
"prerequisites" : ["wallet_open"],
"aliases" : [ "favor" ]
},
{
"method_name": "wallet_account_set_approval",
"description": "Updates your approval of the specified account",
"return_type": "int8_t",
"parameters" :
[
{
"name" : "account_name",
"type" : "account_name",
"description" : "the name of the account to set approval for"
},
{
"name" : "approval",
"type" : "int8_t",
"description" : "1, 0, or -1 respectively for approve, neutral, or disapprove",
"default_value" : 1
}
],
"prerequisites" : ["wallet_open"],
"aliases" : [ "approve", "set_approval", "wallet_approve_delegate", "wallet_approve" ]
},
{
"method_name": "wallet_add_contact_account",
"description": "Add new account for sending payments",
"return_type": "void",
"parameters" :
[
{
"name" : "account_name",
"type" : "account_name",
"description" : "the name you will use to refer to this sending account",
"enable_autocomplete" : false
},
{
"name" : "account_key",
"type" : "public_key",
"description" : "the key associated with this sending account"
}
],
"prerequisites" : ["wallet_open"]
},
{
"method_name": "wallet_burn",
"description": "Burns given amount to the given account. This will allow you to post message and +/- sentiment on someones account as a form of reputation.",
"return_type": "transaction_record",
"parameters" :
[
{
"name" : "amount_to_transfer",
"type" : "real_amount",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "from_account_name",
"type" : "sending_account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "for_or_against",
"type" : "string",
"description" : "the value 'for' or 'against'"
},
{
"name" : "to_account_name",
"type" : "receive_account_name",
"description" : "the account to which the burn should be credited (for or against) and on which the public message will appear"
},
{
"name" : "public_message",
"type" : "string",
"description" : "a public message to post",
"default_value" : ""
},
{
"name" : "anonymous",
"type" : "bool",
"description" : "true if anonymous, else signed by from_account_name",
"default_value" : "false"
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["burn"]
},
{
"method_name" : "wallet_address_create",
"description" : "Creates an address which can be used for a simple (non-TITAN) transfer.",
"return_type" : "string",
"parameters" : [
{
"name" : "account_name",
"type" : "string",
"description" : "The account name that will own this address"
},
{
"name" : "label",
"type" : "string",
"description" : "",
"default_value" : ""
},
{
"name" : "legacy_network_byte",
"type" : "int32_t",
"description" : "If not -1, use this as the network byte for a BTC-style address.",
"default_value" : -1
}
],
"prerequisites" : ["wallet_open"],
"aliases": ["new_address"]
},
{
"method_name" : "wallet_transfer_to_legacy_address",
"description" : "Do a simple (non-TITAN) transfer to a BTC-style address",
"return_type" : "transaction_record",
"parameters" : [
{
"name" : "amount_to_transfer",
"type" : "real_amount",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "from_account_name",
"type" : "account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "to_address",
"type" : "legacy_address",
"description" : "the address to transfer to"
},
{
"name" : "memo_message",
"type" : "string",
"description" : "a memo to store with the transaction",
"default_value" : ""
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_recommended"
}
],
"prerequisites" : ["wallet_open"]
},
{
"method_name" : "wallet_transfer_to_address",
"description" : "Do a simple (non-TITAN) transfer to an address",
"return_type" : "transaction_record",
"parameters" : [
{
"name" : "amount_to_transfer",
"type" : "real_amount",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "from_account_name",
"type" : "account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "to_address",
"type" : "address",
"description" : "the address to transfer to"
},
{
"name" : "memo_message",
"type" : "string",
"description" : "a memo to store with the transaction",
"default_value" : ""
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_recommended"
}
],
"prerequisites" : ["wallet_open"]
},
{
"method_name": "wallet_transfer",
"description": "Sends given amount to the given account, with the from field set to the payer. This transfer will occur in a single transaction and will be cheaper, but may reduce your privacy.",
"return_type": "transaction_record",
"parameters" :
[
{
"name" : "amount_to_transfer",
"type" : "string",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "from_account_name",
"type" : "sending_account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "to_account_name",
"type" : "receive_account_name",
"description" : "the account to transfer the shares to"
},
{
"name" : "memo_message",
"type" : "string",
"description" : "a memo to store with the transaction",
"default_value" : ""
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_recommended"
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["transfer"]
},
{
"method_name": "wallet_transfer_to_public_account",
"description": "Sends given amount to the given account",
"return_type": "transaction_record",
"parameters" :
[
{
"name" : "amount_to_transfer",
"type" : "real_amount",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "from_account_name",
"type" : "sending_account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "to_account_name",
"type" : "receive_account_name",
"description" : "the account to transfer the shares to"
},
{
"name" : "memo_message",
"type" : "string",
"description" : "a memo to store with the transaction",
"default_value" : ""
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_recommended"
}
],
"prerequisites" : ["wallet_unlocked"],
"aliases" : ["transfer_public"]
},
{
"method_name": "wallet_multisig_get_balance_id",
"description": "",
"return_type": "address",
"parameters":
[
{
"name": "m",
"type": "uint32_t",
"description": "Required number of signatures"
},
{
"name": "addresses",
"type": "address_list",
"description": "List of possible addresses for signatures"
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["get_multisig_id"],
"is_const": true
},
{
"method_name": "wallet_multisig_deposit",
"description": "",
"return_type": "transaction_record",
"parameters":
[
{
"name": "amount",
"type": "string",
"description": "how much to transfer"
},
{
"name": "symbol",
"type": "string",
"description": "which asset"
},
{
"name": "from_name",
"type": "string",
"description": "TITAN name to withdraw from"
},
{
"name": "m",
"type": "uint32_t",
"description": "Required number of signatures"
},
{
"name": "addresses",
"type": "address_list",
"description": "List of possible addresses for signatures"
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_none"
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["transfer_to_multisig"]
},
{
"method_name": "wallet_withdraw_from_address",
"description": "",
"return_type": "transaction_builder",
"parameters":
[
{
"name": "amount",
"type": "string",
"description": "how much to transfer"
},
{
"name": "symbol",
"type": "string",
"description": "which asset"
},
{
"name": "from_address",
"type": "address",
"description": "the balance address to withdraw from"
},
{
"name": "to",
"type": "string",
"description": "address or account to receive funds"
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_none"
},
{
"name": "sign_and_broadcast",
"type": "bool",
"description": "",
"default_value": true
},
{
"name" : "builder_path",
"type" : "string",
"description" : "If specified, will write builder here instead of to DATA_DIR/transactions/latest.trx",
"default_value" : ""
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["withdraw_from_address"],
"is_const": true
},
{
"method_name": "wallet_withdraw_from_legacy_address",
"description": "",
"return_type": "transaction_builder",
"parameters":
[
{
"name": "amount",
"type": "string",
"description": "how much to transfer"
},
{
"name": "symbol",
"type": "string",
"description": "which asset"
},
{
"name": "from_address",
"type": "legacy_address",
"description": "the balance address to withdraw from"
},
{
"name": "to",
"type": "string",
"description": "address or account to receive funds"
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_none"
},
{
"name": "sign_and_broadcast",
"type": "bool",
"description": "",
"default_value": true
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["withdraw_from_legacy_address"],
"is_const": true
},
{
"method_name": "wallet_multisig_withdraw_start",
"description": "",
"return_type": "transaction_builder",
"parameters":
[
{
"name": "amount",
"type": "string",
"description": "how much to transfer"
},
{
"name": "symbol",
"type": "string",
"description": "which asset"
},
{
"name": "from",
"type": "address",
"description": "multisig balance ID to withdraw from"
},
{
"name": "to_address",
"type": "address",
"description": "address to receive funds"
},
{
"name" : "vote_method",
"type" : "vote_selection_method",
"description" : "enumeration [vote_none | vote_all | vote_random | vote_recommended] ",
"default_value" : "vote_none"
},
{
"name" : "builder_path",
"type" : "string",
"description" : "If specified, will write builder here instead of to DATA_DIR/transactions/latest.trx",
"default_value" : ""
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["withdraw_from_multisig"],
"is_const": true
},
{
"method_name": "wallet_builder_add_signature",
"description": "Review a transaction and add a signature.",
"return_type": "transaction_builder",
"parameters":
[
{
"name": "builder",
"type": "transaction_builder",
"description": "A transaction builder object created by a wallet."
},
{
"name": "broadcast",
"type": "bool",
"description": "Try to broadcast this transaction?",
"default_value": false
}
],
"prerequisites": ["json_authenticated"],
"aliases": ["add_signature"]
},
{
"method_name": "wallet_transfer_from_with_escrow",
"description": "Sends given amount to the given name, with the from field set to a different account than the payer. This transfer will occur in a single transaction and will be cheaper, but may reduce your privacy.",
"return_type": "transaction_record",
"parameters" :
[
{
"name" : "amount_to_transfer",
"type" : "string",
"description" : "the amount of shares to transfer"
},
{
"name" : "asset_symbol",
"type" : "asset_symbol",
"description" : "the asset to transfer"
},
{
"name" : "paying_account_name",
"type" : "sending_account_name",
"description" : "the source account to draw the shares from"
},
{
"name" : "from_account_name",
"type" : "sending_account_name",
"description" : "the account to show the recipient as being the sender (requires account's private key to be in wallet)."
},
{
"name" : "to_account_name",
"type" : "receive_account_name",
"description" : "the account to transfer the shares to"
},
{
"name" : "escrow_account_name",
"type" : "account_name",
"description" : "the account of the escrow agent which has the power to decide how to divide the funds among from/to accounts."
},
{
"name" : "agreement",
"type" : "digest",
"description" : "the hash of an agreement between the sender/receiver in the event a dispute arises can be given to escrow agent",
"default_value" : ""
},
{
"name" : "memo_message",
"type" : "string",
"description" : "a memo to store with the transaction",
"default_value" : ""
},