chia-agent 10.0.0 → 10.1.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 +64 -0
- package/README.md +5 -5
- package/api/chia/types/mempool_item.d.ts +2 -1
- package/api/chia/types/mojos.d.ts +2 -0
- package/api/chia/types/mojos.js +2 -0
- package/api/chia/types/signing_mode.d.ts +4 -0
- package/api/chia/types/signing_mode.js +2 -0
- package/api/rpc/common/index.d.ts +7 -2
- package/api/rpc/full_node/index.d.ts +11 -1
- package/api/rpc/index.d.ts +1 -1
- package/api/rpc/index.js +6 -3
- package/api/rpc/wallet/index.d.ts +42 -13
- package/api/rpc/wallet/index.js +19 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [10.1.0]
|
|
4
|
+
### Indirect Change
|
|
5
|
+
In `chia/types/mempool_items.py`, `assert_height` was added to `MempoolItem`.
|
|
6
|
+
As a result of this change, the responses from following RPC APIs are affected.
|
|
7
|
+
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
8
|
+
- [`get_all_mempool_items`](./src/api/rpc/full_node/README.md#getallmempoolitemsagent)
|
|
9
|
+
- [`get_mempool_item_by_tx_id`](./src/api/rpc/full_node/README.md#getmempoolitembytxidagent-params)
|
|
10
|
+
### Added
|
|
11
|
+
- [New Wallet RPC API](./src/api/rpc/wallet)
|
|
12
|
+
- [`get_timestamp_for_height`](./src/api/rpc/wallet/README.md#gettimestampforheightagent)
|
|
13
|
+
- [`nft_transfer_bulk`](./src/api/rpc/wallet/README.md#nfttransferbulkagent-params)
|
|
14
|
+
### Changed
|
|
15
|
+
- [Common RPC API](./src/api/rpc/common)
|
|
16
|
+
- [`open_connection`](./src/api/rpc/common/README.md#openconnectionagent-params)
|
|
17
|
+
- Added `success` to response
|
|
18
|
+
- Added `error` to response when `success` is `False`
|
|
19
|
+
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
20
|
+
- [`get_blockchain_state`](./src/api/rpc/full_node/README.md#getblockchainstateagent)
|
|
21
|
+
- Added `mempool_fees` to response
|
|
22
|
+
- [`get_fee_estimate`](./src/api/rpc/full_node/README.md#getfeeestimateagent-params)
|
|
23
|
+
- Added `spend_type` to request parameter
|
|
24
|
+
- Added `spend_count` to request parameter
|
|
25
|
+
- Added `mempool_fees` to response
|
|
26
|
+
- Added `num_spends` to response
|
|
27
|
+
- Added `last_block_cost` to response
|
|
28
|
+
- Added `fees_last_block` to response
|
|
29
|
+
- Added `fee_rate_last_block` to response
|
|
30
|
+
- Added `last_tx_block_height` to response
|
|
31
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
32
|
+
- [`get_notifications`](./src/api/rpc/wallet/README.md#getnotificationsagent-params)
|
|
33
|
+
- Added `height` to response
|
|
34
|
+
- [`verify_signature`](./src/api/rpc/wallet/README.md#verifysignatureagent-params)
|
|
35
|
+
- Added `signing_mode` to request parameter
|
|
36
|
+
- [`sign_message_by_address`](./src/api/rpc/wallet/README.md#signmessagebyaddressagent-params)
|
|
37
|
+
- Added `signing_mode` to response
|
|
38
|
+
- [`sign_message_by_id`](./src/api/rpc/wallet/README.md#signmessagebyidagent-params)
|
|
39
|
+
- Added `None` type to `latest_coin_id` in response
|
|
40
|
+
- Added `signing_mode` to response
|
|
41
|
+
- [`cat_spend`](./src/api/rpc/wallet/README.md#catspendagent-params)
|
|
42
|
+
- Added `coins` to response
|
|
43
|
+
- [`get_offer_summary`](./src/api/rpc/wallet/README.md#getoffersummaryagent-params)
|
|
44
|
+
- Added `id` to response
|
|
45
|
+
- [`check_offer_validity`](./src/api/rpc/wallet/README.md#checkoffervalidityagent-params)
|
|
46
|
+
- Added `id` to response
|
|
47
|
+
- [`did_message_spend`](./src/api/rpc/wallet/README.md#didmessagespendagent-params)
|
|
48
|
+
- Removed error response
|
|
49
|
+
- [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nftsetdidbulkagent-params)
|
|
50
|
+
- Added `tx_num to response
|
|
51
|
+
- [`nft_get_wallet_did`](./src/api/rpc/wallet/README.md#nftgetwalletdidagent-params)
|
|
52
|
+
- Removed error response
|
|
53
|
+
- [`nft_set_nft_status`](./src/api/rpc/wallet/README.md#nftsetnftstatusagent-params)
|
|
54
|
+
- Removed error response
|
|
55
|
+
### Fixed
|
|
56
|
+
- [FullNode RPC API](./src/api/rpc/full_node)
|
|
57
|
+
- [`get_blockchain_state`](./src/api/rpc/full_node/README.md#getblockchainstateagent)
|
|
58
|
+
- Changed the type of `mempool_size` in response from `int` to `CLVMCost`(actually `uint64`)
|
|
59
|
+
- [Wallet RPC API](./src/api/rpc/wallet)
|
|
60
|
+
- [`nft_set_did_bulk`](./src/api/rpc/wallet/README.md#nftsetdidbulkagent-params)
|
|
61
|
+
- Fixed missing export and entry in [README](./src/api/README.md)
|
|
62
|
+
- [`verify_signature`](./src/api/rpc/wallet/README.md#verifysignatureagent-params)
|
|
63
|
+
- Added missing `message` to request parameter
|
|
64
|
+
|
|
3
65
|
## [10.0.0]
|
|
4
66
|
### Breaking change
|
|
5
67
|
In `chia/types/mempool_items.py`, `removals` of `MempoolItem` is now flagged as `@property`.
|
|
@@ -819,6 +881,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
819
881
|
Initial release.
|
|
820
882
|
|
|
821
883
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
884
|
+
|
|
885
|
+
[10.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v10.0.0...v10.1.0
|
|
822
886
|
[10.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.2.0...v10.0.0
|
|
823
887
|
[9.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.1.0...v9.2.0
|
|
824
888
|
[9.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v9.0.1...v9.1.0
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://badge.fury.io/js/chia-agent) [](https://opensource.org/licenses/MIT)
|
|
3
3
|
|
|
4
4
|
chia rpc/websocket client library for NodeJS.
|
|
5
|
-
Supports all RPC/Websocket API available at `chia 1.
|
|
5
|
+
Supports all RPC/Websocket API available at `chia 1.7.0`.
|
|
6
6
|
\(If you need previous version, search for the corresponding release [here](https://github.com/Chia-Mine/chia-agent/releases)\)
|
|
7
7
|
|
|
8
8
|
you can develop your own nodejs script with `chia-agent` to:
|
|
@@ -22,10 +22,10 @@ yarn add chia-agent
|
|
|
22
22
|
|
|
23
23
|
## Compatibility
|
|
24
24
|
This code is compatible with:
|
|
25
|
-
- [`
|
|
26
|
-
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/
|
|
27
|
-
- [`
|
|
28
|
-
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/
|
|
25
|
+
- [`a8bcb8516e695e69e271b78241c0b4b9f41093c4`](https://github.com/Chia-Network/chia-blockchain/tree/a8bcb8516e695e69e271b78241c0b4b9f41093c4) of [chia-blockchain 1.7.0](https://github.com/Chia-Network/chia-blockchain)
|
|
26
|
+
- [Diff to the main branch of chia-blockchain](https://github.com/Chia-Network/chia-blockchain/compare/a8bcb8516e695e69e271b78241c0b4b9f41093c4...main)
|
|
27
|
+
- [`f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0`](https://github.com/Chia-Network/pool-reference/tree/f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0) of [pool-reference](https://github.com/Chia-Network/pool-reference)
|
|
28
|
+
- [Diff to the main branch of pool-reference](https://github.com/Chia-Network/pool-reference/compare/f238c55ec5a5ad1ea2f4d3b7615f918dff492cd0...main)
|
|
29
29
|
|
|
30
30
|
## API
|
|
31
31
|
There are 2 kinds of APIs in chia.
|
|
@@ -2,7 +2,7 @@ import { SpendBundle } from "./spend_bundle";
|
|
|
2
2
|
import { Coin } from "./blockchain_format/coin";
|
|
3
3
|
import { bytes32 } from "./blockchain_format/sized_bytes";
|
|
4
4
|
import { NPCResult } from "../consensus/cost_calculator";
|
|
5
|
-
import { uint32, uint64 } from "./_python_types_";
|
|
5
|
+
import { Optional, uint32, uint64 } from "./_python_types_";
|
|
6
6
|
export declare type MempoolItem = {
|
|
7
7
|
spend_bundle: SpendBundle;
|
|
8
8
|
fee: uint64;
|
|
@@ -11,4 +11,5 @@ export declare type MempoolItem = {
|
|
|
11
11
|
spend_bundle_name: bytes32;
|
|
12
12
|
additions: Coin[];
|
|
13
13
|
height_added_to_mempool: uint32;
|
|
14
|
+
assert_height: Optional<uint32>;
|
|
14
15
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare type CHIP_0002 = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:CHIP-0002_";
|
|
2
|
+
export declare type BLS_MESSAGE_AUGMENTATION_UTF8_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:utf8input_";
|
|
3
|
+
export declare type BLS_MESSAGE_AUGMENTATION_HEX_INPUT = "BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_AUG:hexinput_";
|
|
4
|
+
export declare type SigningMode = CHIP_0002 | BLS_MESSAGE_AUGMENTATION_UTF8_INPUT | BLS_MESSAGE_AUGMENTATION_HEX_INPUT;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { str, True, uint16 } from "../../chia/types/_python_types_";
|
|
1
|
+
import { False, str, True, uint16 } from "../../chia/types/_python_types_";
|
|
2
2
|
import { TRPCAgent } from "../../../rpc/index";
|
|
3
3
|
import { GetMessageType, ResType, TConnectionGeneral } from "../../types";
|
|
4
4
|
import { TConnectionFullNode } from "../../ws/full_node/index";
|
|
@@ -21,7 +21,12 @@ export declare type TOpenConnectionRequest = {
|
|
|
21
21
|
host: str;
|
|
22
22
|
port: uint16;
|
|
23
23
|
};
|
|
24
|
-
export declare type TOpenConnectionResponse = {
|
|
24
|
+
export declare type TOpenConnectionResponse = {
|
|
25
|
+
success: False;
|
|
26
|
+
error: str;
|
|
27
|
+
} | {
|
|
28
|
+
success: True;
|
|
29
|
+
};
|
|
25
30
|
export declare type WsOpenConnectionMessage = GetMessageType<chia_common_service, open_connection_command, TOpenConnectionResponse>;
|
|
26
31
|
export declare function open_connection<T extends TRPCAgent | TDaemon>(agent: T, params: TOpenConnectionRequest): Promise<import("../../../rpc/index").ErrorResponse | ResType<T, TOpenConnectionResponse, WsOpenConnectionMessage>>;
|
|
27
32
|
export declare const close_connection_command = "close_connection";
|
|
@@ -13,6 +13,7 @@ import { CoinSpend } from "../../chia/types/coin_spend";
|
|
|
13
13
|
import { CLVMCost } from "../../chia/types/clvm_cost";
|
|
14
14
|
import { GetMessageType, ResType } from "../../types";
|
|
15
15
|
import { TDaemon } from "../../../daemon/index";
|
|
16
|
+
import { Mojos } from "../../chia/types/mojos";
|
|
16
17
|
export declare const chia_full_node_service = "chia_full_node";
|
|
17
18
|
export declare type chia_full_node_service = typeof chia_full_node_service;
|
|
18
19
|
export declare const get_blockchain_state_command = "get_blockchain_state";
|
|
@@ -32,7 +33,8 @@ export declare type TGetBlockchainStateResponse = {
|
|
|
32
33
|
sub_slot_iters: uint64;
|
|
33
34
|
space: uint128;
|
|
34
35
|
mempool_size: int;
|
|
35
|
-
mempool_cost:
|
|
36
|
+
mempool_cost: CLVMCost;
|
|
37
|
+
mempool_fees: Mojos;
|
|
36
38
|
mempool_min_fees: {
|
|
37
39
|
cost_5000000: float;
|
|
38
40
|
};
|
|
@@ -313,6 +315,8 @@ export declare type get_fee_estimate_command = typeof get_fee_estimate_command;
|
|
|
313
315
|
export declare type TGetFeeEstimateRequest = {
|
|
314
316
|
spend_bundle?: SpendBundle;
|
|
315
317
|
cost?: uint64;
|
|
318
|
+
spend_type?: "send_xch_transaction" | "cat_spend" | "take_offer" | "cancel_offer" | "nft_set_nft_did" | "nft_transfer_nft" | "create_new_pool_wallet" | "pw_absorb_rewards" | "create_new_did_wallet";
|
|
319
|
+
spend_count?: uint64;
|
|
316
320
|
target_times: int[];
|
|
317
321
|
};
|
|
318
322
|
export declare type TGetFeeEstimateResponse = {
|
|
@@ -320,11 +324,17 @@ export declare type TGetFeeEstimateResponse = {
|
|
|
320
324
|
target_times: int[];
|
|
321
325
|
current_fee_rate: uint64;
|
|
322
326
|
mempool_size: CLVMCost;
|
|
327
|
+
mempool_fees: Mojos;
|
|
328
|
+
num_spends: int;
|
|
323
329
|
mempool_max_size: CLVMCost;
|
|
324
330
|
full_node_synced: bool;
|
|
325
331
|
peak_height: uint32;
|
|
326
332
|
last_peak_timestamp: uint64;
|
|
327
333
|
node_time_utc: int;
|
|
334
|
+
last_block_cost: int;
|
|
335
|
+
fees_last_block: uint64;
|
|
336
|
+
fee_rate_last_block: float;
|
|
337
|
+
last_tx_block_height: int;
|
|
328
338
|
};
|
|
329
339
|
export declare type WsGetFeeEstimateMessage = GetMessageType<chia_full_node_service, get_fee_estimate_command, TGetFeeEstimateResponse>;
|
|
330
340
|
export declare function get_fee_estimate<T extends TRPCAgent | TDaemon>(agent: T, data: TGetFeeEstimateRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetFeeEstimateResponse, WsGetFeeEstimateMessage>>;
|
package/api/rpc/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { chia_full_node_service, TGetAdditionsAndRemovalsRequest, TGetAdditionsA
|
|
|
5
5
|
import type { RpcHarvesterMessage } from "./harvester/index";
|
|
6
6
|
export { chia_harvester_service, TAddPlotDirectoryRequest, TAddPlotDirectoryResponse, add_plot_directory, TDeletePlotRequest, TDeletePlotResponse, delete_plot, TGetPlotDirectoriesRequest, TGetPlotDirectoriesResponse, get_plot_directories, TGetPlotsRequest, TGetPlotsResponse, get_plots, TRefreshPlotsRequest, TRefreshPlotsResponse, refresh_plots, TRemovePlotDirectoryRequest, TRemovePlotDirectoryResponse, remove_plot_directory, } from "./harvester/index";
|
|
7
7
|
import type { RpcWalletMessage } from "./wallet/index";
|
|
8
|
-
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
8
|
+
export { chia_wallet_service, TAddKeyRequest, TAddKeyResponse, add_key, TAddRateLimitedFundsRequest, TAddRateLimitedFundsResponse, add_rate_limited_funds, TAdditions, TCancelOfferRequest, TCancelOfferResponse, cancel_offer, TCancelOffersRequest, TCancelOffersResponse, cancel_offers, TCatGetAssetIdRequest, TCatGetAssetIdResponse, cat_get_asset_id, TCatGetNameRequest, TCatGetNameResponse, cat_get_name, TGetStrayCatsResponse, get_stray_cats, TCatAssetIdToNameRequest, TCatAssetIdToNameResponse, cat_asset_id_to_name, TCatSetNameRequest, TCatSetNameResponse, cat_set_name, TCatSpendRequest, TCatSpendResponse, cat_spend, TCheckOfferValidityRequest, TCheckOfferValidityResponse, check_offer_validity, TCreateNewWalletRequest, TCreateNewWalletResponse, create_new_wallet, TCreateOfferForIdsRequest, TCreateOfferForIdsResponse, create_offer_for_ids, TCreateSignedTransactionRequest, TCreateSignedTransactionResponse, create_signed_transaction, TDeleteUnconfirmedTransactionsRequest, TDeleteUnconfirmedTransactionsResponse, delete_unconfirmed_transactions, TSelectCoinsRequest, TSelectCoinsResponse, select_coins, TGetCurrentDerivationIndexResponse, get_current_derivation_index, TExtendDerivationIndexRequest, TExtendDerivationIndexResponse, extend_derivation_index, TGetNotificationsRequest, TGetNotificationsResponse, get_notifications, TDeleteNotificationsRequest, TDeleteNotificationsResponse, delete_notifications, TSendNotificationRequest, TSendNotificationResponse, send_notification, TSignMessageByAddressRequest, TSignMessageByAddressResponse, sign_message_by_address, TSignMessageByIdRequest, TSignMessageByIdResponse, sign_message_by_id, TNftCalculateRoyaltiesRequest, TNftCalculateRoyaltiesResponse, nft_calculate_royalties, TNftMintBulkRequest, TNftMintBulkResponse, nft_mint_bulk, TNftSetDidBulkRequest, TNftSetDidBulkResponse, nft_set_did_bulk, TNftTransferBulkRequest, TNftTransferBulkResponse, nft_transfer_bulk, TCreate_New_CAT_WalletRequest, TCreate_New_CAT_WalletResponse, TCreate_New_DID_WalletRequest, TCreate_New_DID_WalletResponse, TCreate_New_RL_WalletRequest, TCreate_New_RL_WalletResponse, TDeleteAllKeysRequest, TDeleteAllKeysResponse, delete_all_keys, TDeleteKeyRequest, TDeleteKeyResponse, delete_key, TDidSetWalletNameRequest, TDidSetWalletNameResponse, did_set_wallet_name, TDidGetWalletNameRequest, TDidGetWalletNameResponse, did_get_wallet_name, TDidCreateAttestRequest, TDidCreateAttestResponse, did_create_attest, TDidCreateBackupFileRequest, TDidCreateBackupFileResponse, did_create_backup_file, TDidTransferDidRequest, TDidTransferDidResponse, did_transfer_did, TDidGetDidRequest, TDidGetDidResponse, did_get_did, TDidGetInformationNeededForRecoveryRequest, TDidGetInformationNeededForRecoveryResponse, did_get_information_needed_for_recovery, TDidGetCurrentCoinInfoRequest, TDidGetCurrentCoinInfoResponse, did_get_current_coin_info, TDidGetPubkeyRequest, TDidGetPubkeyResponse, did_get_pubkey, TDidGetRecoveryListRequest, TDidGetRecoveryListResponse, did_get_recovery_list, TDidGetMetadataRequest, TDidGetMetadataResponse, did_get_metadata, TDidRecoverySpendRequest, TDidRecoverySpendResponse, did_recovery_spend, TDidSpendRequest, TDidSpendResponse, did_spend, TDidUpdateRecoveryIdsRequest, TDidUpdateRecoveryIdsResponse, did_update_recovery_ids, TDidUpdateMetadataRequest, TDidUpdateMetadataResponse, did_update_metadata, TNftMintNftRequest, TNftMintNftResponse, nft_mint_nft, TNftGetNftsRequest, TNftGetNftsResponse, nft_get_nfts, TNftSetNftDidRequest, TNftSetNftDidResponse, nft_set_nft_did, TNftGetByDidRequest, TNftGetByDidResponse, nft_get_by_did, TNftGetWalletDidRequest, TNftGetWalletDidResponse, nft_get_wallet_did, TNftGetWalletsWithDidsResponse, nft_get_wallets_with_dids, TNftSetNftStatusRequest, TNftSetNftStatusResponse, nft_set_nft_status, TNftTransferNftRequest, TNftTransferNftResponse, nft_transfer_nft, TNftGetInfoRequest, TNftGetInfoResponse, nft_get_info, TNftAddUriRequest, TNftAddUriResponse, nft_add_uri, TFarmBlockRequest, TFarmBlockResponse, farm_block, TGetTimestampForHeightResponse, get_timestamp_for_height, TGenerateMnemonicRequest, TGenerateMnemonicResponse, generate_mnemonic, TGetAllOffersRequest, TGetAllOffersResponse, get_all_offers, TGetCatListResponse, get_cat_list, TGetFarmedAmountRequest, TGetFarmedAmountResponse, get_farmed_amount, TGetHeightInfoRequest, TGetHeightInfoResponse, get_height_info, TGetInitialFreezePeriodRequestOfWallet, TGetInitialFreezePeriodResponseOfWallet, get_initial_freeze_period_of_wallet, TGetLoggedInFingerprintResponse, get_logged_in_fingerprint, TGetOfferRequest, TGetOfferResponse, get_offer, TGetOffersCountResponse, get_offers_count, TGetOfferSummaryRequest, TGetOfferSummaryResponse, get_offer_summary, TGetNetworkInfoRequestOfWallet, TGetNetworkInfoResponseOfWallet, get_network_info_of_wallet, TGetNextAddressRequest, TGetNextAddressResponse, get_next_address, TGetPrivateKeyRequest, TGetPrivateKeyResponse, get_private_key, TGetPublicKeysRequest, TGetPublicKeysResponse, get_public_keys, TGetSyncStatusRequest, TGetSyncStatusResponse, get_sync_status, TGetTransactionCountRequest, TGetTransactionCountResponse, get_transaction_count, TGetTransactionRequest, TGetTransactionResponse, get_transaction, TGetTransactionsRequest, TGetTransactionsResponse, get_transactions, TGetWalletBalanceRequest, TGetWalletBalanceResponse, get_wallet_balance, TGetWalletsRequest, TGetWalletsResponse, get_wallets, TLoginRequest, TLoginResponse, log_in, TPushTxRequest as TPushTxRequestOfWallet, TPushTxResponse as TPushTxResponseOfWallet, push_tx as push_tx_wallet, TPushTransactionsRequest, TPushTransactionsResponse, push_transactions, TPwJoinPoolRequest, TPwJoinPoolResponse, pw_join_pool, TPwSelfPoolRequest, TPwSelfPoolResponse, pw_self_pool, TPwAbsorbRewardsRequest, TPwAbsorbRewardsResponse, pw_absorb_rewards, TPwStatusRequest, TPwStatusResponse, pw_status, TRlSetUserInfoRequest, TRlSetUserInfoResponse, rl_set_user_info, TSendClawbackTransactionRequest, TSendClawbackTransactionResponse, send_clawback_transaction, TSendTransactionRequest, TSendTransactionResponse, send_transaction, TSendTransactionMultiRequest, TSendTransactionMultiResponse, send_transaction_multi, TTakeOfferRequest, TTakeOfferResponse, take_offer, TCreateNewDlRequest, TCreateNewDlResponse, create_new_dl, TDlTrackNewRequest, TDlTrackNewResponse, dl_track_new, TDlStopTrackingRequest, TDlStopTrackingResponse, dl_stop_tracking, TDlLatestSingletonRequest, TDlLatestSingletonResponse, dl_latest_singleton, TDlSingletonsByRootRequest, TDlSingletonsByRootResponse, dl_singletons_by_root, TDlUpdateRootRequest, TDlUpdateRootResponse, dl_update_root, TDlUpdateMultipleRequest, TDlUpdateMultipleResponse, dl_update_multiple, TDlHistoryRequest, TDlHistoryResponse, dl_history, TDlOwnedSingletonsResponse, dl_owned_singletons, TDlGetMirrorsRequest, TDlGetMirrorsResponse, dl_get_mirrors, TDlNewMirrorRequest, TDlNewMirrorResponse, dl_new_mirror, TDlDeleteMirrorRequest, TDlDeleteMirrorResponse, dl_delete_mirror, } from "./wallet/index";
|
|
9
9
|
import type { RpcDataLayerMessage } from "./data_layer/index";
|
|
10
10
|
export { chia_data_layer_service, TCreateDataStoreRequest, TCreateDataStoreResponse, create_data_store, TGetOwnedStoresResponse, get_owned_stores, TBatchUpdateRequest, TBatchUpdateResponse, batch_update, TGetValueRequest, TGetValueResponse, get_value, TGetKeysRequest, TGetKeysResponse, get_keys, TGetKeysValuesRequest, TGetKeysValuesResponse, get_keys_values, TGetAncestorsRequest, TGetAncestorsResponse, get_ancestors, TGetRootRequest, TGetRootResponse, get_root, TGetLocalRootRequest, TGetLocalRootResponse, get_local_root, TGetRootsRequest, TGetRootsResponse, get_roots, TDeleteKeyRequest as TDeleteKeyDLRequest, TDeleteKeyResponse as TDeleteKeyDLResponse, delete_key as delete_key_dl, TInsertRequest, TInsertResponse, insert, TSubscribeRequest, TSubscribeResponse, subscribe, TUnsubscribeRequest, TUnsubscribeResponse, unsubscribe, TAddMirrorRequest, TAddMirrorResponse, add_mirror, TDeleteMirrorRequest, TDeleteMirrorResponse, delete_mirror, TGetMirrorsRequest, TGetMirrorsResponse, get_mirrors, TRemoveSubscriptionsRequest, TRemoveSubscriptionsResponse, remove_subscriptions, TSubscriptionsResponse, subscriptions, TGetKvDiffRequest, TGetKvDiffResponse, get_kv_diff, TGetRootHistoryRequest, TGetRootHistoryResponse, get_root_history, TAddMissingFilesRequest, TAddMissingFilesResponse, add_missing_files, TMakeOfferRequest, TMakeOfferResponse, make_offer, TTakeOfferRequest as TTakeOfferRequestDL, TTakeOfferResponse as TTakeOfferResponseDL, take_offer as take_offer_dl, TVerifyOfferRequest, TVerifyOfferResponse, verify_offer, TCancelOfferRequest as TCancelOfferRequestDL, TCancelOfferResponse as TCancelOfferResponseDL, cancel_offer as cancel_offer_dl, TGetSyncStatusRequest as TGetSyncStatusRequestDL, TGetSyncStatusResponse as TGetSyncStatusResponseDL, get_sync_status as get_sync_status_dl, } from "./data_layer/index";
|
|
11
11
|
import type { RpcCrawlerMessage } from "./crawler/index";
|
package/api/rpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.add_key = exports.chia_wallet_service = exports.remove_plot_directory = exports.refresh_plots = exports.get_plots = exports.get_plot_directories = exports.delete_plot = exports.add_plot_directory = exports.chia_harvester_service = exports.get_fee_estimate = exports.get_puzzle_and_solution = exports.push_tx = exports.get_unfinished_block_headers = exports.get_network_space = exports.get_network_info_of_full_node = exports.get_mempool_item_by_tx_id = exports.get_initial_freeze_period_of_full_node = exports.get_coin_records_by_hint = exports.get_coin_records_by_parent_ids = exports.get_coin_records_by_puzzle_hashes = exports.get_coin_records_by_puzzle_hash = exports.get_coin_record_by_name = exports.get_coin_records_by_names = exports.get_recent_signage_point_or_eos = exports.get_block_count_metrics = exports.get_blocks = exports.get_blockchain_state = exports.get_block = exports.get_block_spends = exports.get_block_records = exports.get_block_record = exports.get_block_record_by_height = exports.get_all_mempool_tx_ids = exports.get_all_mempool_items = exports.get_additions_and_removals = exports.chia_full_node_service = exports.get_pool_login_link = exports.get_pool_state = exports.set_pool_payout_instructions = exports.get_harvester_plots_duplicates = exports.get_harvester_plots_keys_missing = exports.get_harvester_plots_invalid = exports.get_harvester_plots_valid = exports.get_harvesters_summary = exports.get_harvesters = exports.set_reward_targets = exports.get_signage_points = exports.get_signage_point = exports.get_reward_targets = exports.chia_farmer_service = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = void 0;
|
|
4
|
+
exports.nft_set_nft_status = exports.nft_get_wallets_with_dids = exports.nft_get_wallet_did = exports.nft_get_by_did = exports.nft_set_nft_did = exports.nft_get_nfts = exports.nft_mint_nft = exports.did_update_metadata = exports.did_update_recovery_ids = exports.did_spend = exports.did_recovery_spend = exports.did_get_metadata = exports.did_get_recovery_list = exports.did_get_pubkey = exports.did_get_current_coin_info = exports.did_get_information_needed_for_recovery = exports.did_get_did = exports.did_transfer_did = exports.did_create_backup_file = exports.did_create_attest = exports.did_get_wallet_name = exports.did_set_wallet_name = exports.delete_key = exports.delete_all_keys = exports.nft_transfer_bulk = exports.nft_set_did_bulk = exports.nft_mint_bulk = exports.nft_calculate_royalties = exports.sign_message_by_id = exports.sign_message_by_address = exports.send_notification = exports.delete_notifications = exports.get_notifications = exports.extend_derivation_index = exports.get_current_derivation_index = exports.select_coins = exports.delete_unconfirmed_transactions = exports.create_signed_transaction = exports.create_offer_for_ids = exports.create_new_wallet = exports.check_offer_validity = exports.cat_spend = exports.cat_set_name = exports.cat_asset_id_to_name = exports.get_stray_cats = exports.cat_get_name = exports.cat_get_asset_id = exports.cancel_offers = exports.cancel_offer = exports.add_rate_limited_funds = void 0;
|
|
5
|
+
exports.chia_data_layer_service = exports.dl_delete_mirror = exports.dl_new_mirror = exports.dl_get_mirrors = exports.dl_owned_singletons = exports.dl_history = exports.dl_update_multiple = exports.dl_update_root = exports.dl_singletons_by_root = exports.dl_latest_singleton = exports.dl_stop_tracking = exports.dl_track_new = exports.create_new_dl = exports.take_offer = exports.send_transaction_multi = exports.send_transaction = exports.send_clawback_transaction = exports.rl_set_user_info = exports.pw_status = exports.pw_absorb_rewards = exports.pw_self_pool = exports.pw_join_pool = exports.push_transactions = exports.push_tx_wallet = exports.log_in = exports.get_wallets = exports.get_wallet_balance = exports.get_transactions = exports.get_transaction = exports.get_transaction_count = exports.get_sync_status = exports.get_public_keys = exports.get_private_key = exports.get_next_address = exports.get_network_info_of_wallet = exports.get_offer_summary = exports.get_offers_count = exports.get_offer = exports.get_logged_in_fingerprint = exports.get_initial_freeze_period_of_wallet = exports.get_height_info = exports.get_farmed_amount = exports.get_cat_list = exports.get_all_offers = exports.generate_mnemonic = exports.get_timestamp_for_height = exports.farm_block = exports.nft_add_uri = exports.nft_get_info = exports.nft_transfer_nft = void 0;
|
|
6
|
+
exports.healthz = exports.get_routes = exports.stop_node = exports.close_connection = exports.open_connection = exports.get_connections = exports.chia_common_service = exports.get_peer_counts = exports.get_ips_after_timestamp = exports.chia_crawler_service = exports.get_sync_status_dl = exports.cancel_offer_dl = exports.verify_offer = exports.take_offer_dl = exports.make_offer = exports.add_missing_files = exports.get_root_history = exports.get_kv_diff = exports.subscriptions = exports.remove_subscriptions = exports.get_mirrors = exports.delete_mirror = exports.add_mirror = exports.unsubscribe = exports.subscribe = exports.insert = exports.delete_key_dl = exports.get_roots = exports.get_local_root = exports.get_root = exports.get_ancestors = exports.get_keys_values = exports.get_keys = exports.get_value = exports.batch_update = exports.get_owned_stores = exports.create_data_store = void 0;
|
|
7
7
|
var index_1 = require("./farmer/index");
|
|
8
8
|
Object.defineProperty(exports, "chia_farmer_service", { enumerable: true, get: function () { return index_1.chia_farmer_service; } });
|
|
9
9
|
Object.defineProperty(exports, "get_reward_targets", { enumerable: true, get: function () { return index_1.get_reward_targets; } });
|
|
@@ -82,6 +82,8 @@ Object.defineProperty(exports, "sign_message_by_address", { enumerable: true, ge
|
|
|
82
82
|
Object.defineProperty(exports, "sign_message_by_id", { enumerable: true, get: function () { return index_4.sign_message_by_id; } });
|
|
83
83
|
Object.defineProperty(exports, "nft_calculate_royalties", { enumerable: true, get: function () { return index_4.nft_calculate_royalties; } });
|
|
84
84
|
Object.defineProperty(exports, "nft_mint_bulk", { enumerable: true, get: function () { return index_4.nft_mint_bulk; } });
|
|
85
|
+
Object.defineProperty(exports, "nft_set_did_bulk", { enumerable: true, get: function () { return index_4.nft_set_did_bulk; } });
|
|
86
|
+
Object.defineProperty(exports, "nft_transfer_bulk", { enumerable: true, get: function () { return index_4.nft_transfer_bulk; } });
|
|
85
87
|
Object.defineProperty(exports, "delete_all_keys", { enumerable: true, get: function () { return index_4.delete_all_keys; } });
|
|
86
88
|
Object.defineProperty(exports, "delete_key", { enumerable: true, get: function () { return index_4.delete_key; } });
|
|
87
89
|
Object.defineProperty(exports, "did_set_wallet_name", { enumerable: true, get: function () { return index_4.did_set_wallet_name; } });
|
|
@@ -110,6 +112,7 @@ Object.defineProperty(exports, "nft_transfer_nft", { enumerable: true, get: func
|
|
|
110
112
|
Object.defineProperty(exports, "nft_get_info", { enumerable: true, get: function () { return index_4.nft_get_info; } });
|
|
111
113
|
Object.defineProperty(exports, "nft_add_uri", { enumerable: true, get: function () { return index_4.nft_add_uri; } });
|
|
112
114
|
Object.defineProperty(exports, "farm_block", { enumerable: true, get: function () { return index_4.farm_block; } });
|
|
115
|
+
Object.defineProperty(exports, "get_timestamp_for_height", { enumerable: true, get: function () { return index_4.get_timestamp_for_height; } });
|
|
113
116
|
Object.defineProperty(exports, "generate_mnemonic", { enumerable: true, get: function () { return index_4.generate_mnemonic; } });
|
|
114
117
|
Object.defineProperty(exports, "get_all_offers", { enumerable: true, get: function () { return index_4.get_all_offers; } });
|
|
115
118
|
Object.defineProperty(exports, "get_cat_list", { enumerable: true, get: function () { return index_4.get_cat_list; } });
|
|
@@ -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, uint16, uint32, uint64, uint8 } from "../../chia/types/_python_types_";
|
|
3
|
+
import { bool, bytes, False, int, None, 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";
|
|
@@ -15,6 +15,7 @@ import { TPushTxResponseOfWallet } from "../index";
|
|
|
15
15
|
import { GetMessageType, ResType } from "../../types";
|
|
16
16
|
import { TDaemon } from "../../../daemon/index";
|
|
17
17
|
import { CoinRecord } from "../../chia/types/coin_record";
|
|
18
|
+
import { SigningMode } from "../../chia/types/signing_mode";
|
|
18
19
|
export declare const chia_wallet_service = "chia_wallet";
|
|
19
20
|
export declare type chia_wallet_service = typeof chia_wallet_service;
|
|
20
21
|
export declare const log_in_command = "log_in";
|
|
@@ -164,6 +165,13 @@ export declare type TFarmBlockRequest = {
|
|
|
164
165
|
export declare type TFarmBlockResponse = {};
|
|
165
166
|
export declare type WsFarmBlockMessage = GetMessageType<chia_wallet_service, farm_block_command, TFarmBlockResponse>;
|
|
166
167
|
export declare function farm_block<T extends TRPCAgent | TDaemon>(agent: T, data: TFarmBlockRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TFarmBlockResponse, WsFarmBlockMessage>>;
|
|
168
|
+
export declare const get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
169
|
+
export declare type get_timestamp_for_height_command = typeof get_timestamp_for_height_command;
|
|
170
|
+
export declare type TGetTimestampForHeightResponse = {
|
|
171
|
+
timestamp: uint64;
|
|
172
|
+
};
|
|
173
|
+
export declare type WsGetTimestampForHeightMessage = GetMessageType<chia_wallet_service, get_timestamp_for_height_command, TGetTimestampForHeightResponse>;
|
|
174
|
+
export declare function get_timestamp_for_height<T extends TRPCAgent | TDaemon>(agent: T): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetTimestampForHeightResponse, WsGetTimestampForHeightMessage>>;
|
|
167
175
|
export declare const get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
168
176
|
export declare type get_initial_freeze_period_command_of_wallet = typeof get_initial_freeze_period_command_of_wallet;
|
|
169
177
|
export declare type TGetInitialFreezePeriodRequestOfWallet = {};
|
|
@@ -564,6 +572,7 @@ export declare type TGetNotificationsResponse = {
|
|
|
564
572
|
id: str;
|
|
565
573
|
message: str;
|
|
566
574
|
amount: uint64;
|
|
575
|
+
height: uint32;
|
|
567
576
|
}>;
|
|
568
577
|
};
|
|
569
578
|
export declare type WsGetNotificationsMessage = GetMessageType<chia_wallet_service, get_notifications_command, TGetNotificationsResponse>;
|
|
@@ -592,6 +601,8 @@ export declare function send_notification<T extends TRPCAgent | TDaemon>(agent:
|
|
|
592
601
|
export declare const verify_signature_command = "verify_signature";
|
|
593
602
|
export declare type verify_signature_command = typeof verify_signature_command;
|
|
594
603
|
export declare type TVerifySignatureRequest = {
|
|
604
|
+
message: str;
|
|
605
|
+
signing_mode?: SigningMode;
|
|
595
606
|
pubkey: str;
|
|
596
607
|
signature: str;
|
|
597
608
|
address?: str;
|
|
@@ -614,6 +625,7 @@ export declare type TSignMessageByAddressResponse = {
|
|
|
614
625
|
success: True;
|
|
615
626
|
pubkey: str;
|
|
616
627
|
signature: str;
|
|
628
|
+
signing_mode: SigningMode;
|
|
617
629
|
};
|
|
618
630
|
export declare type WsSignMessageByAddressMessage = GetMessageType<chia_wallet_service, sign_message_by_address_command, TSignMessageByAddressResponse>;
|
|
619
631
|
export declare function sign_message_by_address<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByAddressRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByAddressResponse, WsSignMessageByAddressMessage>>;
|
|
@@ -630,7 +642,8 @@ export declare type TSignMessageByIdResponse = {
|
|
|
630
642
|
success: True;
|
|
631
643
|
pubkey: str;
|
|
632
644
|
signature: str;
|
|
633
|
-
latest_coin_id: str;
|
|
645
|
+
latest_coin_id: str | None;
|
|
646
|
+
signing_mode: SigningMode;
|
|
634
647
|
};
|
|
635
648
|
export declare type WsSignMessageByIdMessage = GetMessageType<chia_wallet_service, sign_message_by_id_command, TSignMessageByIdResponse>;
|
|
636
649
|
export declare function sign_message_by_id<T extends TRPCAgent | TDaemon>(agent: T, data: TSignMessageByIdRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TSignMessageByIdResponse, WsSignMessageByIdMessage>>;
|
|
@@ -695,6 +708,7 @@ export declare type TCatSpendRequest = {
|
|
|
695
708
|
amount: uint64;
|
|
696
709
|
inner_address: str;
|
|
697
710
|
memos?: str[];
|
|
711
|
+
coins?: Coin[];
|
|
698
712
|
min_coin_amount?: uint64;
|
|
699
713
|
max_coin_amount?: uint64;
|
|
700
714
|
exclude_coin_amounts?: uint64[];
|
|
@@ -747,6 +761,7 @@ export declare type TGetOfferSummaryResponse = {
|
|
|
747
761
|
fees: int;
|
|
748
762
|
infos: TDriverDict;
|
|
749
763
|
};
|
|
764
|
+
id: bytes32;
|
|
750
765
|
};
|
|
751
766
|
export declare type WsGetOfferSummaryMessage = GetMessageType<chia_wallet_service, get_offer_summary_command, TGetOfferSummaryResponse>;
|
|
752
767
|
export declare function get_offer_summary<T extends TRPCAgent | TDaemon>(agent: T, data: TGetOfferSummaryRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TGetOfferSummaryResponse, WsGetOfferSummaryMessage>>;
|
|
@@ -757,6 +772,7 @@ export declare type TCheckOfferValidityRequest = {
|
|
|
757
772
|
};
|
|
758
773
|
export declare type TCheckOfferValidityResponse = {
|
|
759
774
|
valid: bool;
|
|
775
|
+
id: bytes32;
|
|
760
776
|
};
|
|
761
777
|
export declare type WsCheckOfferValidityMessage = GetMessageType<chia_wallet_service, check_offer_validity_command, TCheckOfferValidityResponse>;
|
|
762
778
|
export declare function check_offer_validity<T extends TRPCAgent | TDaemon>(agent: T, data: TCheckOfferValidityRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TCheckOfferValidityResponse, WsCheckOfferValidityMessage>>;
|
|
@@ -1037,9 +1053,6 @@ export declare type TDidMessageSpendRequest = {
|
|
|
1037
1053
|
puzzle_announcements: str[];
|
|
1038
1054
|
};
|
|
1039
1055
|
export declare type TDidMessageSpendResponse = {
|
|
1040
|
-
success: False;
|
|
1041
|
-
error: str;
|
|
1042
|
-
} | {
|
|
1043
1056
|
success: True;
|
|
1044
1057
|
spend_bundle: SpendBundle;
|
|
1045
1058
|
};
|
|
@@ -1173,9 +1186,31 @@ export declare type TNftSetDidBulkResponse = {
|
|
|
1173
1186
|
success: True;
|
|
1174
1187
|
wallet_id: uint32[];
|
|
1175
1188
|
spend_bundle: SpendBundle;
|
|
1189
|
+
tx_num: int;
|
|
1176
1190
|
};
|
|
1177
1191
|
export declare type WsNftSetDidBulkMessage = GetMessageType<chia_wallet_service, nft_set_did_bulk_command, TNftSetDidBulkResponse>;
|
|
1178
1192
|
export declare function nft_set_did_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetDidBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetDidBulkResponse, WsNftSetDidBulkMessage>>;
|
|
1193
|
+
export declare const nft_transfer_bulk_command = "nft_transfer_bulk";
|
|
1194
|
+
export declare type nft_transfer_bulk_command = typeof nft_transfer_bulk_command;
|
|
1195
|
+
export declare type TNftTransferBulkRequest = {
|
|
1196
|
+
nft_coin_list: Array<{
|
|
1197
|
+
nft_coin_id: str;
|
|
1198
|
+
wallet_id: uint32;
|
|
1199
|
+
}>;
|
|
1200
|
+
target_address: str;
|
|
1201
|
+
fee?: uint64;
|
|
1202
|
+
};
|
|
1203
|
+
export declare type TNftTransferBulkResponse = {
|
|
1204
|
+
success: False;
|
|
1205
|
+
error: str;
|
|
1206
|
+
} | {
|
|
1207
|
+
success: True;
|
|
1208
|
+
wallet_id: uint32[];
|
|
1209
|
+
spend_bundle: SpendBundle;
|
|
1210
|
+
tx_num: int;
|
|
1211
|
+
};
|
|
1212
|
+
export declare type WsNftTransferBulkMessage = GetMessageType<chia_wallet_service, nft_transfer_bulk_command, TNftTransferBulkResponse>;
|
|
1213
|
+
export declare function nft_transfer_bulk<T extends TRPCAgent | TDaemon>(agent: T, data: TNftTransferBulkRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftTransferBulkResponse, WsNftTransferBulkMessage>>;
|
|
1179
1214
|
export declare const nft_get_by_did_command = "nft_get_by_did";
|
|
1180
1215
|
export declare type nft_get_by_did_command = typeof nft_get_by_did_command;
|
|
1181
1216
|
export declare type TNftGetByDidRequest = {
|
|
@@ -1198,9 +1233,6 @@ export declare type TNftGetWalletDidRequest = {
|
|
|
1198
1233
|
export declare type TNftGetWalletDidResponse = {
|
|
1199
1234
|
did_id: Optional<str>;
|
|
1200
1235
|
success: True;
|
|
1201
|
-
} | {
|
|
1202
|
-
success: False;
|
|
1203
|
-
error: str;
|
|
1204
1236
|
};
|
|
1205
1237
|
export declare type WsNftGetWalletDidMessage = GetMessageType<chia_wallet_service, nft_get_wallet_did_command, TNftGetWalletDidResponse>;
|
|
1206
1238
|
export declare function nft_get_wallet_did<T extends TRPCAgent | TDaemon>(agent: T, data: TNftGetWalletDidRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftGetWalletDidResponse, WsNftGetWalletDidMessage>>;
|
|
@@ -1225,9 +1257,6 @@ export declare type TNftSetNftStatusRequest = {
|
|
|
1225
1257
|
};
|
|
1226
1258
|
export declare type TNftSetNftStatusResponse = {
|
|
1227
1259
|
success: True;
|
|
1228
|
-
} | {
|
|
1229
|
-
success: False;
|
|
1230
|
-
error: str;
|
|
1231
1260
|
};
|
|
1232
1261
|
export declare type WsNftSetNftStatusMessage = GetMessageType<chia_wallet_service, nft_set_nft_status_command, TNftSetNftStatusResponse>;
|
|
1233
1262
|
export declare function nft_set_nft_status<T extends TRPCAgent | TDaemon>(agent: T, data: TNftSetNftStatusRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TNftSetNftStatusResponse, WsNftSetNftStatusMessage>>;
|
|
@@ -1567,5 +1596,5 @@ export declare type TDlDeleteMirrorResponse = {
|
|
|
1567
1596
|
};
|
|
1568
1597
|
export declare type WsDlDeleteMirrorMessage = GetMessageType<chia_wallet_service, dl_delete_mirror_command, TDlDeleteMirrorResponse>;
|
|
1569
1598
|
export declare function dl_delete_mirror<T extends TRPCAgent | TDaemon>(agent: T, data: TDlDeleteMirrorRequest): Promise<import("../../../rpc").ErrorResponse | ResType<T, TDlDeleteMirrorResponse, WsDlDeleteMirrorMessage>>;
|
|
1570
|
-
export declare 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 | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
1571
|
-
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsDeleteAllKeysMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|
|
1599
|
+
export declare 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 | TNftCalculateRoyaltiesResponse | TNftMintBulkResponse | TNftSetDidBulkResponse | TNftTransferBulkRequest | TNftTransferBulkResponse | TDeleteAllKeysResponse | TDeleteKeyResponse | TCheckDeleteKeyResponse | TDidSetWalletNameResponse | TDidGetWalletNameResponse | TDidCreateAttestResponse | TDidCreateBackupFileResponse | TDidTransferDidResponse | TDidMessageSpendResponse | TDidGetInfoResponse | TDidFindLostDidResponse | TDidGetDidResponse | TDidGetInformationNeededForRecoveryResponse | TDidGetCurrentCoinInfoResponse | TDidGetPubkeyResponse | TDidGetRecoveryListResponse | TDidGetMetadataResponse | TDidRecoverySpendResponse | TDidSpendResponse | TDidUpdateRecoveryIdsResponse | TDidUpdateMetadataResponse | TNftMintNftResponse | TNftGetNftsResponse | TNftSetNftDidResponse | TNftGetByDidResponse | TNftGetWalletDidResponse | TNftGetWalletsWithDidsResponse | TNftSetNftStatusResponse | TNftTransferNftResponse | TNftGetInfoResponse | TNftAddUriResponse | TFarmBlockResponse | TGetTimestampForHeightResponse | TGenerateMnemonicResponse | TGetAllOffersResponse | TGetCatListResponse | TGetFarmedAmountResponse | TGetHeightInfoResponse | TGetInitialFreezePeriodResponseOfWallet | TGetLoggedInFingerprintResponse | TGetOfferResponse | TGetOffersCountResponse | TGetOfferSummaryResponse | TGetNetworkInfoResponseOfWallet | TGetNextAddressResponse | TGetPrivateKeyResponse | TGetPublicKeysResponse | TGetSyncStatusResponse | TGetTransactionResponse | TGetTransactionCountResponse | TGetTransactionsResponse | TGetWalletBalanceResponse | TGetWalletsResponse | TLoginResponse | TPushTxResponseOfWallet | TPushTransactionsResponse | TPwJoinPoolResponse | TPwSelfPoolResponse | TPwAbsorbRewardsResponse | TPwStatusResponse | TRlSetUserInfoResponse | TSendClawbackTransactionResponse | TSendTransactionResponse | TSendTransactionMultiResponse | TTakeOfferResponse | TCreateNewDlResponse | TDlTrackNewResponse | TDlStopTrackingResponse | TDlLatestSingletonResponse | TDlSingletonsByRootResponse | TDlUpdateRootResponse | TDlUpdateMultipleResponse | TDlHistoryResponse | TDlOwnedSingletonsResponse | TDlGetMirrorsResponse | TDlNewMirrorResponse | TDlDeleteMirrorResponse;
|
|
1600
|
+
export declare type RpcWalletMessageOnWs = WsAddKeyMessage | WsAddRateLimitedFundsMessage | WsCancelOfferMessage | WsCancelOffersMessage | WsCatGetAssetIdMessage | WsCatGetNameMessage | WsGetStrayCatsMessage | WsCatAssetIdToNameMessage | WsCatSetNameMessage | WsCatSpendMessage | WsCheckOfferValidityMessage | WsCreateNewWalletMessage | WsCreateOfferForIdsMessage | WsCreateSignedTransactionMessage | WsDeleteUnconfirmedTransactionsMessage | WsSelectCoinsMessage | WsGetSpendableCoinsMessage | WsGetCoinRecordsByNamesMessage | WsGetCurrentDerivationIndexMessage | WsExtendDerivationIndexMessage | WsGetNotificationsMessage | WsDeleteNotificationsMessage | WsSendNotificationMessage | WsSignMessageByAddressMessage | WsSignMessageByIdMessage | WsVerifySignatureMessage | WsNftCalculateRoyaltiesMessage | WsNftMintBulkMessage | WsNftSetDidBulkMessage | WsNftTransferBulkMessage | WsDeleteAllKeysMessage | WsDeleteKeyMessage | WsCheckDeleteKeyMessage | WsDidSetWalletNameMessage | WsDidGetWalletNameMessage | WsDidCreateAttestMessage | WsDidCreateBackupFileMessage | WsDidTransferDidMessage | WsDidMessageSpendMessage | WsDidGetInfoMessage | WsDidFindLostDidMessage | WsDidGetDidMessage | WsDidGetInformationNeededForRecoveryMessage | WsDidGetCurrentCoinInfoMessage | WsDidGetPubkeyMessage | WsDidGetRecoveryListMessage | WsDidGetMetadataMessage | WsDidRecoverySpendMessage | WsDidSpendMessage | WsDidUpdateRecoveryIdsMessage | WsDidUpdateMetadataMessage | WsNftMintNftMessage | WsNftGetNftsMessage | WsNftSetNftDidMessage | WsNftGetByDidMessage | WsNftGetWalletDidMessage | WsNftGetWalletsWithDidsMessage | WsNftSetNftStatusMessage | WsNftTransferNftMessage | WsNftGetInfoMessage | WsNftAddUriMessage | WsFarmBlockMessage | WsGetTimestampForHeightMessage | WsGenerateMnemonicMessage | WsGetAllOffersMessage | WsGetCatListMessage | WsGetFarmedAmountMessage | WsGetHeightInfoMessage | WsGetInitialFreezePeriodMessageOfWallet | WsGetLoggedInFingerprintMessage | WsGetOfferMessage | WsGetOffersCountMessage | WsGetOfferSummaryMessage | WsGetNetworkInfoMessageOfWallet | WsGetNextAddressMessage | WsGetPrivateKeyMessage | WsGetPublicKeysMessage | WsGetSyncStatusMessage | WsGetTransactionMessage | WsGetTransactionCountMessage | WsGetTransactionsMessage | WsGetWalletBalanceMessage | WsGetWalletsMessage | WsLoginMessage | WsPushTxMessageOfWallet | WsPushTransactionsMessage | WsPwJoinPoolMessage | WsPwSelfPoolMessage | WsPwAbsorbRewardsMessage | WsPwStatusMessage | WsRlSetUserInfoMessage | WsSendClawbackTransactionMessage | WsSendTransactionMessage | WsSendTransactionMultiMessage | WsTakeOfferMessage | WsCreateNewDlMessage | WsDlTrackNewMessage | WsDlStopTrackingMessage | WsDlLatestSingletonMessage | WsDlSingletonsByRootMessage | WsDlUpdateRootMessage | WsDlUpdateMultipleMessage | WsDlHistoryMessage | WsDlOwnedSingletonsMessage | WsDlGetMirrorsMessage | WsDlNewMirrorMessage | WsDlDeleteMirrorMessage;
|
package/api/rpc/wallet/index.js
CHANGED
|
@@ -9,11 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
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 = exports.dl_history_command = exports.dl_update_multiple = void 0;
|
|
12
|
+
exports.send_transaction_multi_command = exports.send_transaction = exports.send_transaction_command = exports.get_next_address = exports.get_next_address_command = exports.get_transactions = exports.get_transactions_command = exports.get_transaction = exports.get_transaction_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_network_info_of_wallet = exports.get_network_info_command_of_wallet = exports.get_initial_freeze_period_of_wallet = exports.get_initial_freeze_period_command_of_wallet = exports.get_timestamp_for_height = exports.get_timestamp_for_height_command = exports.farm_block = exports.farm_block_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.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.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 = 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.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.send_transaction_multi = void 0;
|
|
14
|
+
exports.nft_mint_nft_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 = 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 = void 0;
|
|
15
|
+
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 = 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_mint_nft = void 0;
|
|
16
|
+
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 = 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 = void 0;
|
|
17
17
|
exports.chia_wallet_service = "chia_wallet";
|
|
18
18
|
// # Key management
|
|
19
19
|
exports.log_in_command = "log_in";
|
|
@@ -115,6 +115,13 @@ function farm_block(agent, data) {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
exports.farm_block = farm_block;
|
|
118
|
+
exports.get_timestamp_for_height_command = "get_timestamp_for_height";
|
|
119
|
+
function get_timestamp_for_height(agent) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.get_timestamp_for_height_command);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
exports.get_timestamp_for_height = get_timestamp_for_height;
|
|
118
125
|
exports.get_initial_freeze_period_command_of_wallet = "get_initial_freeze_period";
|
|
119
126
|
function get_initial_freeze_period_of_wallet(agent) {
|
|
120
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -562,6 +569,13 @@ function nft_set_did_bulk(agent, data) {
|
|
|
562
569
|
});
|
|
563
570
|
}
|
|
564
571
|
exports.nft_set_did_bulk = nft_set_did_bulk;
|
|
572
|
+
exports.nft_transfer_bulk_command = "nft_transfer_bulk";
|
|
573
|
+
function nft_transfer_bulk(agent, data) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
+
return agent.sendMessage(exports.chia_wallet_service, exports.nft_transfer_bulk_command, data);
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
exports.nft_transfer_bulk = nft_transfer_bulk;
|
|
565
579
|
exports.nft_get_by_did_command = "nft_get_by_did";
|
|
566
580
|
function nft_get_by_did(agent, data) {
|
|
567
581
|
return __awaiter(this, void 0, void 0, function* () {
|