@near-wallet-selector/wallet-utils
Version:
Wallet utils package for NEAR Wallet Selector.
11 lines (10 loc) • 743 B
TypeScript
import type { Signer } from "@near-js/signers";
import type { Network, Transaction } from "@near-wallet-selector/core";
import { KeyType, PublicKey } from "@near-js/crypto";
import { Signature, SignedTransaction } from "@near-js/transactions";
export declare abstract class LegacySigner {
abstract createKey(accountId: string, networkId?: string, keyType?: KeyType): Promise<PublicKey>;
abstract getPublicKey(accountId?: string, networkId?: string): Promise<PublicKey>;
abstract signMessage(message: Uint8Array, accountId?: string, networkId?: string): Promise<Signature>;
}
export declare const signTransactions: (transactions: Array<Transaction>, signer: Signer | LegacySigner, network: Network) => Promise<SignedTransaction[]>;