PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-ton/dist/src/lib
Просмотр файла: utils.d.ts
import { BaseUtils } from '@bitgo/sdk-core';
export declare class Utils implements BaseUtils {
/** @inheritdoc */
isValidAddress(address: string): boolean;
/** @inheritdoc */
isValidBlockId(hash: string): boolean;
/** @inheritdoc */
isValidPrivateKey(key: string): boolean;
/** @inheritdoc */
isValidPublicKey(key: string): boolean;
/** @inheritdoc */
isValidSignature(signature: string): boolean;
/** @inheritdoc */
isValidTransactionId(txId: string): boolean;
getAddressFromPublicKey(publicKey: string, bounceable?: boolean, isUserFriendly?: boolean): Promise<string>;
getAddress(address: string, bounceable?: boolean): string;
getMessageHashFromData(data: string): Promise<string>;
getRawWalletAddressFromCell(data: string): string;
}
/**
* Function to estimate the fee for a transaction.
* This function uses the dummy private key exclusively for fee estimation.
* @param wallet - The wallet instance.
* @param toAddress - The destination address.
* @param amount - The amount to transfer.
* @param seqno - The sequence number for the transaction.
* @returns The estimated fee for the transaction.
*/
export declare function getFeeEstimate(wallet: any, toAddress: string, amount: string, seqno: number): Promise<any>;
declare const utils: Utils;
export default utils;
//# sourceMappingURL=utils.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!