chia-agent 14.3.3 → 14.5.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.
- package/CHANGELOG.md +108 -0
- package/README.md +7 -7
- package/api/chia/rpc/util.d.ts +6 -21
- package/api/chia/rpc/wallet_request_types.d.ts +178 -2
- package/api/chia/rpc/wallet_rpc_api.d.ts +19 -0
- package/api/chia/rpc/wallet_rpc_api.js +2 -0
- package/api/chia/util/streamable.d.ts +1 -1
- package/api/chia/wallet/dao_wallet/dao_wallet.d.ts +6 -2
- package/api/chia/wallet/puzzles/clawback/metadata.d.ts +2 -0
- package/api/chia/wallet/transaction_record.d.ts +2 -2
- package/api/chia/wallet/wallet_coin_record.d.ts +8 -4
- package/api/chia/wallet/wallet_spend_bundle.d.ts +2 -0
- package/api/chia/wallet/wallet_spend_bundle.js +2 -0
- package/api/chia_rs/chia-consensus/gen/owned_conditions.d.ts +6 -3
- package/api/rpc/common/index.d.ts +28 -3
- package/api/rpc/common/index.js +22 -1
- package/api/rpc/full_node/index.js +1 -0
- package/api/rpc/index.d.ts +2 -2
- package/api/rpc/index.js +9 -4
- package/api/rpc/wallet/index.d.ts +105 -194
- package/api/rpc/wallet/index.js +26 -11
- package/daemon/index.d.ts +1 -0
- package/daemon/index.js +30 -3
- package/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -17,129 +17,75 @@ import { TDaemon } from "../../../daemon/index";
|
|
|
17
17
|
import { CoinRecord } from "../../chia/types/coin_record";
|
|
18
18
|
import { SigningMode } from "../../chia/types/signing_mode";
|
|
19
19
|
import { Balance } from "../../chia/wallet/wallet_node";
|
|
20
|
-
import { AutoClaimSettings } from "../../chia/wallet/puzzles/clawback/metadata";
|
|
20
|
+
import { AutoClaimSettings, AutoClaimSettingsCHIP0029 } from "../../chia/wallet/puzzles/clawback/metadata";
|
|
21
21
|
import { GetCoinRecords } from "../../chia/wallet/wallet_coin_store";
|
|
22
22
|
import { WalletCoinRecordWithMetadata } from "../../chia/wallet/wallet_coin_record";
|
|
23
|
-
import { VCRecord } from "../../chia/wallet/vc_wallet/vc_store";
|
|
24
23
|
import { TransactionTypeFilter } from "../../chia/wallet/util/quality_filter";
|
|
25
|
-
import {
|
|
24
|
+
import { TXConfigLoader } from "../../chia/wallet/util/tx_config";
|
|
26
25
|
import { ConditionValidTimes } from "../../chia/wallet/conditions";
|
|
27
26
|
import { DAOInfo, DAORules, ProposalInfo } from "../../chia/wallet/dao_wallet/dao_info";
|
|
28
27
|
import { ParsedProposalSpend, ParsedProposalUpdate, ProposalState } from "../../chia/wallet/dao_wallet/dao_wallet";
|
|
29
28
|
import { DLProof, VerifyProofResponse } from "../../chia/data_layer/data_layer_util";
|
|
30
|
-
import {
|
|
31
|
-
import { TXEndpointRequest, TxeResp } from "../../chia/rpc/util";
|
|
29
|
+
import { AddKeyRequest, AddKeyResponse, ApplySignatures, ApplySignaturesCHIP0029, ApplySignaturesResponse, ApplySignaturesResponseCHIP0029, CheckDeleteKeyRequest, CheckDeleteKeyResponse, CombineCoins, CombineCoinsCHIP0029, CombineCoinsResponse, CombineCoinsResponseCHIP0029, DeleteKeyRequest, ExecuteSigningInstructions, ExecuteSigningInstructionsCHIP0029, ExecuteSigningInstructionsResponse, ExecuteSigningInstructionsResponseCHIP0029, GatherSigningInfo, GatherSigningInfoCHIP0029, GatherSigningInfoResponse, GatherSigningInfoResponseCHIP0029, GenerateMnemonicResponse, GetHeightInfo, GetHeightInfoResponse, GetLoggedInFingerprintResponse, GetNotifications, GetNotificationsResponse, GetPrivateKeyRequest, GetPrivateKeyResponse, GetPublicKeysResponse, GetSyncStatus, GetSyncStatusResponse, GetTimestampForHeightRequest, GetTimestampForHeightRequestCHIP0029, GetTimestampForHeightResponse, LogIn, LogInResponse, PushTransactions, PushTransactionsCHIP0029, PushTransactionsResponse, PushTransactionsResponseCHIP0029, PushTX, PushTXCHIP0029, SetWalletResyncOnStartup, SetWalletResyncOnStartupCHIP0029, SplitCoins, SplitCoinsCHIP0029, SplitCoinsResponse, SplitCoinsResponseCHIP0029, SubmitTransactions, SubmitTransactionsCHIP0029, SubmitTransactionsResponse, SubmitTransactionsResponseCHIP0029, VcAddProofs, VcAddProofsCHIP0029, VCGet, VCGetCHIP0029, VcGetList, VcGetListCHIP0029, VcGetListResponse, VCGetProofsForRoot, VCGetProofsForRootCHIP0029, VCGetProofsForRootResponse, VcGetResponse, VCMint, VCMintCHIP0029, VcMintResponse, VcMintResponseCHIP0029, VcRevoke, VcRevokeCHIP0029, VcRevokeResponse, VcRevokeResponseCHIP0029, VcSpend, VcSpendCHIP0029, VcSpendResponse, VcSpendResponseCHIP0029 } from "../../chia/rpc/wallet_request_types";
|
|
32
30
|
import { SigningResponse, UnsignedTransaction } from "../../chia/wallet/signer_protocol";
|
|
31
|
+
import { WalletSpendBundle } from "../../chia/wallet/wallet_spend_bundle";
|
|
32
|
+
import { TXEndpointRequest, TxeResp } from "../../chia/rpc/wallet_rpc_api";
|
|
33
|
+
import { Marshall, MaybeMarshall } from "../../chia/rpc/util";
|
|
33
34
|
export declare const chia_wallet_service = "chia_wallet";
|
|
34
35
|
export type chia_wallet_service = typeof chia_wallet_service;
|
|
35
36
|
export declare const log_in_command = "log_in";
|
|
36
37
|
export type log_in_command = typeof log_in_command;
|
|
37
|
-
export type TLoginRequest =
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
export type TLoginResponse = {
|
|
41
|
-
fingerprint: int;
|
|
42
|
-
} | {
|
|
43
|
-
success: False;
|
|
44
|
-
error: "Unknown Error";
|
|
45
|
-
};
|
|
38
|
+
export type TLoginRequest = LogIn;
|
|
39
|
+
export type TLoginResponse = LogInResponse;
|
|
46
40
|
export type WsLoginMessage = GetMessageType<chia_wallet_service, log_in_command, TLoginResponse>;
|
|
47
|
-
export declare function log_in<T extends TRPCAgent | TDaemon>(agent: T, data: TLoginRequest): Promise<ResType<T,
|
|
41
|
+
export declare function log_in<T extends TRPCAgent | TDaemon>(agent: T, data: TLoginRequest): Promise<ResType<T, LogInResponse, WsLoginMessage>>;
|
|
48
42
|
export declare const get_logged_in_fingerprint_command = "get_logged_in_fingerprint";
|
|
49
43
|
export type get_logged_in_fingerprint_command = typeof get_logged_in_fingerprint_command;
|
|
50
|
-
export type TGetLoggedInFingerprintResponse =
|
|
51
|
-
fingerprint: Optional<int>;
|
|
52
|
-
};
|
|
44
|
+
export type TGetLoggedInFingerprintResponse = GetLoggedInFingerprintResponse;
|
|
53
45
|
export type WsGetLoggedInFingerprintMessage = GetMessageType<chia_wallet_service, get_logged_in_fingerprint_command, TGetLoggedInFingerprintResponse>;
|
|
54
|
-
export declare function get_logged_in_fingerprint<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
46
|
+
export declare function get_logged_in_fingerprint<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GetLoggedInFingerprintResponse, WsGetLoggedInFingerprintMessage>>;
|
|
55
47
|
export declare const get_public_keys_command = "get_public_keys";
|
|
56
48
|
export type get_public_keys_command = typeof get_public_keys_command;
|
|
57
|
-
export type TGetPublicKeysResponse =
|
|
58
|
-
public_key_fingerprints: int[];
|
|
59
|
-
} | {
|
|
60
|
-
keyring_is_locked: True;
|
|
61
|
-
};
|
|
49
|
+
export type TGetPublicKeysResponse = GetPublicKeysResponse;
|
|
62
50
|
export type WsGetPublicKeysMessage = GetMessageType<chia_wallet_service, get_public_keys_command, TGetPublicKeysResponse>;
|
|
63
|
-
export declare function get_public_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
51
|
+
export declare function get_public_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GetPublicKeysResponse, WsGetPublicKeysMessage>>;
|
|
64
52
|
export declare const get_private_key_command = "get_private_key";
|
|
65
53
|
export type get_private_key_command = typeof get_private_key_command;
|
|
66
|
-
export type TGetPrivateKeyRequest =
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
export type TGetPrivateKeyResponse = {
|
|
70
|
-
private_key: {
|
|
71
|
-
fingerprint: int;
|
|
72
|
-
sk: str;
|
|
73
|
-
pk: str;
|
|
74
|
-
farmer_pk: str;
|
|
75
|
-
pool_pk: str;
|
|
76
|
-
seed: Optional<str>;
|
|
77
|
-
};
|
|
78
|
-
} | {
|
|
79
|
-
success: False;
|
|
80
|
-
private_key: {
|
|
81
|
-
fingerprint: int;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
54
|
+
export type TGetPrivateKeyRequest = GetPrivateKeyRequest;
|
|
55
|
+
export type TGetPrivateKeyResponse = GetPrivateKeyResponse;
|
|
84
56
|
export type WsGetPrivateKeyMessage = GetMessageType<chia_wallet_service, get_private_key_command, TGetPrivateKeyResponse>;
|
|
85
|
-
export declare function get_private_key<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPrivateKeyRequest): Promise<ResType<T,
|
|
57
|
+
export declare function get_private_key<T extends TRPCAgent | TDaemon>(agent: T, data: TGetPrivateKeyRequest): Promise<ResType<T, GetPrivateKeyResponse, WsGetPrivateKeyMessage>>;
|
|
86
58
|
export declare const generate_mnemonic_command = "generate_mnemonic";
|
|
87
59
|
export type generate_mnemonic_command = typeof generate_mnemonic_command;
|
|
88
|
-
export type TGenerateMnemonicResponse =
|
|
89
|
-
mnemonic: str[];
|
|
90
|
-
};
|
|
60
|
+
export type TGenerateMnemonicResponse = GenerateMnemonicResponse;
|
|
91
61
|
export type WsGenerateMnemonicMessage = GetMessageType<chia_wallet_service, generate_mnemonic_command, TGenerateMnemonicResponse>;
|
|
92
|
-
export declare function generate_mnemonic<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T,
|
|
62
|
+
export declare function generate_mnemonic<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, GenerateMnemonicResponse, WsGenerateMnemonicMessage>>;
|
|
93
63
|
export declare const add_key_command = "add_key";
|
|
94
64
|
export type add_key_command = typeof add_key_command;
|
|
95
|
-
export type TAddKeyRequest =
|
|
96
|
-
|
|
97
|
-
};
|
|
98
|
-
export type TAddKeyResponse = {
|
|
99
|
-
success: false;
|
|
100
|
-
error: str;
|
|
101
|
-
word?: unknown;
|
|
102
|
-
} | {
|
|
103
|
-
fingerprint: int;
|
|
104
|
-
};
|
|
65
|
+
export type TAddKeyRequest = AddKeyRequest;
|
|
66
|
+
export type TAddKeyResponse = AddKeyResponse;
|
|
105
67
|
export type WsAddKeyMessage = GetMessageType<chia_wallet_service, add_key_command, TAddKeyResponse>;
|
|
106
|
-
export declare function add_key<T extends TRPCAgent | TDaemon>(agent: T, data: TAddKeyRequest): Promise<ResType<T,
|
|
68
|
+
export declare function add_key<T extends TRPCAgent | TDaemon>(agent: T, data: TAddKeyRequest): Promise<ResType<T, AddKeyResponse, WsAddKeyMessage>>;
|
|
107
69
|
export declare const delete_key_command = "delete_key";
|
|
108
70
|
export type delete_key_command = typeof delete_key_command;
|
|
109
|
-
export type TDeleteKeyRequest =
|
|
110
|
-
fingerprint: int;
|
|
111
|
-
};
|
|
71
|
+
export type TDeleteKeyRequest = DeleteKeyRequest;
|
|
112
72
|
export type TDeleteKeyResponse = Record<string, never>;
|
|
113
73
|
export type WsDeleteKeyMessage = GetMessageType<chia_wallet_service, delete_key_command, TDeleteKeyResponse>;
|
|
114
74
|
export declare function delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TDeleteKeyRequest): Promise<ResType<T, TDeleteKeyResponse, WsDeleteKeyMessage>>;
|
|
115
75
|
export declare const check_delete_key_command = "check_delete_key";
|
|
116
76
|
export type check_delete_key_command = typeof check_delete_key_command;
|
|
117
|
-
export type TCheckDeleteKeyRequest =
|
|
118
|
-
|
|
119
|
-
max_ph_to_search?: int;
|
|
120
|
-
};
|
|
121
|
-
export type TCheckDeleteKeyResponse = {
|
|
122
|
-
fingerprint: int;
|
|
123
|
-
used_for_farmer_rewards: bool;
|
|
124
|
-
used_for_pool_rewards: bool;
|
|
125
|
-
wallet_balance: bool;
|
|
126
|
-
};
|
|
77
|
+
export type TCheckDeleteKeyRequest = CheckDeleteKeyRequest;
|
|
78
|
+
export type TCheckDeleteKeyResponse = CheckDeleteKeyResponse;
|
|
127
79
|
export type WsCheckDeleteKeyMessage = GetMessageType<chia_wallet_service, check_delete_key_command, TCheckDeleteKeyResponse>;
|
|
128
|
-
export declare function check_delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckDeleteKeyRequest): Promise<ResType<T,
|
|
80
|
+
export declare function check_delete_key<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckDeleteKeyRequest): Promise<ResType<T, CheckDeleteKeyResponse, WsCheckDeleteKeyMessage>>;
|
|
129
81
|
export declare const delete_all_keys_command = "delete_all_keys";
|
|
130
82
|
export type delete_all_keys_command = typeof delete_all_keys_command;
|
|
131
|
-
export type
|
|
132
|
-
export type TDeleteAllKeysResponse = Record<string, never> | {
|
|
133
|
-
success: False;
|
|
134
|
-
error: str;
|
|
135
|
-
};
|
|
83
|
+
export type TDeleteAllKeysResponse = Record<string, never>;
|
|
136
84
|
export type WsDeleteAllKeysMessage = GetMessageType<chia_wallet_service, delete_all_keys_command, TDeleteAllKeysResponse>;
|
|
137
85
|
export declare function delete_all_keys<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TDeleteAllKeysResponse, WsDeleteAllKeysMessage>>;
|
|
138
86
|
export declare const set_wallet_resync_on_startup_command = "set_wallet_resync_on_startup";
|
|
139
87
|
export type set_wallet_resync_on_startup_command = typeof set_wallet_resync_on_startup_command;
|
|
140
|
-
export type TSetWalletResyncOnStartupRequest =
|
|
141
|
-
enable?: bool;
|
|
142
|
-
};
|
|
88
|
+
export type TSetWalletResyncOnStartupRequest = SetWalletResyncOnStartup | SetWalletResyncOnStartupCHIP0029;
|
|
143
89
|
export type TSetWalletResyncOnStartupResponse = {
|
|
144
90
|
success: True;
|
|
145
91
|
};
|
|
@@ -147,55 +93,46 @@ export type WsSetWalletResyncOnStartupMessage = GetMessageType<chia_wallet_servi
|
|
|
147
93
|
export declare function set_wallet_resync_on_startup<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TSetWalletResyncOnStartupResponse, WsSetWalletResyncOnStartupMessage>>;
|
|
148
94
|
export declare const get_sync_status_command = "get_sync_status";
|
|
149
95
|
export type get_sync_status_command = typeof get_sync_status_command;
|
|
150
|
-
export type
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
};
|
|
155
|
-
export type WsGetSyncStatusMessage = GetMessageType<chia_wallet_service, get_sync_status_command, TGetSyncStatusResponse>;
|
|
156
|
-
export declare function get_sync_status<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetSyncStatusResponse, WsGetSyncStatusMessage>>;
|
|
96
|
+
export type TGetSyncStatus = GetSyncStatus;
|
|
97
|
+
export type TGetSyncStatusResponse = GetSyncStatusResponse;
|
|
98
|
+
export type WsGetSyncStatusMessage<R> = GetMessageType<chia_wallet_service, get_sync_status_command, R>;
|
|
99
|
+
export declare function get_sync_status<T extends TRPCAgent | TDaemon, D extends TGetSyncStatus | undefined = undefined>(agent: T, data?: D): Promise<ResType<T, GetSyncStatusResponse, WsGetSyncStatusMessage<GetSyncStatusResponse>>>;
|
|
157
100
|
export declare const get_height_info_command = "get_height_info";
|
|
158
101
|
export type get_height_info_command = typeof get_height_info_command;
|
|
159
|
-
export type
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
export
|
|
163
|
-
export declare function get_height_info<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetHeightInfoResponse, WsGetHeightInfoMessage>>;
|
|
102
|
+
export type TGetHeightInfoRequest = GetHeightInfo;
|
|
103
|
+
export type TGetHeightInfoResponse = GetHeightInfoResponse;
|
|
104
|
+
export type WsGetHeightInfoMessage<R> = GetMessageType<chia_wallet_service, get_height_info_command, R>;
|
|
105
|
+
export declare function get_height_info<T extends TRPCAgent | TDaemon, D extends TGetHeightInfoRequest | undefined = undefined>(agent: T, data?: D): Promise<ResType<T, GetHeightInfoResponse, WsGetHeightInfoMessage<GetHeightInfoResponse>>>;
|
|
164
106
|
export declare const push_tx_command = "push_tx";
|
|
165
107
|
export type push_tx_command = typeof push_tx_command;
|
|
166
|
-
export type TPushTxRequest =
|
|
167
|
-
spend_bundle: str;
|
|
168
|
-
};
|
|
108
|
+
export type TPushTxRequest = PushTX | PushTXCHIP0029;
|
|
169
109
|
export type TPushTxResponse = Record<string, never>;
|
|
170
110
|
export type WsPushTxMessageOfWallet = GetMessageType<chia_wallet_service, push_tx_command, TPushTxResponse>;
|
|
171
111
|
export declare function push_tx<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTxRequest): Promise<ResType<T, TPushTxResponseOfWallet, WsPushTxMessageOfWallet>>;
|
|
172
112
|
export declare const push_transactions_command = "push_transactions";
|
|
173
113
|
export type push_transactions_command = typeof push_transactions_command;
|
|
174
|
-
export type TPushTransactionsRequest =
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export type TPushTransactionsResponse = Record<string, never>;
|
|
179
|
-
export type WsPushTransactionsMessage = GetMessageType<chia_wallet_service, push_transactions_command, TPushTransactionsResponse>;
|
|
180
|
-
export declare function push_transactions<T extends TRPCAgent | TDaemon>(agent: T, data: TPushTransactionsRequest): Promise<ResType<T, TPushTransactionsResponse, WsPushTransactionsMessage>>;
|
|
114
|
+
export type TPushTransactionsRequest = PushTransactions | PushTransactionsCHIP0029;
|
|
115
|
+
export type TPushTransactionsResponse = PushTransactionsResponse | PushTransactionsResponseCHIP0029;
|
|
116
|
+
export type WsPushTransactionsMessage<R> = GetMessageType<chia_wallet_service, push_transactions_command, R>;
|
|
117
|
+
export declare function push_transactions<T extends TRPCAgent | TDaemon, D extends PushTransactions | PushTransactionsCHIP0029>(agent: T, data: D): Promise<ResType<T, MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>, WsPushTransactionsMessage<MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>;
|
|
181
118
|
export declare const get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
182
119
|
export type get_timestamp_for_height_command = typeof get_timestamp_for_height_command;
|
|
183
|
-
export type
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
export
|
|
187
|
-
export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TGetTimestampForHeightResponse, WsGetTimestampForHeightMessage>>;
|
|
120
|
+
export type TGetTimestampForHeightRequest = GetTimestampForHeightRequest | GetTimestampForHeightRequestCHIP0029;
|
|
121
|
+
export type TGetTimestampForHeightResponse = GetTimestampForHeightResponse;
|
|
122
|
+
export type WsGetTimestampForHeightMessage<R> = GetMessageType<chia_wallet_service, get_timestamp_for_height_command, R>;
|
|
123
|
+
export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon, D extends TGetTimestampForHeightRequest>(agent: T, params: D): Promise<ResType<T, GetTimestampForHeightResponse, WsGetTimestampForHeightMessage<GetTimestampForHeightResponse>>>;
|
|
188
124
|
export declare const set_auto_claim_command = "set_auto_claim";
|
|
189
125
|
export type set_auto_claim_command = typeof set_auto_claim_command;
|
|
190
|
-
export type TSetAutoClaimRequest = AutoClaimSettings;
|
|
191
|
-
export type TSetAutoClaimResponse = AutoClaimSettings;
|
|
192
|
-
export type WsSetAutoClaimMessage = GetMessageType<chia_wallet_service, set_auto_claim_command,
|
|
193
|
-
export declare function set_auto_claim<T extends TRPCAgent | TDaemon>(agent: T, data:
|
|
126
|
+
export type TSetAutoClaimRequest = AutoClaimSettings | (AutoClaimSettingsCHIP0029 & Marshall);
|
|
127
|
+
export type TSetAutoClaimResponse = AutoClaimSettings | AutoClaimSettingsCHIP0029;
|
|
128
|
+
export type WsSetAutoClaimMessage<R> = GetMessageType<chia_wallet_service, set_auto_claim_command, R>;
|
|
129
|
+
export declare function set_auto_claim<T extends TRPCAgent | TDaemon, D extends TSetAutoClaimRequest>(agent: T, data: D): Promise<ResType<T, MaybeMarshall<D, AutoClaimSettings, AutoClaimSettingsCHIP0029>, WsSetAutoClaimMessage<MaybeMarshall<D, AutoClaimSettings, AutoClaimSettingsCHIP0029>>>>;
|
|
194
130
|
export declare const get_auto_claim_command = "get_auto_claim";
|
|
195
131
|
export type get_auto_claim_command = typeof get_auto_claim_command;
|
|
196
|
-
export type
|
|
197
|
-
export type
|
|
198
|
-
export
|
|
132
|
+
export type TGetAutoClaimRequest = Marshall;
|
|
133
|
+
export type TGetAutoClaimResponse = AutoClaimSettings | AutoClaimSettingsCHIP0029;
|
|
134
|
+
export type WsGetAutoClaimMessage<R> = GetMessageType<chia_wallet_service, get_auto_claim_command, R>;
|
|
135
|
+
export declare function get_auto_claim<T extends TRPCAgent | TDaemon, D extends TGetAutoClaimRequest | undefined = undefined>(agent: T, params?: D): Promise<ResType<T, MaybeMarshall<D, AutoClaimSettings, AutoClaimSettingsCHIP0029>, WsGetAutoClaimMessage<MaybeMarshall<D, AutoClaimSettings, AutoClaimSettingsCHIP0029>>>>;
|
|
199
136
|
export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
200
137
|
export type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
|
|
201
138
|
export type TGetInitialFreezePeriodResponseOfWallet = {
|
|
@@ -544,7 +481,7 @@ export type TSelectCoinsRequest = {
|
|
|
544
481
|
wallet_id: uint32;
|
|
545
482
|
exclude_coins?: Optional<Coin[]>;
|
|
546
483
|
excluded_coins?: Optional<Coin[]>;
|
|
547
|
-
} &
|
|
484
|
+
} & TXConfigLoader;
|
|
548
485
|
export type TSelectCoinsResponse = {
|
|
549
486
|
coins: Coin[];
|
|
550
487
|
};
|
|
@@ -657,6 +594,26 @@ export type TGetTransactionMemoResponse = {
|
|
|
657
594
|
};
|
|
658
595
|
export type WsGetTransactionMemoMessage = GetMessageType<chia_wallet_service, get_transaction_memo_command, TGetTransactionMemoResponse>;
|
|
659
596
|
export declare function get_transaction_memo<T extends TRPCAgent | TDaemon>(agent: T, data: TGetTransactionMemoRequest): Promise<ResType<T, TGetTransactionMemoResponse, WsGetTransactionMemoMessage>>;
|
|
597
|
+
export declare const split_coins_command = "split_coins";
|
|
598
|
+
export type split_coins_command = typeof split_coins_command;
|
|
599
|
+
export type TSplitCoinsRequest = SplitCoins | SplitCoinsCHIP0029;
|
|
600
|
+
export type TSplitCoinsResponse = SplitCoinsResponse | SplitCoinsResponseCHIP0029;
|
|
601
|
+
export type WsSplitCoinsMessage<R> = GetMessageType<chia_wallet_service, split_coins_command, R>;
|
|
602
|
+
export declare function split_coins<T extends TRPCAgent | TDaemon, D extends TSplitCoinsRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, D extends {
|
|
603
|
+
"CHIP-0029": true;
|
|
604
|
+
} ? import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>, WsSplitCoinsMessage<TxeResp<D, D extends {
|
|
605
|
+
"CHIP-0029": true;
|
|
606
|
+
} ? import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>;
|
|
607
|
+
export declare const combine_coins_command = "combine_coins";
|
|
608
|
+
export type combine_coins_command = typeof combine_coins_command;
|
|
609
|
+
export type TCombineCoinsRequest = CombineCoins & CombineCoinsCHIP0029;
|
|
610
|
+
export type TCombineCoinsResponse = CombineCoinsResponse | CombineCoinsResponseCHIP0029;
|
|
611
|
+
export type WsCombineCoinsMessage<R> = GetMessageType<chia_wallet_service, combine_coins_command, R>;
|
|
612
|
+
export declare function combine_coins<T extends TRPCAgent | TDaemon, D extends TCombineCoinsRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, D extends {
|
|
613
|
+
"CHIP-0029": true;
|
|
614
|
+
} ? TCombineCoinsResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>, WsCombineCoinsMessage<TxeResp<D, D extends {
|
|
615
|
+
"CHIP-0029": true;
|
|
616
|
+
} ? TCombineCoinsResponse : import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>;
|
|
660
617
|
export declare const sign_message_by_address_command = "sign_message_by_address";
|
|
661
618
|
export type sign_message_by_address_command = typeof sign_message_by_address_command;
|
|
662
619
|
export type TSignMessageByAddressRequest = {
|
|
@@ -960,7 +917,7 @@ export type TDidUpdateMetadataRequest = {
|
|
|
960
917
|
export type TDidUpdateMetadataResponse = {
|
|
961
918
|
success: True;
|
|
962
919
|
wallet_id: uint32;
|
|
963
|
-
spend_bundle:
|
|
920
|
+
spend_bundle: WalletSpendBundle;
|
|
964
921
|
transactions: TransactionRecordConvenience[];
|
|
965
922
|
signing_responses?: str[];
|
|
966
923
|
} | {
|
|
@@ -1119,7 +1076,7 @@ export type TDidMessageSpendRequest = {
|
|
|
1119
1076
|
} & TXEndpointRequest;
|
|
1120
1077
|
export type TDidMessageSpendResponse = {
|
|
1121
1078
|
success: True;
|
|
1122
|
-
spend_bundle:
|
|
1079
|
+
spend_bundle: WalletSpendBundle;
|
|
1123
1080
|
transactions: TransactionRecordConvenience[];
|
|
1124
1081
|
signing_responses?: str[];
|
|
1125
1082
|
};
|
|
@@ -1435,7 +1392,7 @@ export type TNftMintNftRequest = {
|
|
|
1435
1392
|
export type TNftMintNftResponse = {
|
|
1436
1393
|
wallet_id: uint32;
|
|
1437
1394
|
success: True;
|
|
1438
|
-
spend_bundle:
|
|
1395
|
+
spend_bundle: WalletSpendBundle;
|
|
1439
1396
|
nft_id: Optional<str>;
|
|
1440
1397
|
transactions: TransactionRecordConvenience[];
|
|
1441
1398
|
signing_responses?: str[];
|
|
@@ -1483,7 +1440,7 @@ export type TNftSetNftDidRequest = {
|
|
|
1483
1440
|
export type TNftSetNftDidResponse = {
|
|
1484
1441
|
wallet_id: uint32;
|
|
1485
1442
|
success: True;
|
|
1486
|
-
spend_bundle:
|
|
1443
|
+
spend_bundle: WalletSpendBundle;
|
|
1487
1444
|
transactions: TransactionRecordConvenience[];
|
|
1488
1445
|
signing_responses?: str[];
|
|
1489
1446
|
} | {
|
|
@@ -1508,7 +1465,7 @@ export type TNftSetDidBulkResponse = {
|
|
|
1508
1465
|
} | {
|
|
1509
1466
|
success: True;
|
|
1510
1467
|
wallet_id: uint32[];
|
|
1511
|
-
spend_bundle:
|
|
1468
|
+
spend_bundle: WalletSpendBundle;
|
|
1512
1469
|
tx_num: int;
|
|
1513
1470
|
transactions: TransactionRecordConvenience[];
|
|
1514
1471
|
signing_responses?: str[];
|
|
@@ -1531,7 +1488,7 @@ export type TNftTransferBulkResponse = {
|
|
|
1531
1488
|
} | {
|
|
1532
1489
|
success: True;
|
|
1533
1490
|
wallet_id: uint32[];
|
|
1534
|
-
spend_bundle:
|
|
1491
|
+
spend_bundle: WalletSpendBundle;
|
|
1535
1492
|
tx_num: int;
|
|
1536
1493
|
transactions: TransactionRecordConvenience[];
|
|
1537
1494
|
signing_responses?: str[];
|
|
@@ -1598,7 +1555,7 @@ export type TNftTransferNftRequest = {
|
|
|
1598
1555
|
export type TNftTransferNftResponse = {
|
|
1599
1556
|
success: True;
|
|
1600
1557
|
wallet_id: uint32;
|
|
1601
|
-
spend_bundle:
|
|
1558
|
+
spend_bundle: WalletSpendBundle;
|
|
1602
1559
|
transactions: TransactionRecordConvenience[];
|
|
1603
1560
|
signing_responses?: str[];
|
|
1604
1561
|
} | {
|
|
@@ -1634,7 +1591,7 @@ export type TNftAddUriRequest = {
|
|
|
1634
1591
|
export type TNftAddUriResponse = {
|
|
1635
1592
|
success: True;
|
|
1636
1593
|
wallet_id: uint32;
|
|
1637
|
-
spend_bundle:
|
|
1594
|
+
spend_bundle: WalletSpendBundle;
|
|
1638
1595
|
transactions: TransactionRecordConvenience[];
|
|
1639
1596
|
signing_responses?: str[];
|
|
1640
1597
|
};
|
|
@@ -1693,7 +1650,7 @@ export type TNftMintBulkResponse = {
|
|
|
1693
1650
|
error: str;
|
|
1694
1651
|
} | {
|
|
1695
1652
|
success: True;
|
|
1696
|
-
spend_bundle:
|
|
1653
|
+
spend_bundle: WalletSpendBundle;
|
|
1697
1654
|
nft_id_list: str[];
|
|
1698
1655
|
transactions: TransactionRecordConvenience[];
|
|
1699
1656
|
signing_responses?: str[];
|
|
@@ -1903,6 +1860,9 @@ export type dl_owned_singletons_command = typeof dl_owned_singletons_command;
|
|
|
1903
1860
|
export type TDlOwnedSingletonsResponse = {
|
|
1904
1861
|
singletons: SingletonRecord[];
|
|
1905
1862
|
count: int;
|
|
1863
|
+
} | {
|
|
1864
|
+
success: False;
|
|
1865
|
+
error: str;
|
|
1906
1866
|
};
|
|
1907
1867
|
export type WsDlOwnedSingletonsMessage = GetMessageType<chia_wallet_service, dl_owned_singletons_command, TDlOwnedSingletonsResponse>;
|
|
1908
1868
|
export declare function dl_owned_singletons<T extends TRPCAgent | TDaemon>(agent: T): Promise<ResType<T, TDlOwnedSingletonsResponse, WsDlOwnedSingletonsMessage>>;
|
|
@@ -1949,97 +1909,48 @@ export type TDlVerifyProofRequest = DLProof;
|
|
|
1949
1909
|
export type TDlVerifyProofResponse = VerifyProofResponse;
|
|
1950
1910
|
export type WsDlVerifyProofMessage = GetMessageType<chia_wallet_service, dl_verify_proof_command, TDlVerifyProofResponse>;
|
|
1951
1911
|
export declare function dl_verify_proof<T extends TRPCAgent | TDaemon>(agent: T, data: TDlVerifyProofRequest): Promise<ResType<T, VerifyProofResponse, WsDlVerifyProofMessage>>;
|
|
1952
|
-
export type VCMint = {
|
|
1953
|
-
did_id: str;
|
|
1954
|
-
target_address: Optional<str>;
|
|
1955
|
-
fee: uint64;
|
|
1956
|
-
};
|
|
1957
1912
|
export declare const vc_mint_command = "vc_mint";
|
|
1958
1913
|
export type vc_mint_command = typeof vc_mint_command;
|
|
1959
|
-
export type TVcMintRequest = VCMint
|
|
1960
|
-
export type TVcMintResponse =
|
|
1961
|
-
vc_record: VCRecord;
|
|
1962
|
-
transactions: TransactionRecordConvenience[];
|
|
1963
|
-
signing_responses?: str[];
|
|
1964
|
-
};
|
|
1914
|
+
export type TVcMintRequest = VCMint | VCMintCHIP0029;
|
|
1915
|
+
export type TVcMintResponse = VcMintResponse | VcMintResponseCHIP0029;
|
|
1965
1916
|
export type WsVcMintMessage<R> = GetMessageType<chia_wallet_service, vc_mint_command, R>;
|
|
1966
|
-
export declare function vc_mint<T extends TRPCAgent | TDaemon, D extends TVcMintRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D,
|
|
1967
|
-
export type VCGet = {
|
|
1968
|
-
vc_id: bytes32;
|
|
1969
|
-
};
|
|
1917
|
+
export declare function vc_mint<T extends TRPCAgent | TDaemon, D extends TVcMintRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, MaybeMarshall<D, VcMintResponse, VcMintResponseCHIP0029>>, WsVcMintMessage<TxeResp<D, MaybeMarshall<D, VcMintResponse, VcMintResponseCHIP0029>>>>>;
|
|
1970
1918
|
export declare const vc_get_command = "vc_get";
|
|
1971
1919
|
export type vc_get_command = typeof vc_get_command;
|
|
1972
|
-
export type TVcGetRequest = VCGet;
|
|
1973
|
-
export type TVcGetResponse =
|
|
1974
|
-
vc_record: VCRecord | None;
|
|
1975
|
-
};
|
|
1920
|
+
export type TVcGetRequest = VCGet | VCGetCHIP0029;
|
|
1921
|
+
export type TVcGetResponse = VcGetResponse;
|
|
1976
1922
|
export type WsVcGetMessage = GetMessageType<chia_wallet_service, vc_get_command, TVcGetResponse>;
|
|
1977
|
-
export declare function vc_get<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetRequest): Promise<ResType<T,
|
|
1978
|
-
export type VcGetList = {
|
|
1979
|
-
start: uint32;
|
|
1980
|
-
end: uint32;
|
|
1981
|
-
};
|
|
1923
|
+
export declare function vc_get<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetRequest): Promise<ResType<T, VcGetResponse, WsVcGetMessage>>;
|
|
1982
1924
|
export declare const vc_get_list_command = "vc_get_list";
|
|
1983
1925
|
export type vc_get_list_command = typeof vc_get_list_command;
|
|
1984
|
-
export type TVcGetListRequest = VcGetList;
|
|
1985
|
-
export type TVcGetListResponse =
|
|
1986
|
-
vc_records: Array<VCRecord & {
|
|
1987
|
-
coin_id: str;
|
|
1988
|
-
}>;
|
|
1989
|
-
proofs: Record<str, Record<str, str> | None>;
|
|
1990
|
-
};
|
|
1926
|
+
export type TVcGetListRequest = VcGetList | VcGetListCHIP0029;
|
|
1927
|
+
export type TVcGetListResponse = VcGetListResponse;
|
|
1991
1928
|
export type WsVcGetListMessage = GetMessageType<chia_wallet_service, vc_get_list_command, TVcGetListResponse>;
|
|
1992
|
-
export declare function vc_get_list<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetListRequest): Promise<ResType<T,
|
|
1993
|
-
export type VcSpend = {
|
|
1994
|
-
vc_id: bytes32;
|
|
1995
|
-
new_puzhash: Optional<bytes32>;
|
|
1996
|
-
new_proof_hash: Optional<bytes32>;
|
|
1997
|
-
provider_inner_puzhash: Optional<bytes32>;
|
|
1998
|
-
fee: uint64;
|
|
1999
|
-
};
|
|
1929
|
+
export declare function vc_get_list<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetListRequest): Promise<ResType<T, VcGetListResponse, WsVcGetListMessage>>;
|
|
2000
1930
|
export declare const vc_spend_command = "vc_spend";
|
|
2001
1931
|
export type vc_spend_command = typeof vc_spend_command;
|
|
2002
|
-
export type TVcSpendRequest = VcSpend
|
|
2003
|
-
export type TVcSpendResponse =
|
|
2004
|
-
transactions: TransactionRecordConvenience[];
|
|
2005
|
-
signing_responses?: str[];
|
|
2006
|
-
};
|
|
1932
|
+
export type TVcSpendRequest = VcSpend | VcSpendCHIP0029;
|
|
1933
|
+
export type TVcSpendResponse = VcSpendResponse | VcSpendResponseCHIP0029;
|
|
2007
1934
|
export type WsVcSpendMessage<R> = GetMessageType<chia_wallet_service, vc_spend_command, R>;
|
|
2008
|
-
export declare function vc_spend<T extends TRPCAgent | TDaemon, D extends TVcSpendRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D,
|
|
1935
|
+
export declare function vc_spend<T extends TRPCAgent | TDaemon, D extends TVcSpendRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>, WsVcSpendMessage<TxeResp<D, MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>>;
|
|
2009
1936
|
export declare const vc_add_proofs_command = "vc_add_proofs";
|
|
2010
1937
|
export type vc_add_proofs_command = typeof vc_add_proofs_command;
|
|
2011
|
-
export type TVcAddProofsRequest =
|
|
2012
|
-
proofs: {
|
|
2013
|
-
key_value_pairs: Record<str, str>;
|
|
2014
|
-
};
|
|
2015
|
-
};
|
|
1938
|
+
export type TVcAddProofsRequest = VcAddProofs | VcAddProofsCHIP0029;
|
|
2016
1939
|
export type TVcAddProofsResponse = Record<string, never>;
|
|
2017
1940
|
export type WsVcAddProofsMessage = GetMessageType<chia_wallet_service, vc_add_proofs_command, TVcAddProofsResponse>;
|
|
2018
1941
|
export declare function vc_add_proofs<T extends TRPCAgent | TDaemon>(agent: T, data: TVcAddProofsRequest): Promise<ResType<T, TVcAddProofsResponse, WsVcAddProofsMessage>>;
|
|
2019
|
-
export type VCGetProofsForRoot = {
|
|
2020
|
-
root: bytes32;
|
|
2021
|
-
};
|
|
2022
1942
|
export declare const vc_get_proofs_for_root_command = "vc_get_proofs_for_root";
|
|
2023
1943
|
export type vc_get_proofs_for_root_command = typeof vc_get_proofs_for_root_command;
|
|
2024
|
-
export type TVcGetProofsForRootRequest = VCGetProofsForRoot;
|
|
2025
|
-
export type TVcGetProofsForRootResponse =
|
|
2026
|
-
proofs: Record<str, str>;
|
|
2027
|
-
};
|
|
1944
|
+
export type TVcGetProofsForRootRequest = VCGetProofsForRoot | VCGetProofsForRootCHIP0029;
|
|
1945
|
+
export type TVcGetProofsForRootResponse = VCGetProofsForRootResponse;
|
|
2028
1946
|
export type WsVcGetProofsForRootMessage = GetMessageType<chia_wallet_service, vc_get_proofs_for_root_command, TVcGetProofsForRootResponse>;
|
|
2029
|
-
export declare function vc_get_proofs_for_root<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetProofsForRootRequest): Promise<ResType<T,
|
|
2030
|
-
export type VcRevoke = {
|
|
2031
|
-
vc_parent_id: bytes32;
|
|
2032
|
-
fee: uint64;
|
|
2033
|
-
};
|
|
1947
|
+
export declare function vc_get_proofs_for_root<T extends TRPCAgent | TDaemon>(agent: T, data: TVcGetProofsForRootRequest): Promise<ResType<T, import("../../chia/rpc/wallet_request_types").VCProofsRPC, WsVcGetProofsForRootMessage>>;
|
|
2034
1948
|
export declare const vc_revoke_command = "vc_revoke";
|
|
2035
1949
|
export type vc_revoke_command = typeof vc_revoke_command;
|
|
2036
|
-
export type TVcRevokeRequest = VcRevoke
|
|
2037
|
-
export type TVcRevokeResponse =
|
|
2038
|
-
transactions: TransactionRecordConvenience[];
|
|
2039
|
-
signing_responses?: str[];
|
|
2040
|
-
};
|
|
1950
|
+
export type TVcRevokeRequest = VcRevoke | VcRevokeCHIP0029;
|
|
1951
|
+
export type TVcRevokeResponse = VcRevokeResponse | VcRevokeResponseCHIP0029;
|
|
2041
1952
|
export type WsVcRevokeMessage<R> = GetMessageType<chia_wallet_service, vc_revoke_command, R>;
|
|
2042
|
-
export declare function vc_revoke<T extends TRPCAgent | TDaemon, D extends TVcRevokeRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D,
|
|
1953
|
+
export declare function vc_revoke<T extends TRPCAgent | TDaemon, D extends TVcRevokeRequest>(agent: T, data: D): Promise<ResType<T, TxeResp<D, MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>, WsVcRevokeMessage<TxeResp<D, MaybeMarshall<D, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponse, import("../../chia/rpc/wallet_request_types").TransactionEndpointResponseCHIP0029>>>>>;
|
|
2043
1954
|
export type CrcatApprovePending = {
|
|
2044
1955
|
wallet_id: uint32;
|
|
2045
1956
|
min_amount_to_claim: uint64;
|
|
@@ -2078,4 +1989,4 @@ export type TExecuteSigningInstructionsRequest = ExecuteSigningInstructions | Ex
|
|
|
2078
1989
|
export type TExecuteSigningInstructionsResponse = ExecuteSigningInstructionsResponse | ExecuteSigningInstructionsResponseCHIP0029;
|
|
2079
1990
|
export type WsExecuteSigningInstructionsMessage<R> = GetMessageType<chia_wallet_service, execute_signing_instructions_command, R>;
|
|
2080
1991
|
export declare function execute_signing_instructions<T extends TRPCAgent | TDaemon, D extends TExecuteSigningInstructionsRequest>(agent: T, data: D): Promise<ResType<T, D extends ExecuteSigningInstructionsCHIP0029 ? ExecuteSigningInstructionsResponseCHIP0029 : ExecuteSigningInstructionsResponse, WsExecuteSigningInstructionsMessage<D extends ExecuteSigningInstructionsCHIP0029 ? ExecuteSigningInstructionsResponseCHIP0029 : ExecuteSigningInstructionsResponse>>>;
|
|
2081
|
-
export type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TGetTransactionMemoResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TDaoAdjustFilterLevelResponse | TDaoAddFundsToTreasuryResponse | TDaoGetTreasuryBalanceResponse | TDaoGetTreasuryIdResponse | TDaoGetRulesResponse | TDaoSendToLockupResponse | TDaoGetProposalsResponse | TDaoGetProposalStateResponse | TDaoExitLockupResponse | TDaoCreateProposalResponse | TDaoVoteOnProposalResponse | TDaoParseProposalResponse | TDaoCloseProposalResponse | TDaoFreeCoinsFromFinishedProposalsResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TGetTimestampForHeightResponse | TSetAutoClaimResponse | TGetAutoClaimResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletBalancesResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TSpendClawbackCoinsResponse | TGetCoinRecordsResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse | TDlVerifyProofResponse | TVcMintResponse | TVcGetResponse | TVcGetListResponse | TVcSpendResponse | TVcAddProofsResponse | TVcGetProofsForRootResponse | TVcRevokeResponse | TCrcatApprovePendingResponse | TGatherSigningInfoResponse | TApplySignaturesResponse | TSubmitTransactionsResponse | TExecuteSigningInstructionsResponse;
|
|
1992
|
+
export type RpcWalletMessage = TAddKeyResponse | TAddRateLimitedFundsResponse | TCancelOfferResponse | TCancelOffersResponse | TCatGetAssetIdResponse | TCatGetNameResponse | TGetStrayCatsResponse | TCatAssetIdToNameResponse | TCatSetNameResponse | TCatSpendResponse | TCheckOfferValidityResponse | TCreateNewWalletResponse | TCreateOfferForIdsResponse | TCreateSignedTransactionResponse | TDeleteUnconfirmedTransactionsResponse | TSelectCoinsResponse | TGetSpendableCoinsResponse | TGetCoinRecordsByNamesResponse | TGetCurrentDerivationIndexResponse | TExtendDerivationIndexResponse | TGetNotificationsResponse | TDeleteNotificationsResponse | TSendNotificationResponse | TSignMessageByAddressResponse | TSignMessageByIdResponse | TVerifySignatureResponse | TGetTransactionMemoResponse | TSplitCoinsResponse | TCombineCoinsResponse | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkResponse | TDeleteAllKeysResponse | TSetWalletResyncOnStartupResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TDaoAdjustFilterLevelResponse | TDaoAddFundsToTreasuryResponse | TDaoGetTreasuryBalanceResponse | TDaoGetTreasuryIdResponse | TDaoGetRulesResponse | TDaoSendToLockupResponse | TDaoGetProposalsResponse | TDaoGetProposalStateResponse | TDaoExitLockupResponse | TDaoCreateProposalResponse | TDaoVoteOnProposalResponse | TDaoParseProposalResponse | TDaoCloseProposalResponse | TDaoFreeCoinsFromFinishedProposalsResponse | TNftMintNftResponse | TNftCountNftsResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TGetTimestampForHeightResponse | TSetAutoClaimResponse | TGetAutoClaimResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletBalancesResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TSpendClawbackCoinsResponse | TGetCoinRecordsResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse | TDlVerifyProofResponse | TVcMintResponse | TVcGetResponse | TVcGetListResponse | TVcSpendResponse | TVcAddProofsResponse | TVcGetProofsForRootResponse | TVcRevokeResponse | TCrcatApprovePendingResponse | TGatherSigningInfoResponse | TApplySignaturesResponse | TSubmitTransactionsResponse | TExecuteSigningInstructionsResponse;
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -10,11 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_command = exports.get_wallet_balances = exports.get_wallet_balances_command = exports.get_wallet_balance = exports.get_wallet_balance_command = exports.create_new_wallet = exports.create_new_wallet_command = exports.get_wallets = exports.get_wallets_command = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_auto_claim = exports.get_auto_claim_command = exports.set_auto_claim = exports.set_auto_claim_command = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.push_transactions = exports.push_transactions_command = exports.push_tx = exports.push_tx_command = exports.get_height_info = exports.get_height_info_command = exports.get_sync_status = exports.get_sync_status_command = exports.set_wallet_resync_on_startup = exports.set_wallet_resync_on_startup_command = exports.delete_all_keys = exports.delete_all_keys_command = exports.check_delete_key = exports.check_delete_key_command = exports.delete_key = exports.delete_key_command = exports.add_key = exports.add_key_command = exports.generate_mnemonic = exports.generate_mnemonic_command = exports.get_private_key = exports.get_private_key_command = exports.get_public_keys = exports.get_public_keys_command = exports.get_logged_in_fingerprint = exports.get_logged_in_fingerprint_command = exports.log_in = exports.log_in_command = exports.chia_wallet_service = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.execute_signing_instructions = exports.execute_signing_instructions_command = exports.submit_transactions = exports.submit_transactions_command = exports.apply_signatures = exports.apply_signatures_command = exports.gather_signing_info = exports.gather_signing_info_command = exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = void 0;
|
|
13
|
+
exports.cat_asset_id_to_name_command = exports.cat_set_name = exports.cat_set_name_command = exports.get_cat_list = exports.get_cat_list_command = exports.sign_message_by_id = exports.sign_message_by_id_command = exports.sign_message_by_address = exports.sign_message_by_address_command = exports.combine_coins = exports.combine_coins_command = exports.split_coins = exports.split_coins_command = exports.get_transaction_memo = exports.get_transaction_memo_command = exports.verify_signature = exports.verify_signature_command = exports.send_notification = exports.send_notification_command = exports.delete_notifications = exports.delete_notifications_command = exports.get_notifications = exports.get_notifications_command = exports.extend_derivation_index = exports.extend_derivation_index_command = exports.get_current_derivation_index = exports.get_current_derivation_index_command = exports.get_coin_records_by_names = exports.get_coin_records_by_names_command = exports.get_spendable_coins = exports.get_spendable_coins_command = exports.select_coins = exports.select_coins_command = exports.delete_unconfirmed_transactions = exports.delete_unconfirmed_transactions_command = exports.create_signed_transaction = exports.create_signed_transaction_command = exports.get_farmed_amount = exports.get_farmed_amount_command = exports.get_transaction_count = exports.get_transaction_count_command = exports.get_coin_records = exports.get_coin_records_command = exports.spend_clawback_coins = exports.spend_clawback_coins_command = exports.send_transaction_multi = exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = void 0;
|
|
14
|
+
exports.did_get_information_needed_for_recovery_command = exports.did_create_attest = exports.did_create_attest_command = exports.did_get_metadata = exports.did_get_metadata_command = exports.did_get_recovery_list = exports.did_get_recovery_list_command = exports.did_recovery_spend = exports.did_recovery_spend_command = exports.did_get_did = exports.did_get_did_command = exports.did_get_pubkey = exports.did_get_pubkey_command = exports.did_spend = exports.did_spend_command = exports.did_update_metadata = exports.did_update_metadata_command = exports.did_update_recovery_ids = exports.did_update_recovery_ids_command = exports.did_get_wallet_name = exports.did_get_wallet_name_command = exports.did_set_wallet_name = exports.did_set_wallet_name_command = exports.cancel_offers = exports.cancel_offers_command = exports.cancel_offer = exports.cancel_offer_command = exports.get_offers_count = exports.get_offers_count_command = exports.get_all_offers = exports.get_all_offers_command = exports.get_offer = exports.get_offer_command = exports.take_offer = exports.take_offer_command = exports.check_offer_validity = exports.check_offer_validity_command = exports.get_offer_summary = exports.get_offer_summary_command = exports.create_offer_for_ids = exports.create_offer_for_ids_command = exports.cat_get_asset_id = exports.cat_get_asset_id_command = exports.cat_spend = exports.cat_spend_command = exports.get_stray_cats = exports.get_stray_cats_command = exports.cat_get_name = exports.cat_get_name_command = exports.cat_asset_id_to_name = void 0;
|
|
15
|
+
exports.nft_set_did_bulk_command = exports.nft_set_nft_did = exports.nft_set_nft_did_command = exports.nft_get_nfts = exports.nft_get_nfts_command = exports.nft_count_nfts = exports.nft_count_nfts_command = exports.nft_mint_nft = exports.nft_mint_nft_command = exports.dao_free_coins_from_finished_proposals = exports.dao_free_coins_from_finished_proposals_command = exports.dao_close_proposal = exports.dao_close_proposal_command = exports.dao_parse_proposal = exports.dao_parse_proposal_command = exports.dao_vote_on_proposal = exports.dao_vote_on_proposal_command = exports.dao_create_proposal = exports.dao_create_proposal_command = exports.dao_exit_lockup = exports.dao_exit_lockup_command = exports.dao_get_proposal_state = exports.dao_get_proposal_state_command = exports.dao_get_proposals = exports.dao_get_proposals_command = exports.dao_send_to_lockup = exports.dao_send_to_lockup_command = exports.dao_get_rules = exports.dao_get_rules_command = exports.dao_get_treasury_id = exports.dao_get_treasury_id_command = exports.dao_get_treasury_balance = exports.dao_get_treasury_balance_command = exports.dao_add_funds_to_treasury = exports.dao_add_funds_to_treasury_command = exports.dao_adjust_filter_level = exports.dao_adjust_filter_level_command = exports.did_transfer_did = exports.did_transfer_did_command = exports.did_find_lost_did = exports.did_find_lost_did_command = exports.did_get_info = exports.did_get_info_command = exports.did_message_spend = exports.did_message_spend_command = exports.did_create_backup_file = exports.did_create_backup_file_command = exports.did_get_current_coin_info = exports.did_get_current_coin_info_command = exports.did_get_information_needed_for_recovery = void 0;
|
|
16
|
+
exports.dl_history_command = exports.dl_update_multiple = exports.dl_update_multiple_command = exports.dl_update_root = exports.dl_update_root_command = exports.dl_singletons_by_root = exports.dl_singletons_by_root_command = exports.dl_latest_singleton = exports.dl_latest_singleton_command = exports.dl_stop_tracking = exports.dl_stop_tracking_command = exports.dl_track_new = exports.dl_track_new_command = exports.create_new_dl = exports.create_new_dl_command = exports.pw_status = exports.pw_status_command = exports.pw_absorb_rewards = exports.pw_absorb_rewards_command = exports.pw_self_pool = exports.pw_self_pool_command = exports.pw_join_pool = exports.pw_join_pool_command = exports.add_rate_limited_funds = exports.add_rate_limited_funds_command = exports.send_clawback_transaction = exports.send_clawback_transaction_command = exports.rl_set_user_info = exports.rl_set_user_info_command = exports.nft_mint_bulk = exports.nft_mint_bulk_command = exports.nft_calculate_royalties = exports.nft_calculate_royalties_command = exports.nft_add_uri = exports.nft_add_uri_command = exports.nft_get_info = exports.nft_get_info_command = exports.nft_transfer_nft = exports.nft_transfer_nft_command = exports.nft_set_nft_status = exports.nft_set_nft_status_command = exports.nft_get_wallets_with_dids = exports.nft_get_wallets_with_dids_command = exports.nft_get_wallet_did = exports.nft_get_wallet_did_command = exports.nft_get_by_did = exports.nft_get_by_did_command = exports.nft_transfer_bulk = exports.nft_transfer_bulk_command = exports.nft_set_did_bulk = void 0;
|
|
17
|
+
exports.execute_signing_instructions = exports.execute_signing_instructions_command = exports.submit_transactions = exports.submit_transactions_command = exports.apply_signatures = exports.apply_signatures_command = exports.gather_signing_info = exports.gather_signing_info_command = exports.crcat_approve_pending = exports.crcat_approve_pending_command = exports.vc_revoke = exports.vc_revoke_command = exports.vc_get_proofs_for_root = exports.vc_get_proofs_for_root_command = exports.vc_add_proofs = exports.vc_add_proofs_command = exports.vc_spend = exports.vc_spend_command = exports.vc_get_list = exports.vc_get_list_command = exports.vc_get = exports.vc_get_command = exports.vc_mint = exports.vc_mint_command = exports.dl_verify_proof = exports.dl_verify_proof_command = exports.dl_delete_mirror = exports.dl_delete_mirror_command = exports.dl_new_mirror = exports.dl_new_mirror_command = exports.dl_get_mirrors = exports.dl_get_mirrors_command = exports.dl_owned_singletons = exports.dl_owned_singletons_command = exports.dl_history = void 0;
|
|
18
18
|
exports.chia_wallet_service = "chia_wallet";
|
|
19
19
|
// # Key management
|
|
20
20
|
exports.log_in_command = "log_in";
|
|
@@ -89,14 +89,14 @@ function set_wallet_resync_on_startup(agent) {
|
|
|
89
89
|
exports.set_wallet_resync_on_startup = set_wallet_resync_on_startup;
|
|
90
90
|
// # Wallet node
|
|
91
91
|
exports.get_sync_status_command = "get_sync_status";
|
|
92
|
-
function get_sync_status(agent) {
|
|
92
|
+
function get_sync_status(agent, data) {
|
|
93
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
94
|
return agent.sendMessage(exports.chia_wallet_service, exports.get_sync_status_command);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
exports.get_sync_status = get_sync_status;
|
|
98
98
|
exports.get_height_info_command = "get_height_info";
|
|
99
|
-
function get_height_info(agent) {
|
|
99
|
+
function get_height_info(agent, data) {
|
|
100
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
101
|
return agent.sendMessage(exports.chia_wallet_service, exports.get_height_info_command);
|
|
102
102
|
});
|
|
@@ -117,9 +117,9 @@ function push_transactions(agent, data) {
|
|
|
117
117
|
}
|
|
118
118
|
exports.push_transactions = push_transactions;
|
|
119
119
|
exports.get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
120
|
-
function get_timestamp_for_height(agent) {
|
|
120
|
+
function get_timestamp_for_height(agent, params) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command);
|
|
122
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command, params);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
exports.get_timestamp_for_height = get_timestamp_for_height;
|
|
@@ -131,12 +131,13 @@ function set_auto_claim(agent, data) {
|
|
|
131
131
|
}
|
|
132
132
|
exports.set_auto_claim = set_auto_claim;
|
|
133
133
|
exports.get_auto_claim_command = "get_auto_claim";
|
|
134
|
-
function get_auto_claim(agent) {
|
|
134
|
+
function get_auto_claim(agent, params) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
return agent.sendMessage(exports.chia_wallet_service, exports.get_auto_claim_command);
|
|
136
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_auto_claim_command, params);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
exports.get_auto_claim = get_auto_claim;
|
|
140
|
+
// This API was removed in `chia-blockchain@2.4.4`. Will be removed from `chia-agent` in the future.
|
|
140
141
|
exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
141
142
|
function get_initial_freeze_period_of_wallet(agent) {
|
|
142
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -320,6 +321,20 @@ function get_transaction_memo(agent, data) {
|
|
|
320
321
|
});
|
|
321
322
|
}
|
|
322
323
|
exports.get_transaction_memo = get_transaction_memo;
|
|
324
|
+
exports.split_coins_command = "split_coins";
|
|
325
|
+
function split_coins(agent, data) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.split_coins_command, data);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
exports.split_coins = split_coins;
|
|
331
|
+
exports.combine_coins_command = "combine_coins";
|
|
332
|
+
function combine_coins(agent, data) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.combine_coins_command, data);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
exports.combine_coins = combine_coins;
|
|
323
338
|
exports.sign_message_by_address_command = "sign_message_by_address";
|
|
324
339
|
function sign_message_by_address(agent, data) {
|
|
325
340
|
return __awaiter(this, void 0, void 0, function* () {
|