chia-agent 6.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { WalletInfo } from "../../chia/wallet/wallet_info";
2
2
  import { Coin } from "../../chia/types/blockchain_format/coin";
3
- import { bool, bytes, False, int, Optional, str, True, uint128, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
3
+ import { bool, bytes, False, int, Optional, str, True, uint128, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
4
4
  import { bytes32 } from "../../chia/types/blockchain_format/sized_bytes";
5
5
  import { TransactionRecord, TransactionRecordConvenience } from "../../chia/wallet/transaction_record";
6
6
  import { SpendBundle } from "../../chia/types/spend_bundle";
@@ -8,6 +8,8 @@ import { TRPCAgent } from "../../../rpc";
8
8
  import { PoolWalletInfo } from "../../chia/pools/pool_wallet_info";
9
9
  import { TradeRecordConvenience } from "../../chia/wallet/trade_record";
10
10
  import { CAT } from "../../chia/wallet/cat_wallet/cat_constants";
11
+ import { TDriverDict } from "../../chia/wallet/puzzle_drivers";
12
+ import { NFTInfo } from "../../chia/wallet/nft_wallet/nft_info";
11
13
  export declare const chia_wallet_service = "chia_wallet";
12
14
  export declare type chia_wallet_service = typeof chia_wallet_service;
13
15
  export declare const log_in_command = "log_in";
@@ -89,6 +91,7 @@ export declare const check_delete_key_command = "check_delete_key";
89
91
  export declare type check_delete_key_command = typeof check_delete_key_command;
90
92
  export declare type TCheckDeleteKeyRequest = {
91
93
  fingerprint: int;
94
+ max_ph_to_search?: int;
92
95
  };
93
96
  export declare type TCheckDeleteKeyResponse = {
94
97
  fingerprint: int;
@@ -154,9 +157,11 @@ export declare const get_wallets_command = "get_wallets";
154
157
  export declare type get_wallets_command = typeof get_wallets_command;
155
158
  export declare type TGetWalletsRequest = {
156
159
  type?: int;
160
+ include_data?: bool;
157
161
  };
158
162
  export declare type TGetWalletsResponse = {
159
163
  wallets: WalletInfo[];
164
+ fingerprint?: int;
160
165
  };
161
166
  export declare function get_wallets(agent: TRPCAgent, data: TGetWalletsRequest): Promise<TGetWalletsResponse>;
162
167
  export declare type TCreate_New_CAT_WalletRequest = {
@@ -206,11 +211,13 @@ export declare type TCreate_New_DID_WalletRequest = {
206
211
  backup_dids: str[];
207
212
  num_of_backup_ids_needed: uint64;
208
213
  amount: int;
214
+ metadata?: Record<str, str>;
215
+ wallet_name?: str;
209
216
  } | {
210
217
  fee?: uint64;
211
218
  wallet_type: "did_wallet";
212
219
  did_type: "recovery";
213
- filename: str;
220
+ backup_data: str;
214
221
  };
215
222
  export declare type TCreate_New_DID_WalletResponse = {
216
223
  success: True;
@@ -229,6 +236,17 @@ export declare type TCreate_New_DID_WalletResponse = {
229
236
  backup_dids: bytes[];
230
237
  num_verifications_required: uint64;
231
238
  };
239
+ export declare type TCreate_New_NFT_WalletRequest = {
240
+ fee?: uint64;
241
+ wallet_type: "nft_wallet";
242
+ did_id?: str;
243
+ name?: str;
244
+ };
245
+ export declare type TCreate_New_NFT_WalletResponse = {
246
+ success: True;
247
+ type: uint8;
248
+ wallet_id: uint32;
249
+ };
232
250
  export declare type TCreate_New_Pool_WalletRequest = {
233
251
  fee?: uint64;
234
252
  wallet_type: "pool_wallet";
@@ -254,10 +272,14 @@ export declare type TCreate_New_Pool_WalletResponse = {
254
272
  launcher_id: str;
255
273
  p2_singleton_puzzle_hash: str;
256
274
  };
275
+ export declare type TCreateWalletErrorResponse = {
276
+ success: False;
277
+ error: str;
278
+ };
257
279
  export declare const create_new_wallet_command = "create_new_wallet";
258
280
  export declare type create_new_wallet_command = typeof create_new_wallet_command;
259
- export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_Pool_WalletRequest;
260
- export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_Pool_WalletResponse;
281
+ export declare type TCreateNewWalletRequest = TCreate_New_CAT_WalletRequest | TCreate_New_RL_WalletRequest | TCreate_New_DID_WalletRequest | TCreate_New_NFT_WalletRequest | TCreate_New_Pool_WalletRequest;
282
+ export declare type TCreateNewWalletResponse = TCreate_New_CAT_WalletResponse | TCreate_New_RL_WalletResponse | TCreate_New_DID_WalletResponse | TCreate_New_NFT_WalletResponse | TCreate_New_Pool_WalletResponse | TCreateWalletErrorResponse;
261
283
  export declare function create_new_wallet(agent: TRPCAgent, data: TCreateNewWalletRequest): Promise<TCreateNewWalletResponse>;
262
284
  export declare const get_wallet_balance_command = "get_wallet_balance";
263
285
  export declare type get_wallet_balance_command = typeof get_wallet_balance_command;
@@ -274,7 +296,9 @@ export declare type TGetWalletBalanceResponse = {
274
296
  max_send_amount: uint64;
275
297
  unspent_coin_count: int;
276
298
  pending_coin_removal_count: int;
299
+ wallet_type: int;
277
300
  fingerprint?: int;
301
+ asset_id?: str;
278
302
  };
279
303
  };
280
304
  export declare function get_wallet_balance(agent: TRPCAgent, data: TGetWalletBalanceRequest): Promise<TGetWalletBalanceResponse>;
@@ -317,11 +341,12 @@ export declare function get_next_address(agent: TRPCAgent, data: TGetNextAddress
317
341
  export declare const send_transaction_command = "send_transaction";
318
342
  export declare type send_transaction_command = typeof send_transaction_command;
319
343
  export declare type TSendTransactionRequest = {
320
- wallet_id: int;
344
+ wallet_id: uint32;
321
345
  amount: int;
322
346
  fee: int;
323
347
  address: str;
324
348
  memos?: str[];
349
+ min_coin_amount?: uint64;
325
350
  };
326
351
  export declare type TSendTransactionResponse = {
327
352
  transaction: TransactionRecordConvenience;
@@ -384,7 +409,9 @@ export declare type create_signed_transaction_command = typeof create_signed_tra
384
409
  export declare type TCreateSignedTransactionRequest = {
385
410
  additions: TAdditions[];
386
411
  fee?: uint64;
412
+ min_coin_amount?: uint64;
387
413
  coins?: Coin[];
414
+ exclude_coins?: Coin[];
388
415
  coin_announcements?: TCoinAnnouncement[];
389
416
  puzzle_announcements?: TPuzzleAnnouncement[];
390
417
  };
@@ -404,19 +431,44 @@ export declare type select_coins_command = typeof select_coins_command;
404
431
  export declare type TSelectCoinsRequest = {
405
432
  amount: uint64;
406
433
  wallet_id: uint32;
434
+ min_coin_amount?: uint64;
435
+ excluded_coins?: Coin[];
407
436
  };
408
437
  export declare type TSelectCoinsResponse = {
409
438
  coins: Coin[];
410
439
  };
411
440
  export declare function select_coins(agent: TRPCAgent, data: TSelectCoinsRequest): Promise<TSelectCoinsResponse>;
441
+ export declare const get_current_derivation_index_command = "get_current_derivation_index";
442
+ export declare type get_current_derivation_index_command = typeof get_current_derivation_index_command;
443
+ export declare type TGetCurrentDerivationIndexResponse = {
444
+ success: True;
445
+ index: Optional<uint32>;
446
+ };
447
+ export declare function get_current_derivation_index(agent: TRPCAgent): Promise<TGetCurrentDerivationIndexResponse>;
448
+ export declare const extend_derivation_index_command = "extend_derivation_index";
449
+ export declare type extend_derivation_index_command = typeof extend_derivation_index_command;
450
+ export declare type TExtendDerivationIndexRequest = {
451
+ index: uint32;
452
+ };
453
+ export declare type TExtendDerivationIndexResponse = {
454
+ success: True;
455
+ index: Optional<uint32>;
456
+ };
457
+ export declare function extend_derivation_index(agent: TRPCAgent, data: TExtendDerivationIndexRequest): Promise<TExtendDerivationIndexResponse>;
458
+ export declare const get_cat_list_command = "get_cat_list";
459
+ export declare type get_cat_list_command = typeof get_cat_list_command;
460
+ export declare type TGetCatListResponse = {
461
+ cat_list: CAT[];
462
+ };
463
+ export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
412
464
  export declare const cat_set_name_command = "cat_set_name";
413
465
  export declare type cat_set_name_command = typeof cat_set_name_command;
414
466
  export declare type TCatSetNameRequest = {
415
- wallet_id: int;
467
+ wallet_id: uint32;
416
468
  name: str;
417
469
  };
418
470
  export declare type TCatSetNameResponse = {
419
- wallet_id: int;
471
+ wallet_id: uint32;
420
472
  };
421
473
  export declare function cat_set_name(agent: TRPCAgent, data: TCatSetNameRequest): Promise<TCatSetNameResponse>;
422
474
  export declare const cat_asset_id_to_name_command = "cat_asset_id_to_name";
@@ -432,10 +484,10 @@ export declare function cat_asset_id_to_name(agent: TRPCAgent, data: TCatAssetId
432
484
  export declare const cat_get_name_command = "cat_get_name";
433
485
  export declare type cat_get_name_command = typeof cat_get_name_command;
434
486
  export declare type TCatGetNameRequest = {
435
- wallet_id: int;
487
+ wallet_id: uint32;
436
488
  };
437
489
  export declare type TCatGetNameResponse = {
438
- wallet_id: int;
490
+ wallet_id: uint32;
439
491
  name: str;
440
492
  };
441
493
  export declare function cat_get_name(agent: TRPCAgent, data: TCatGetNameRequest): Promise<TCatGetNameResponse>;
@@ -453,11 +505,12 @@ export declare function get_stray_cats(agent: TRPCAgent): Promise<TGetStrayCatsR
453
505
  export declare const cat_spend_command = "cat_spend";
454
506
  export declare type cat_spend_command = typeof cat_spend_command;
455
507
  export declare type TCatSpendRequest = {
456
- wallet_id: int;
508
+ wallet_id: uint32;
457
509
  inner_address: str;
458
510
  memos?: str[];
459
511
  amount: uint64;
460
512
  fee: uint64;
513
+ min_coin_amount?: uint64;
461
514
  };
462
515
  export declare type TCatSpendResponse = {
463
516
  transaction: TransactionRecordConvenience;
@@ -467,11 +520,11 @@ export declare function cat_spend(agent: TRPCAgent, data: TCatSpendRequest): Pro
467
520
  export declare const cat_get_asset_id_command = "cat_get_asset_id";
468
521
  export declare type cat_get_asset_id_command = typeof cat_get_asset_id_command;
469
522
  export declare type TCatGetAssetIdRequest = {
470
- wallet_id: int;
523
+ wallet_id: uint32;
471
524
  };
472
525
  export declare type TCatGetAssetIdResponse = {
473
526
  asset_id: str;
474
- wallet_id: int;
527
+ wallet_id: uint32;
475
528
  };
476
529
  export declare function cat_get_asset_id(agent: TRPCAgent, data: TCatGetAssetIdRequest): Promise<TCatGetAssetIdResponse>;
477
530
  export declare const create_offer_for_ids_command = "create_offer_for_ids";
@@ -480,6 +533,8 @@ export declare type TCreateOfferForIdsRequest = {
480
533
  offer: Record<int, int>;
481
534
  fee?: uint64;
482
535
  validate_only?: bool;
536
+ driver_dict?: TDriverDict;
537
+ min_coin_amount?: uint64;
483
538
  };
484
539
  export declare type TCreateOfferForIdsResponse = {
485
540
  offer: str;
@@ -496,6 +551,7 @@ export declare type TGetOfferSummaryResponse = {
496
551
  offered: Record<str, int>;
497
552
  requested: Record<str, int>;
498
553
  fees: int;
554
+ infos: TDriverDict;
499
555
  };
500
556
  };
501
557
  export declare function get_offer_summary(agent: TRPCAgent, data: TGetOfferSummaryRequest): Promise<TGetOfferSummaryResponse>;
@@ -513,6 +569,7 @@ export declare type take_offer_command = typeof take_offer_command;
513
569
  export declare type TTakeOfferRequest = {
514
570
  offer: str;
515
571
  fee?: uint64;
572
+ min_coin_amount?: uint64;
516
573
  };
517
574
  export declare type TTakeOfferResponse = {
518
575
  trade_record: TradeRecordConvenience;
@@ -563,16 +620,48 @@ export declare type TCancelOfferRequest = {
563
620
  };
564
621
  export declare type TCancelOfferResponse = {};
565
622
  export declare function cancel_offer(agent: TRPCAgent, data: TCancelOfferRequest): Promise<TCancelOfferResponse>;
566
- export declare const get_cat_list_command = "get_cat_list";
567
- export declare type get_cat_list_command = typeof get_cat_list_command;
568
- export declare type TGetCatListResponse = {
569
- cat_list: CAT[];
623
+ export declare const cancel_offers_command = "cancel_offers";
624
+ export declare type cancel_offers_command = typeof cancel_offers_command;
625
+ export declare type TCancelOffersRequest = {
626
+ secure: bool;
627
+ batch_fee?: uint64;
628
+ batch_size?: int;
629
+ cancel_all?: bool;
630
+ asset_id?: str;
570
631
  };
571
- export declare function get_cat_list(agent: TRPCAgent): Promise<TGetCatListResponse>;
632
+ export declare type TCancelOffersResponse = {
633
+ success: True;
634
+ };
635
+ export declare function cancel_offers(agent: TRPCAgent, data: TCancelOffersRequest): Promise<TCancelOffersResponse>;
636
+ export declare const did_set_wallet_name_command = "did_set_wallet_name";
637
+ export declare type did_set_wallet_name_command = typeof did_set_wallet_name_command;
638
+ export declare type TDidSetWalletNameRequest = {
639
+ wallet_id: uint32;
640
+ name: str;
641
+ };
642
+ export declare type TDidSetWalletNameResponse = {
643
+ success: True;
644
+ wallet_id: uint32;
645
+ } | {
646
+ success: False;
647
+ error: str;
648
+ };
649
+ export declare function did_set_wallet_name(agent: TRPCAgent, data: TDidSetWalletNameRequest): Promise<TDidSetWalletNameResponse>;
650
+ export declare const did_get_wallet_name_command = "did_get_wallet_name";
651
+ export declare type did_get_wallet_name_command = typeof did_get_wallet_name_command;
652
+ export declare type TDidGetWalletNameRequest = {
653
+ wallet_id: uint32;
654
+ };
655
+ export declare type TDidGetWalletNameResponse = {
656
+ success: True;
657
+ wallet_id: uint32;
658
+ name: str;
659
+ };
660
+ export declare function did_get_wallet_name(agent: TRPCAgent, data: TDidGetWalletNameRequest): Promise<TDidGetWalletNameResponse>;
572
661
  export declare const did_update_recovery_ids_command = "did_update_recovery_ids";
573
662
  export declare type did_update_recovery_ids_command = typeof did_update_recovery_ids_command;
574
663
  export declare type TDidUpdateRecoveryIdsRequest = {
575
- wallet_id: int;
664
+ wallet_id: uint32;
576
665
  new_list: str[];
577
666
  num_verifications_required?: uint64;
578
667
  };
@@ -580,6 +669,22 @@ export declare type TDidUpdateRecoveryIdsResponse = {
580
669
  success: bool;
581
670
  };
582
671
  export declare function did_update_recovery_ids(agent: TRPCAgent, data: TDidUpdateRecoveryIdsRequest): Promise<TDidUpdateRecoveryIdsResponse>;
672
+ export declare const did_update_metadata_command = "did_update_metadata";
673
+ export declare type did_update_metadata_command = typeof did_update_metadata_command;
674
+ export declare type TDidUpdateMetadataRequest = {
675
+ wallet_id: uint32;
676
+ metadata?: Record<str, str>;
677
+ fee?: uint64;
678
+ };
679
+ export declare type TDidUpdateMetadataResponse = {
680
+ success: True;
681
+ wallet_id: uint32;
682
+ spend_bundle: SpendBundle;
683
+ } | {
684
+ success: False;
685
+ error: str;
686
+ };
687
+ export declare function did_update_metadata(agent: TRPCAgent, data: TDidUpdateMetadataRequest): Promise<TDidUpdateMetadataResponse>;
583
688
  export declare const did_spend_command = "did_spend";
584
689
  export declare type did_spend_command = typeof did_spend_command;
585
690
  export declare type TDidSpendRequest = {
@@ -593,21 +698,21 @@ export declare function did_spend(agent: TRPCAgent, data: TDidSpendRequest): Pro
593
698
  export declare const did_get_pubkey_command = "did_get_pubkey";
594
699
  export declare type did_get_pubkey_command = typeof did_get_pubkey_command;
595
700
  export declare type TDidGetPubkeyRequest = {
596
- wallet_id: int;
701
+ wallet_id: uint32;
597
702
  };
598
703
  export declare type TDidGetPubkeyResponse = {
599
704
  success: bool;
600
- pubkey: bytes;
705
+ pubkey: str;
601
706
  };
602
707
  export declare function did_get_pubkey(agent: TRPCAgent): Promise<TDidGetPubkeyResponse>;
603
708
  export declare const did_get_did_command = "did_get_did";
604
709
  export declare type did_get_did_command = typeof did_get_did_command;
605
710
  export declare type TDidGetDidRequest = {
606
- wallet_id: int;
711
+ wallet_id: uint32;
607
712
  };
608
713
  export declare type TDidGetDidResponse = {
609
714
  success: bool;
610
- wallet_id: int;
715
+ wallet_id: uint32;
611
716
  my_did: str;
612
717
  coin_id?: bytes32;
613
718
  };
@@ -615,39 +720,53 @@ export declare function did_get_did(agent: TRPCAgent, data: TDidGetDidRequest):
615
720
  export declare const did_recovery_spend_command = "did_recovery_spend";
616
721
  export declare type did_recovery_spend_command = typeof did_recovery_spend_command;
617
722
  export declare type TDidRecoverySpendRequest = {
618
- wallet_id: int;
619
- attest_filenames: str[];
723
+ wallet_id: uint32;
724
+ attest_data: str[];
620
725
  pubkey?: str;
621
726
  puzhash?: str;
622
727
  };
623
728
  export declare type TDidRecoverySpendResponse = {
624
- success: SpendBundle;
729
+ success: True;
730
+ spend_bundle: SpendBundle;
731
+ } | {
732
+ success: False;
625
733
  };
626
734
  export declare function did_recovery_spend(agent: TRPCAgent, data: TDidRecoverySpendRequest): Promise<TDidRecoverySpendResponse>;
627
735
  export declare const did_get_recovery_list_command = "did_get_recovery_list";
628
736
  export declare type did_get_recovery_list_command = typeof did_get_recovery_list_command;
629
737
  export declare type TDidGetRecoveryListRequest = {
630
- wallet_id: int;
738
+ wallet_id: uint32;
631
739
  };
632
740
  export declare type TDidGetRecoveryListResponse = {
633
741
  success: bool;
634
- wallet_id: int;
635
- recover_list: str[];
742
+ wallet_id: uint32;
743
+ recovery_list: str[];
636
744
  num_required: uint64;
637
745
  };
638
746
  export declare function did_get_recovery_list(agent: TRPCAgent, data: TDidGetRecoveryListRequest): Promise<TDidGetRecoveryListResponse>;
747
+ export declare const did_get_metadata_command = "did_get_metadata";
748
+ export declare type did_get_metadata_command = typeof did_get_metadata_command;
749
+ export declare type TDidGetMetadataRequest = {
750
+ wallet_id: uint32;
751
+ };
752
+ export declare type TDidGetMetadataResponse = {
753
+ success: True;
754
+ wallet_id: uint32;
755
+ metadata: Record<str, str>;
756
+ };
757
+ export declare function did_get_metadata(agent: TRPCAgent, data: TDidGetMetadataRequest): Promise<TDidGetMetadataResponse>;
639
758
  export declare const did_create_attest_command = "did_create_attest";
640
759
  export declare type did_create_attest_command = typeof did_create_attest_command;
641
760
  export declare type TDidCreateAttestRequest = {
642
- wallet_id: int;
761
+ wallet_id: uint32;
643
762
  coin_name: str;
644
763
  puzhash: str;
645
- filename: str;
646
764
  };
647
765
  export declare type TDidCreateAttestResponse = {
648
766
  success: True;
649
767
  message_spend_bundle: str;
650
768
  info: [str, str, uint64];
769
+ attest_data: str;
651
770
  } | {
652
771
  success: False;
653
772
  };
@@ -655,11 +774,11 @@ export declare function did_create_attest(agent: TRPCAgent, data: TDidCreateAtte
655
774
  export declare const did_get_information_needed_for_recovery_command = "did_get_information_needed_for_recovery";
656
775
  export declare type did_get_information_needed_for_recovery_command = typeof did_get_information_needed_for_recovery_command;
657
776
  export declare type TDidGetInformationNeededForRecoveryRequest = {
658
- wallet_id: int;
777
+ wallet_id: uint32;
659
778
  };
660
779
  export declare type TDidGetInformationNeededForRecoveryResponse = {
661
780
  success: bool;
662
- wallet_id: int;
781
+ wallet_id: uint32;
663
782
  my_did: str;
664
783
  coin_name: str;
665
784
  newpuzhash: Optional<bytes32>;
@@ -667,17 +786,197 @@ export declare type TDidGetInformationNeededForRecoveryResponse = {
667
786
  backup_dids: bytes[];
668
787
  };
669
788
  export declare function did_get_information_needed_for_recovery(agent: TRPCAgent, data: TDidGetInformationNeededForRecoveryRequest): Promise<TDidGetInformationNeededForRecoveryResponse>;
789
+ export declare const did_get_current_coin_info_command = "did_get_current_coin_info";
790
+ export declare type did_get_current_coin_info_command = typeof did_get_current_coin_info_command;
791
+ export declare type TDidGetCurrentCoinInfoRequest = {
792
+ wallet_id: uint32;
793
+ };
794
+ export declare type TDidGetCurrentCoinInfoResponse = {
795
+ success: True;
796
+ wallet_id: uint32;
797
+ my_did: str;
798
+ did_parent: bytes32;
799
+ did_innerpuz: bytes32;
800
+ did_amount: uint64;
801
+ };
802
+ export declare function did_get_current_coin_info(agent: TRPCAgent, data: TDidGetCurrentCoinInfoRequest): Promise<TDidGetCurrentCoinInfoResponse>;
670
803
  export declare const did_create_backup_file_command = "did_create_backup_file";
671
804
  export declare type did_create_backup_file_command = typeof did_create_backup_file_command;
672
805
  export declare type TDidCreateBackupFileRequest = {
673
- wallet_id: int;
674
- filename: str;
806
+ wallet_id: uint32;
675
807
  };
676
808
  export declare type TDidCreateBackupFileResponse = {
677
- wallet_id: int;
678
- success: bool;
809
+ wallet_id: uint32;
810
+ success: True;
811
+ backup_data: str;
679
812
  };
680
813
  export declare function did_create_backup_file(agent: TRPCAgent, data: TDidCreateBackupFileRequest): Promise<TDidCreateBackupFileResponse>;
814
+ export declare const did_transfer_did_command = "did_transfer_did";
815
+ export declare type did_transfer_did_command = typeof did_transfer_did_command;
816
+ export declare type TDidTransferDidRequest = {
817
+ wallet_id: uint32;
818
+ inner_address: str;
819
+ fee?: uint64;
820
+ with_recovery_info?: bool;
821
+ };
822
+ export declare type TDidTransferDidResponse = {
823
+ success: True;
824
+ transaction: TransactionRecordConvenience;
825
+ transaction_id: bytes32;
826
+ };
827
+ export declare function did_transfer_did(agent: TRPCAgent, data: TDidTransferDidRequest): Promise<TDidTransferDidResponse>;
828
+ export declare const nft_mint_nft_command = "nft_mint_nft";
829
+ export declare type nft_mint_nft_command = typeof nft_mint_nft_command;
830
+ export declare type TNftMintNftRequest = {
831
+ wallet_id: uint32;
832
+ royalty_address?: str;
833
+ target_address?: str;
834
+ uris: str[];
835
+ meta_uris: str[];
836
+ license_uris: str[];
837
+ hash: str;
838
+ edition_number: uint64;
839
+ edition_total: uint64;
840
+ meta_hash?: str;
841
+ license_hash?: str;
842
+ fee?: uint64;
843
+ did_id?: str;
844
+ royalty_percentage?: uint16;
845
+ };
846
+ export declare type TNftMintNftResponse = {
847
+ wallet_id: uint32;
848
+ success: True;
849
+ spend_bundle: SpendBundle;
850
+ };
851
+ export declare function nft_mint_nft(agent: TRPCAgent, data: TNftMintNftRequest): Promise<TNftMintNftResponse>;
852
+ export declare const nft_get_nfts_command = "nft_get_nfts";
853
+ export declare type nft_get_nfts_command = typeof nft_get_nfts_command;
854
+ export declare type TNftGetNftsRequest = {
855
+ wallet_id: uint32;
856
+ };
857
+ export declare type TNftGetNftsResponse = {
858
+ wallet_id: uint32;
859
+ success: True;
860
+ nft_list: NFTInfo[];
861
+ };
862
+ export declare function nft_get_nfts(agent: TRPCAgent, data: TNftGetNftsRequest): Promise<TNftGetNftsResponse>;
863
+ export declare const nft_set_nft_did_command = "nft_set_nft_did";
864
+ export declare type nft_set_nft_did_command = typeof nft_set_nft_did_command;
865
+ export declare type TNftSetNftDidRequest = {
866
+ wallet_id: uint32;
867
+ did_id: str;
868
+ nft_coin_id: str;
869
+ fee?: uint64;
870
+ };
871
+ export declare type TNftSetNftDidResponse = {
872
+ wallet_id: uint32;
873
+ success: True;
874
+ spend_bundle: SpendBundle;
875
+ } | {
876
+ success: False;
877
+ error: str;
878
+ };
879
+ export declare function nft_set_nft_did(agent: TRPCAgent, data: TNftSetNftDidRequest): Promise<TNftSetNftDidResponse>;
880
+ export declare const nft_get_by_did_command = "nft_get_by_did";
881
+ export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
882
+ export declare type TNftGetByDidRequest = {
883
+ did_id?: str;
884
+ };
885
+ export declare type TNftGetByDidResponse = {
886
+ wallet_id: uint32;
887
+ success: True;
888
+ } | {
889
+ success: False;
890
+ error: str;
891
+ };
892
+ export declare function nft_get_by_did(agent: TRPCAgent, data: TNftGetByDidRequest): Promise<TNftGetByDidResponse>;
893
+ export declare const nft_get_wallet_did_command = "nft_get_wallet_did";
894
+ export declare type nft_get_wallet_did_command = typeof nft_get_wallet_did_command;
895
+ export declare type TNftGetWalletDidRequest = {
896
+ wallet_id: uint32;
897
+ };
898
+ export declare type TNftGetWalletDidResponse = {
899
+ did_id: Optional<str>;
900
+ success: True;
901
+ } | {
902
+ success: False;
903
+ error: str;
904
+ };
905
+ export declare function nft_get_wallet_did(agent: TRPCAgent, data: TNftGetWalletDidRequest): Promise<TNftGetWalletDidResponse>;
906
+ export declare const nft_get_wallets_with_dids_command = "nft_get_wallets_with_dids";
907
+ export declare type nft_get_wallets_with_dids_command = typeof nft_get_wallets_with_dids_command;
908
+ export declare type TNftGetWalletsWithDidsResponse = {
909
+ success: True;
910
+ nft_wallets: Array<{
911
+ wallet_id: uint32;
912
+ did_id: str;
913
+ did_wallet_id: uint32;
914
+ }>;
915
+ };
916
+ export declare function nft_get_wallets_with_dids(agent: TRPCAgent): Promise<TNftGetWalletsWithDidsResponse>;
917
+ export declare const nft_set_nft_status_command = "nft_set_nft_status";
918
+ export declare type nft_set_nft_status_command = typeof nft_set_nft_status_command;
919
+ export declare type TNftSetNftStatusRequest = {
920
+ wallet_id: uint32;
921
+ coin_id: str;
922
+ in_transaction: bool;
923
+ };
924
+ export declare type TNftSetNftStatusResponse = {
925
+ success: True;
926
+ } | {
927
+ success: False;
928
+ error: str;
929
+ };
930
+ export declare function nft_set_nft_status(agent: TRPCAgent, data: TNftSetNftStatusRequest): Promise<TNftSetNftStatusResponse>;
931
+ export declare const nft_transfer_nft_command = "nft_transfer_nft";
932
+ export declare type nft_transfer_nft_command = typeof nft_transfer_nft_command;
933
+ export declare type TNftTransferNftRequest = {
934
+ wallet_id: uint32;
935
+ target_address: str;
936
+ nft_coin_id: str;
937
+ fee?: uint64;
938
+ };
939
+ export declare type TNftTransferNftResponse = {
940
+ success: True;
941
+ wallet_id: uint32;
942
+ spend_bundle: SpendBundle;
943
+ } | {
944
+ success: False;
945
+ error: str;
946
+ };
947
+ export declare function nft_transfer_nft(agent: TRPCAgent, data: TNftTransferNftRequest): Promise<TNftTransferNftResponse>;
948
+ export declare const nft_get_info_command = "nft_get_info";
949
+ export declare type nft_get_info_command = typeof nft_get_info_command;
950
+ export declare type TNftGetInfoRequest = {
951
+ coin_id: str;
952
+ latest?: bool;
953
+ };
954
+ export declare type TNftGetInfoResponse = {
955
+ success: True;
956
+ nft_info: NFTInfo;
957
+ } | {
958
+ success: False;
959
+ error: str;
960
+ };
961
+ export declare function nft_get_info(agent: TRPCAgent, data: TNftGetInfoRequest): Promise<TNftGetInfoResponse>;
962
+ export declare const nft_add_uri_command = "nft_add_uri";
963
+ export declare type nft_add_uri_command = typeof nft_add_uri_command;
964
+ export declare type TNftAddUriRequest = {
965
+ wallet_id: uint32;
966
+ uri: str;
967
+ key: str;
968
+ nft_coin_id: str;
969
+ fee?: uint64;
970
+ };
971
+ export declare type TNftAddUriResponse = {
972
+ success: True;
973
+ wallet_id: uint32;
974
+ spend_bundle: SpendBundle;
975
+ } | {
976
+ success: False;
977
+ error: str;
978
+ };
979
+ export declare function nft_add_uri(agent: TRPCAgent, data: TNftAddUriRequest): Promise<TNftAddUriResponse>;
681
980
  export declare const rl_set_user_info_command = "rl_set_user_info";
682
981
  export declare type rl_set_user_info_command = typeof rl_set_user_info_command;
683
982
  export declare type TRlSetUserInfoRequest = {
@@ -696,7 +995,7 @@ export declare function rl_set_user_info(agent: TRPCAgent, data: TRlSetUserInfoR
696
995
  export declare const send_clawback_transaction_command = "send_clawback_transaction:";
697
996
  export declare type send_clawback_transaction_command = typeof send_clawback_transaction_command;
698
997
  export declare type TSendClawbackTransactionRequest = {
699
- wallet_id: int;
998
+ wallet_id: uint32;
700
999
  fee: int;
701
1000
  };
702
1001
  export declare type TSendClawbackTransactionResponse = {
@@ -743,9 +1042,6 @@ export declare type TPwSelfPoolResponse = {
743
1042
  total_fee: uint64;
744
1043
  transaction: TransactionRecord;
745
1044
  fee_transaction: Optional<TransactionRecord>;
746
- } | {
747
- success: False;
748
- error: "not_initialized";
749
1045
  };
750
1046
  export declare function pw_self_pool(agent: TRPCAgent, data: TPwSelfPoolRequest): Promise<TPwSelfPoolResponse>;
751
1047
  export declare const pw_absorb_rewards_command = "pw_absorb_rewards";
@@ -759,9 +1055,6 @@ export declare type TPwAbsorbRewardsResponse = {
759
1055
  state: PoolWalletInfo;
760
1056
  transaction: TransactionRecord;
761
1057
  fee_transaction: Optional<TransactionRecord>;
762
- } | {
763
- success: False;
764
- error: "not_initialized";
765
1058
  };
766
1059
  export declare function pw_absorb_rewards(agent: TRPCAgent, data: TPwAbsorbRewardsRequest): Promise<TPwAbsorbRewardsResponse>;
767
1060
  export declare const pw_status_command = "pw_status";
@@ -772,8 +1065,5 @@ export declare type TPwStatusRequest = {
772
1065
  export declare type TPwStatusResponse = {
773
1066
  state: PoolWalletInfo;
774
1067
  unconfirmed_transactions: TransactionRecord[];
775
- } | {
776
- success: False;
777
- error: "not_initialized";
778
1068
  };
779
1069
  export declare function pw_status(agent: TRPCAgent, data: TPwStatusRequest): Promise<TPwStatusResponse>;