UNPKG

@codegame.dev/wallet-cli

Version:

A CLI tool for managing wallets across multiple blockchains, supporting operations like wallet creation, balance checking, transfers, and fee estimation.

69 lines (68 loc) 1.63 kB
export type GetBalanceParams = { coin: string; address: string; tokenAddress?: string; jsonRpcProvider: string; chainDecimals: number; testnet: boolean; delay: number; }; export type GetBalanceResponse = { success: boolean; coin_balance?: string; token_balance?: string; code?: string; message?: string; }; export type TransferParams = { coin: string; mnemonic: string; secretKey: Uint8Array; fromAddress: string; toAddress: string; amount: string; tokenAddress?: string; jsonRpcProvider: string; chainDecimals: number; testnet: boolean; delay: number; }; export type TransferResponse = { success: boolean; hash?: string; fee?: string; code?: string; message?: string; }; export type EstimateFeeParams = { coin: string; mnemonic: string; secretKey: Uint8Array; fromAddress: string; toAddress: string; amount: string; tokenAddress?: string; jsonRpcProvider: string; chainDecimals: number; testnet: boolean; delay: number; }; export type EstimateFeeResponse = { success: boolean; fee?: string; code?: string; message?: string; }; declare const _default: { id: string; json_rpc_provider: string; json_rpc_test_provider: string; group: string; decimals: number; api: { getBalance: (params: GetBalanceParams) => Promise<GetBalanceResponse>; transfer: (params: TransferParams) => Promise<TransferResponse>; estimateFee: (params: EstimateFeeParams) => Promise<EstimateFeeResponse>; }; }[]; export default _default;