-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.d.ts
49 lines (47 loc) · 2.5 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
declare function setURL(newURL: string): void;
declare function setUsername(newUsername: string): void;
declare function setPassword(newPassword: string): void;
/**
*
* @param assetName mandatory
* @param onlytotal otional, when false result is just a list of addresses with balances -- when true the result is just a single number representing the number of addresses
* @param count (integer, optional, default=50000, MAX=50000) truncates results to include only the first _count_ assets found
* @param start (integer, optional, default=0) results skip over the first _start_ assets found (if negative it skips back from the end)
*/
declare function getAddressesByAsset(assetName: string, onlytotal?: boolean, count?: number, start?: boolean): Promise<any>;
declare function getAddressDeltas(address: string | string[]): Promise<any[]>;
declare function getAddressMempool(address: string | string[]): Promise<any>;
declare function getAddressUTXOs(address: string | string[]): Promise<any>;
declare function getAllAssets(prefix?: string, includeAllMetaData?: boolean): Promise<any>;
declare function getAssetBalance(address: string | string[]): Promise<any>;
declare function getAsset(name: string): Promise<any>;
declare function getBestBlockHash(): Promise<string>;
declare function getBlockByHash(hash: string): Promise<any>;
declare function getBlockByHeight(height: number): Promise<any>;
declare function getMempool(): Promise<any>;
declare function getRavencoinBalance(address: string | string[]): Promise<any>;
declare function getTransaction(id: string): Promise<any>;
declare function verifyMessage(address: string, signature: string, message: string): Promise<boolean>;
declare const _default: {
getAddressesByAsset: typeof getAddressesByAsset;
getAddressDeltas: typeof getAddressDeltas;
getAddressMempool: typeof getAddressMempool;
getAddressUTXOs: typeof getAddressUTXOs;
getAllAssets: typeof getAllAssets;
getAsset: typeof getAsset;
getAssetBalance: typeof getAssetBalance;
getBestBlockHash: typeof getBestBlockHash;
getBlockByHash: typeof getBlockByHash;
getBlockByHeight: typeof getBlockByHeight;
getMempool: typeof getMempool;
getRavencoinBalance: typeof getRavencoinBalance;
getTransaction: typeof getTransaction;
setUsername: typeof setUsername;
setPassword: typeof setPassword;
setURL: typeof setURL;
verifyMessage: typeof verifyMessage;
URL_MAINNET: string;
URL_TESTNET: string;
};
export default _default;
//# sourceMappingURL=types.d.ts.map