@waves/node-api-js 1.3.10-beta.2 → 1.3.10-beta.3
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/README.md +2 -2
- package/cjs/api-node/activation/index.d.ts +21 -21
- package/cjs/api-node/activation/index.js +19 -19
- package/cjs/api-node/addresses/index.d.ts +81 -81
- package/cjs/api-node/addresses/index.js +173 -173
- package/cjs/api-node/alias/index.d.ts +6 -6
- package/cjs/api-node/alias/index.js +21 -21
- package/cjs/api-node/assets/index.d.ts +79 -79
- package/cjs/api-node/assets/index.js +171 -171
- package/cjs/api-node/blocks/index.d.ts +143 -143
- package/cjs/api-node/blocks/index.js +209 -209
- package/cjs/api-node/debug/index.d.ts +189 -189
- package/cjs/api-node/debug/index.js +244 -244
- package/cjs/api-node/eth/index.d.ts +3 -3
- package/cjs/api-node/eth/index.js +14 -14
- package/cjs/api-node/leasing/index.d.ts +22 -22
- package/cjs/api-node/leasing/index.js +41 -41
- package/cjs/api-node/node/index.d.ts +11 -11
- package/cjs/api-node/node/index.js +19 -19
- package/cjs/api-node/peers/index.d.ts +46 -46
- package/cjs/api-node/peers/index.js +59 -59
- package/cjs/api-node/rewards/index.d.ts +21 -21
- package/cjs/api-node/rewards/index.js +20 -20
- package/cjs/api-node/transactions/index.d.ts +73 -73
- package/cjs/api-node/transactions/index.js +192 -192
- package/cjs/api-node/utils/index.d.ts +110 -110
- package/cjs/api-node/utils/index.js +210 -210
- package/cjs/api-node/wallet/index.d.ts +5 -5
- package/cjs/api-node/wallet/index.js +6 -6
- package/cjs/constants.d.ts +40 -40
- package/cjs/constants.js +42 -42
- package/cjs/create.d.ts +1238 -1238
- package/cjs/create.js +115 -115
- package/cjs/index.d.ts +9 -9
- package/cjs/index.js +17 -17
- package/cjs/interface.d.ts +44 -44
- package/cjs/interface.js +9 -9
- package/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -7
- package/cjs/tools/adresses/availableSponsoredBalances.js +29 -29
- package/cjs/tools/adresses/ethAddress2waves.d.ts +1 -1
- package/cjs/tools/adresses/ethAddress2waves.js +46 -46
- package/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -2
- package/cjs/tools/adresses/getAssetIdListByTx.js +47 -47
- package/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -3
- package/cjs/tools/adresses/getAssetsByTransaction.js +13 -13
- package/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -6
- package/cjs/tools/adresses/getTransactionsWithAssets.js +12 -12
- package/cjs/tools/adresses/watch.d.ts +24 -24
- package/cjs/tools/adresses/watch.js +167 -167
- package/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -1
- package/cjs/tools/adresses/wavesAddress2eth.js +9 -9
- package/cjs/tools/assets/wavesAsset2eth.d.ts +1 -1
- package/cjs/tools/assets/wavesAsset2eth.js +9 -9
- package/cjs/tools/blocks/detectInterval.d.ts +1 -1
- package/cjs/tools/blocks/detectInterval.js +11 -11
- package/cjs/tools/blocks/getNetworkByte.d.ts +1 -1
- package/cjs/tools/blocks/getNetworkByte.js +53 -53
- package/cjs/tools/blocks/getNetworkCode.d.ts +1 -1
- package/cjs/tools/blocks/getNetworkCode.js +10 -10
- package/cjs/tools/blocks/waitHeight.d.ts +3 -3
- package/cjs/tools/blocks/waitHeight.js +64 -64
- package/cjs/tools/parse.d.ts +1 -1
- package/cjs/tools/parse.js +7 -7
- package/cjs/tools/query.d.ts +4 -4
- package/cjs/tools/query.js +40 -40
- package/cjs/tools/request.d.ts +64 -64
- package/cjs/tools/request.js +41 -41
- package/cjs/tools/resolve.d.ts +1 -1
- package/cjs/tools/resolve.js +6 -6
- package/cjs/tools/stringify.d.ts +1 -1
- package/cjs/tools/stringify.js +20 -20
- package/cjs/tools/transactions/broadcast.d.ts +14 -14
- package/cjs/tools/transactions/broadcast.js +59 -59
- package/cjs/tools/transactions/ethTxId2waves.d.ts +1 -1
- package/cjs/tools/transactions/ethTxId2waves.js +10 -10
- package/cjs/tools/transactions/wait.d.ts +10 -10
- package/cjs/tools/transactions/wait.js +41 -41
- package/cjs/tools/utils.d.ts +32 -32
- package/cjs/tools/utils.js +117 -117
- package/dist/node-api.js +2300 -2300
- package/es/api-node/activation/index.d.ts +21 -21
- package/es/api-node/activation/index.js +12 -12
- package/es/api-node/addresses/index.d.ts +81 -81
- package/es/api-node/addresses/index.js +110 -110
- package/es/api-node/alias/index.d.ts +6 -6
- package/es/api-node/alias/index.js +13 -13
- package/es/api-node/assets/index.d.ts +79 -79
- package/es/api-node/assets/index.js +102 -102
- package/es/api-node/blocks/index.d.ts +143 -143
- package/es/api-node/blocks/index.js +178 -178
- package/es/api-node/debug/index.d.ts +189 -189
- package/es/api-node/debug/index.js +200 -200
- package/es/api-node/eth/index.d.ts +3 -3
- package/es/api-node/eth/index.js +7 -7
- package/es/api-node/leasing/index.d.ts +22 -22
- package/es/api-node/leasing/index.js +21 -21
- package/es/api-node/node/index.d.ts +11 -11
- package/es/api-node/node/index.js +9 -9
- package/es/api-node/peers/index.d.ts +46 -46
- package/es/api-node/peers/index.js +45 -45
- package/es/api-node/rewards/index.d.ts +21 -21
- package/es/api-node/rewards/index.js +12 -12
- package/es/api-node/transactions/index.d.ts +73 -73
- package/es/api-node/transactions/index.js +136 -136
- package/es/api-node/utils/index.d.ts +110 -110
- package/es/api-node/utils/index.js +192 -192
- package/es/api-node/wallet/index.d.ts +5 -5
- package/es/api-node/wallet/index.js +6 -6
- package/es/constants.d.ts +40 -40
- package/es/constants.js +39 -39
- package/es/create.d.ts +1238 -1238
- package/es/create.js +89 -89
- package/es/index.d.ts +9 -9
- package/es/index.js +8 -8
- package/es/interface.d.ts +44 -44
- package/es/interface.js +2 -2
- package/es/tools/adresses/availableSponsoredBalances.d.ts +7 -7
- package/es/tools/adresses/availableSponsoredBalances.js +26 -26
- package/es/tools/adresses/ethAddress2waves.d.ts +1 -1
- package/es/tools/adresses/ethAddress2waves.js +30 -30
- package/es/tools/adresses/getAssetIdListByTx.d.ts +2 -2
- package/es/tools/adresses/getAssetIdListByTx.js +23 -23
- package/es/tools/adresses/getAssetsByTransaction.d.ts +3 -3
- package/es/tools/adresses/getAssetsByTransaction.js +7 -7
- package/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -6
- package/es/tools/adresses/getTransactionsWithAssets.js +6 -6
- package/es/tools/adresses/watch.d.ts +24 -24
- package/es/tools/adresses/watch.js +133 -133
- package/es/tools/adresses/wavesAddress2eth.d.ts +1 -1
- package/es/tools/adresses/wavesAddress2eth.js +6 -6
- package/es/tools/assets/wavesAsset2eth.d.ts +1 -1
- package/es/tools/assets/wavesAsset2eth.js +6 -6
- package/es/tools/blocks/detectInterval.d.ts +1 -1
- package/es/tools/blocks/detectInterval.js +8 -8
- package/es/tools/blocks/getNetworkByte.d.ts +1 -1
- package/es/tools/blocks/getNetworkByte.js +50 -50
- package/es/tools/blocks/getNetworkCode.d.ts +1 -1
- package/es/tools/blocks/getNetworkCode.js +4 -4
- package/es/tools/blocks/waitHeight.d.ts +3 -3
- package/es/tools/blocks/waitHeight.js +35 -35
- package/es/tools/parse.d.ts +1 -1
- package/es/tools/parse.js +4 -4
- package/es/tools/query.d.ts +4 -4
- package/es/tools/query.js +11 -11
- package/es/tools/request.d.ts +64 -64
- package/es/tools/request.js +21 -21
- package/es/tools/resolve.d.ts +1 -1
- package/es/tools/resolve.js +3 -3
- package/es/tools/stringify.d.ts +1 -1
- package/es/tools/stringify.js +17 -17
- package/es/tools/transactions/broadcast.d.ts +14 -14
- package/es/tools/transactions/broadcast.js +42 -42
- package/es/tools/transactions/ethTxId2waves.d.ts +1 -1
- package/es/tools/transactions/ethTxId2waves.js +7 -7
- package/es/tools/transactions/wait.d.ts +10 -10
- package/es/tools/transactions/wait.js +38 -38
- package/es/tools/utils.d.ts +32 -32
- package/es/tools/utils.js +72 -72
- package/package.json +66 -66
- package/cjs/api-node/consensus/index.d.ts +0 -39
- package/cjs/api-node/consensus/index.js +0 -37
- package/cjs/api-node/consensus/index.js.map +0 -1
- package/es/api-node/consensus/index.d.ts +0 -39
- package/es/api-node/consensus/index.js +0 -27
- package/es/api-node/consensus/index.js.map +0 -1
|
@@ -1,189 +1,189 @@
|
|
|
1
|
-
import { TLong } from '../../interface';
|
|
2
|
-
import { AssetDecimals, DataTransactionEntry, Transaction, WithId } from '@waves/ts-types';
|
|
3
|
-
/**
|
|
4
|
-
* Waves balance history
|
|
5
|
-
* @param base
|
|
6
|
-
* @param address
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchBalanceHistory(base: string, address: string, options?: RequestInit): Promise<Array<IBalanceHistory>>;
|
|
9
|
-
interface IBalanceHistory {
|
|
10
|
-
height: number;
|
|
11
|
-
balance: TLong;
|
|
12
|
-
}
|
|
13
|
-
export declare type TPayment = {
|
|
14
|
-
assetId: string | null;
|
|
15
|
-
amount: TLong;
|
|
16
|
-
};
|
|
17
|
-
export declare type TStateChanges = {
|
|
18
|
-
data: DataTransactionEntry[];
|
|
19
|
-
transfers: {
|
|
20
|
-
address: string;
|
|
21
|
-
amount: TLong;
|
|
22
|
-
asset: string | null;
|
|
23
|
-
}[];
|
|
24
|
-
issues: {
|
|
25
|
-
assetId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
quantity: TLong;
|
|
29
|
-
decimals: AssetDecimals;
|
|
30
|
-
isReissuable: boolean;
|
|
31
|
-
compiledScript: null | string;
|
|
32
|
-
nonce: TLong;
|
|
33
|
-
}[];
|
|
34
|
-
reissues: {
|
|
35
|
-
assetId: string;
|
|
36
|
-
isReissuable: boolean;
|
|
37
|
-
quantity: TLong;
|
|
38
|
-
}[];
|
|
39
|
-
burns: {
|
|
40
|
-
assetId: string;
|
|
41
|
-
quantity: TLong;
|
|
42
|
-
}[];
|
|
43
|
-
sponsorFees: {
|
|
44
|
-
assetId: string;
|
|
45
|
-
minSponsoredAssetFee: TLong;
|
|
46
|
-
}[];
|
|
47
|
-
leases: {
|
|
48
|
-
leaseId: string;
|
|
49
|
-
recipient: string;
|
|
50
|
-
amount: TLong;
|
|
51
|
-
}[];
|
|
52
|
-
leaseCancels: {
|
|
53
|
-
leaseId: string;
|
|
54
|
-
}[];
|
|
55
|
-
invokes: ({
|
|
56
|
-
dApp: string;
|
|
57
|
-
call: {
|
|
58
|
-
function: string;
|
|
59
|
-
args: {
|
|
60
|
-
type: string;
|
|
61
|
-
value: string;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
payment: TPayment[];
|
|
65
|
-
stateChanges: TStateChanges
|
|
66
|
-
})[];
|
|
67
|
-
error?: {
|
|
68
|
-
code: number;
|
|
69
|
-
text: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export interface IWithStateChanges {
|
|
73
|
-
stateChanges: TStateChanges;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Get list of transactions with state changes where specified address has been involved
|
|
77
|
-
* @param base
|
|
78
|
-
* @param address
|
|
79
|
-
* @param limit
|
|
80
|
-
* @param after
|
|
81
|
-
*/
|
|
82
|
-
export declare function fetchStateChangesByAddress(base: string, address: string, limit: number, after?: string, options?: RequestInit): Promise<Array<Transaction<TLong> & WithId & IWithStateChanges>>;
|
|
83
|
-
/**
|
|
84
|
-
* Get invokeScript transaction state changes
|
|
85
|
-
* @param base
|
|
86
|
-
* @param txId
|
|
87
|
-
*/
|
|
88
|
-
export declare function fetchStateChangesByTxId(base: string, txId: string, options?: RequestInit): Promise<Transaction<TLong> & WithId & IWithStateChanges>;
|
|
89
|
-
export declare function postPeerToTheBanList(base: string, peer: string): Promise<any>;
|
|
90
|
-
export declare function fetchConfigInfo(base: string, apiKey: string): Promise<string>;
|
|
91
|
-
export declare function fetchDebugInfo(base: string, apiKey: string): Promise<IDebugInfo>;
|
|
92
|
-
export declare function fetchMinerInfo(base: string, apiKey: string): Promise<IMinerInfo<TLong>>;
|
|
93
|
-
export declare function fetchPortfolios(base: string, address: string, apiKey: string): Promise<IPortfolio<TLong>>;
|
|
94
|
-
export declare function debugPrint(base: string, message: string, apiKey: string): Promise<any>;
|
|
95
|
-
/**
|
|
96
|
-
* Removes all blocks after a given height. Max number of blocks back from the current height is set by waves.db.max-rollback-depth, 2000 by default
|
|
97
|
-
* @param base
|
|
98
|
-
* @param height
|
|
99
|
-
* @param returnTransactionsToUtx
|
|
100
|
-
* @param apiKey
|
|
101
|
-
*/
|
|
102
|
-
export declare function debugRollback(base: string, height: number, returnTransactionsToUtx: boolean, apiKey: string): Promise<any>;
|
|
103
|
-
/**
|
|
104
|
-
* Rollback the state to the block with a given ID
|
|
105
|
-
* @param base
|
|
106
|
-
* @param height
|
|
107
|
-
* @param returnTransactionsToUtx
|
|
108
|
-
* @param apiKey
|
|
109
|
-
*/
|
|
110
|
-
export declare function debugRollbackTo(base: string, id: string, apiKey: string): Promise<any>;
|
|
111
|
-
/**
|
|
112
|
-
* Regular address balance at the current height
|
|
113
|
-
* @param base
|
|
114
|
-
* @param apiKey
|
|
115
|
-
*/
|
|
116
|
-
export declare function debugState(base: string, apiKey: string): Promise<Record<string, number | string>>;
|
|
117
|
-
/**
|
|
118
|
-
* Get state hash at height. Available only if node configuration contains waves.db.store-state-hashes = true option
|
|
119
|
-
* @param base
|
|
120
|
-
* @param height
|
|
121
|
-
*/
|
|
122
|
-
export declare function debugStateHash(base: string, height: number, options?: RequestInit): Promise<IStateHash>;
|
|
123
|
-
/**
|
|
124
|
-
* Regular address balance at the height. Max number of blocks back from the current height is set by waves.db.max-rollback-depth, 2000 by default
|
|
125
|
-
* @param base
|
|
126
|
-
* @param height
|
|
127
|
-
* @param apiKey
|
|
128
|
-
*/
|
|
129
|
-
export declare function debugStateWaves(base: string, height: number, apiKey: string): Promise<Record<string, number | string>>;
|
|
130
|
-
/**
|
|
131
|
-
* Validates a transaction and measures time spent in milliseconds. You should use the JSON transaction format with proofs
|
|
132
|
-
* @param base
|
|
133
|
-
* @param transaction
|
|
134
|
-
*/
|
|
135
|
-
export declare function debugValidate(base: string, transaction: string): Promise<IValidateResponse>;
|
|
136
|
-
interface IDebugInfo {
|
|
137
|
-
"stateHeight": number;
|
|
138
|
-
"extensionLoaderState": string;
|
|
139
|
-
"historyReplierCacheSizes": {
|
|
140
|
-
"microBlockOwners": number;
|
|
141
|
-
"nextInvs": number;
|
|
142
|
-
"awaiting": number;
|
|
143
|
-
"successfullyReceived": number;
|
|
144
|
-
};
|
|
145
|
-
"microBlockSynchronizerCacheSizes": {
|
|
146
|
-
"microBlockOwners": number;
|
|
147
|
-
"nextInvs": number;
|
|
148
|
-
"awaiting": number;
|
|
149
|
-
"successfullyReceived": number;
|
|
150
|
-
};
|
|
151
|
-
"scoreObserverStats": {
|
|
152
|
-
"localScore": number;
|
|
153
|
-
"currentBestChannel": string;
|
|
154
|
-
"scoresCacheSize": number;
|
|
155
|
-
};
|
|
156
|
-
"minerState": string;
|
|
157
|
-
}
|
|
158
|
-
interface IMinerInfo<LONG> {
|
|
159
|
-
"address": string;
|
|
160
|
-
"miningBalance": LONG;
|
|
161
|
-
"timestamp": number;
|
|
162
|
-
}
|
|
163
|
-
interface IPortfolio<LONG> {
|
|
164
|
-
"balance": number;
|
|
165
|
-
"lease": {
|
|
166
|
-
"in": number;
|
|
167
|
-
"out": number;
|
|
168
|
-
};
|
|
169
|
-
"assets": Record<string, LONG>;
|
|
170
|
-
}
|
|
171
|
-
interface IStateHash {
|
|
172
|
-
stateHash: string;
|
|
173
|
-
wavesBalanceHash: string;
|
|
174
|
-
assetBalanceHash: string;
|
|
175
|
-
dataEntryHash: string;
|
|
176
|
-
accountScriptHash: string;
|
|
177
|
-
assetScriptHash: string;
|
|
178
|
-
leaseBalanceHash: string;
|
|
179
|
-
leaseStatusHash: string;
|
|
180
|
-
sponsorshipHash: string;
|
|
181
|
-
aliasHash: string;
|
|
182
|
-
blockId: string;
|
|
183
|
-
}
|
|
184
|
-
interface IValidateResponse {
|
|
185
|
-
valid: boolean;
|
|
186
|
-
validationTime: number;
|
|
187
|
-
"trace": string[];
|
|
188
|
-
}
|
|
189
|
-
export {};
|
|
1
|
+
import { TLong } from '../../interface';
|
|
2
|
+
import { AssetDecimals, DataTransactionEntry, Transaction, WithId } from '@waves/ts-types';
|
|
3
|
+
/**
|
|
4
|
+
* Waves balance history
|
|
5
|
+
* @param base
|
|
6
|
+
* @param address
|
|
7
|
+
*/
|
|
8
|
+
export declare function fetchBalanceHistory(base: string, address: string, options?: RequestInit): Promise<Array<IBalanceHistory>>;
|
|
9
|
+
interface IBalanceHistory {
|
|
10
|
+
height: number;
|
|
11
|
+
balance: TLong;
|
|
12
|
+
}
|
|
13
|
+
export declare type TPayment = {
|
|
14
|
+
assetId: string | null;
|
|
15
|
+
amount: TLong;
|
|
16
|
+
};
|
|
17
|
+
export declare type TStateChanges = {
|
|
18
|
+
data: DataTransactionEntry[];
|
|
19
|
+
transfers: {
|
|
20
|
+
address: string;
|
|
21
|
+
amount: TLong;
|
|
22
|
+
asset: string | null;
|
|
23
|
+
}[];
|
|
24
|
+
issues: {
|
|
25
|
+
assetId: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
quantity: TLong;
|
|
29
|
+
decimals: AssetDecimals;
|
|
30
|
+
isReissuable: boolean;
|
|
31
|
+
compiledScript: null | string;
|
|
32
|
+
nonce: TLong;
|
|
33
|
+
}[];
|
|
34
|
+
reissues: {
|
|
35
|
+
assetId: string;
|
|
36
|
+
isReissuable: boolean;
|
|
37
|
+
quantity: TLong;
|
|
38
|
+
}[];
|
|
39
|
+
burns: {
|
|
40
|
+
assetId: string;
|
|
41
|
+
quantity: TLong;
|
|
42
|
+
}[];
|
|
43
|
+
sponsorFees: {
|
|
44
|
+
assetId: string;
|
|
45
|
+
minSponsoredAssetFee: TLong;
|
|
46
|
+
}[];
|
|
47
|
+
leases: {
|
|
48
|
+
leaseId: string;
|
|
49
|
+
recipient: string;
|
|
50
|
+
amount: TLong;
|
|
51
|
+
}[];
|
|
52
|
+
leaseCancels: {
|
|
53
|
+
leaseId: string;
|
|
54
|
+
}[];
|
|
55
|
+
invokes: ({
|
|
56
|
+
dApp: string;
|
|
57
|
+
call: {
|
|
58
|
+
function: string;
|
|
59
|
+
args: {
|
|
60
|
+
type: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
payment: TPayment[];
|
|
65
|
+
stateChanges: TStateChanges;
|
|
66
|
+
})[];
|
|
67
|
+
error?: {
|
|
68
|
+
code: number;
|
|
69
|
+
text: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export interface IWithStateChanges {
|
|
73
|
+
stateChanges: TStateChanges | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get list of transactions with state changes where specified address has been involved
|
|
77
|
+
* @param base
|
|
78
|
+
* @param address
|
|
79
|
+
* @param limit
|
|
80
|
+
* @param after
|
|
81
|
+
*/
|
|
82
|
+
export declare function fetchStateChangesByAddress(base: string, address: string, limit: number, after?: string, options?: RequestInit): Promise<Array<Transaction<TLong> & WithId & IWithStateChanges>>;
|
|
83
|
+
/**
|
|
84
|
+
* Get invokeScript transaction state changes
|
|
85
|
+
* @param base
|
|
86
|
+
* @param txId
|
|
87
|
+
*/
|
|
88
|
+
export declare function fetchStateChangesByTxId(base: string, txId: string, options?: RequestInit): Promise<Transaction<TLong> & WithId & IWithStateChanges>;
|
|
89
|
+
export declare function postPeerToTheBanList(base: string, peer: string): Promise<any>;
|
|
90
|
+
export declare function fetchConfigInfo(base: string, apiKey: string): Promise<string>;
|
|
91
|
+
export declare function fetchDebugInfo(base: string, apiKey: string): Promise<IDebugInfo>;
|
|
92
|
+
export declare function fetchMinerInfo(base: string, apiKey: string): Promise<IMinerInfo<TLong>>;
|
|
93
|
+
export declare function fetchPortfolios(base: string, address: string, apiKey: string): Promise<IPortfolio<TLong>>;
|
|
94
|
+
export declare function debugPrint(base: string, message: string, apiKey: string): Promise<any>;
|
|
95
|
+
/**
|
|
96
|
+
* Removes all blocks after a given height. Max number of blocks back from the current height is set by waves.db.max-rollback-depth, 2000 by default
|
|
97
|
+
* @param base
|
|
98
|
+
* @param height
|
|
99
|
+
* @param returnTransactionsToUtx
|
|
100
|
+
* @param apiKey
|
|
101
|
+
*/
|
|
102
|
+
export declare function debugRollback(base: string, height: number, returnTransactionsToUtx: boolean, apiKey: string): Promise<any>;
|
|
103
|
+
/**
|
|
104
|
+
* Rollback the state to the block with a given ID
|
|
105
|
+
* @param base
|
|
106
|
+
* @param height
|
|
107
|
+
* @param returnTransactionsToUtx
|
|
108
|
+
* @param apiKey
|
|
109
|
+
*/
|
|
110
|
+
export declare function debugRollbackTo(base: string, id: string, apiKey: string): Promise<any>;
|
|
111
|
+
/**
|
|
112
|
+
* Regular address balance at the current height
|
|
113
|
+
* @param base
|
|
114
|
+
* @param apiKey
|
|
115
|
+
*/
|
|
116
|
+
export declare function debugState(base: string, apiKey: string): Promise<Record<string, number | string>>;
|
|
117
|
+
/**
|
|
118
|
+
* Get state hash at height. Available only if node configuration contains waves.db.store-state-hashes = true option
|
|
119
|
+
* @param base
|
|
120
|
+
* @param height
|
|
121
|
+
*/
|
|
122
|
+
export declare function debugStateHash(base: string, height: number, options?: RequestInit): Promise<IStateHash>;
|
|
123
|
+
/**
|
|
124
|
+
* Regular address balance at the height. Max number of blocks back from the current height is set by waves.db.max-rollback-depth, 2000 by default
|
|
125
|
+
* @param base
|
|
126
|
+
* @param height
|
|
127
|
+
* @param apiKey
|
|
128
|
+
*/
|
|
129
|
+
export declare function debugStateWaves(base: string, height: number, apiKey: string): Promise<Record<string, number | string>>;
|
|
130
|
+
/**
|
|
131
|
+
* Validates a transaction and measures time spent in milliseconds. You should use the JSON transaction format with proofs
|
|
132
|
+
* @param base
|
|
133
|
+
* @param transaction
|
|
134
|
+
*/
|
|
135
|
+
export declare function debugValidate(base: string, transaction: string): Promise<IValidateResponse>;
|
|
136
|
+
interface IDebugInfo {
|
|
137
|
+
"stateHeight": number;
|
|
138
|
+
"extensionLoaderState": string;
|
|
139
|
+
"historyReplierCacheSizes": {
|
|
140
|
+
"microBlockOwners": number;
|
|
141
|
+
"nextInvs": number;
|
|
142
|
+
"awaiting": number;
|
|
143
|
+
"successfullyReceived": number;
|
|
144
|
+
};
|
|
145
|
+
"microBlockSynchronizerCacheSizes": {
|
|
146
|
+
"microBlockOwners": number;
|
|
147
|
+
"nextInvs": number;
|
|
148
|
+
"awaiting": number;
|
|
149
|
+
"successfullyReceived": number;
|
|
150
|
+
};
|
|
151
|
+
"scoreObserverStats": {
|
|
152
|
+
"localScore": number;
|
|
153
|
+
"currentBestChannel": string;
|
|
154
|
+
"scoresCacheSize": number;
|
|
155
|
+
};
|
|
156
|
+
"minerState": string;
|
|
157
|
+
}
|
|
158
|
+
interface IMinerInfo<LONG> {
|
|
159
|
+
"address": string;
|
|
160
|
+
"miningBalance": LONG;
|
|
161
|
+
"timestamp": number;
|
|
162
|
+
}
|
|
163
|
+
interface IPortfolio<LONG> {
|
|
164
|
+
"balance": number;
|
|
165
|
+
"lease": {
|
|
166
|
+
"in": number;
|
|
167
|
+
"out": number;
|
|
168
|
+
};
|
|
169
|
+
"assets": Record<string, LONG>;
|
|
170
|
+
}
|
|
171
|
+
interface IStateHash {
|
|
172
|
+
stateHash: string;
|
|
173
|
+
wavesBalanceHash: string;
|
|
174
|
+
assetBalanceHash: string;
|
|
175
|
+
dataEntryHash: string;
|
|
176
|
+
accountScriptHash: string;
|
|
177
|
+
assetScriptHash: string;
|
|
178
|
+
leaseBalanceHash: string;
|
|
179
|
+
leaseStatusHash: string;
|
|
180
|
+
sponsorshipHash: string;
|
|
181
|
+
aliasHash: string;
|
|
182
|
+
blockId: string;
|
|
183
|
+
}
|
|
184
|
+
interface IValidateResponse {
|
|
185
|
+
valid: boolean;
|
|
186
|
+
validationTime: number;
|
|
187
|
+
"trace": string[];
|
|
188
|
+
}
|
|
189
|
+
export {};
|