wallets-wrapper
Version:
How to install
13 lines (12 loc) • 773 B
TypeScript
import { LoginChallenge, RequestLoginAsync } from '@trezor/connect/lib/types/api/requestLogin';
import { Params } from '@trezor/connect-web';
import { AccountInfo } from '../../../models';
import { AllResponses, CustomTrezorGetAddress, GetTrezorAccountInfo, SendSignedTransactionProps, TransferProps } from './types';
export interface ITrezorWrapper {
getAddress: CustomTrezorGetAddress;
getBalance(): Promise<void>;
getAccountInfo(args: GetTrezorAccountInfo[]): Promise<AccountInfo[]>;
connectWallet(params?: Params<RequestLoginAsync | LoginChallenge>): Promise<string[]>;
sendSignedTransaction({ network, coin, transaction, }: SendSignedTransactionProps): Promise<AllResponses>;
transfer(args: TransferProps): Promise<AllResponses>;
}