askexperts
Version:
AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol
10 lines (9 loc) • 351 B
TypeScript
import { DBInterface, DBWallet } from "../../../db/interfaces.js";
/**
* Get a wallet by name or use the default wallet
*
* @param name Wallet name
* @returns The wallet object
* @throws Error if wallet not found or no default wallet exists
*/
export declare function getWalletByNameOrDefault(db: DBInterface, name?: string): Promise<DBWallet>;