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

27 lines (26 loc) 823 B
import { ViewOnlyWallet } from '../ViewOnlyWallet'; import type { WalletSerialized } from '../../WalletSerialized'; import { PublicKey } from './PublicKey'; /** * Read-only wallet from a single public key. No derivation, no signing. * * @example * ```ts * const wallet = new PublicKeyWallet(new PublicKey('02deadbeef...')); * console.log(wallet.publicKey); * ``` */ export declare class PublicKeyWallet extends ViewOnlyWallet { readonly walletType: "publicKey"; private readonly _publicKey; /** * @param publicKey - The public key entity. */ constructor(publicKey: PublicKey); /** The public key as hex. */ get publicKey(): string; /** Returns the {@link PublicKey} entity. */ getPublicKey(): PublicKey; /** @inheritdoc */ serialize(): Promise<WalletSerialized>; }