UNPKG

chaingate

Version:

Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO

23 lines (22 loc) 942 B
import type { Wallet } from '../Wallet/Wallet'; import type { NetworkDescriptor } from '../ChainGate/networks'; /** Options for resolving a wallet address. */ export interface AddressOptions { /** Address index (for HD wallets). Defaults to `0`. */ index?: number; /** Base derivation path override. When omitted, the network's default for the * selected address type is used. */ derivationPath?: string; } /** Base class for network connectors. */ export declare abstract class Connector<TWallet extends Wallet, TExplorer, TNetwork = NetworkDescriptor> { protected readonly wallet: TWallet; protected readonly explorer: TExplorer; protected readonly network: TNetwork; /** @internal */ constructor(wallet: TWallet, explorer: TExplorer, network: TNetwork); /** * Returns the address for this wallet on this network. */ abstract address(options?: AddressOptions): Promise<string>; }