UNPKG

@enclavemoney/enclave-wallet-sdk

Version:

A simple enclave wallet SDK for React applications

46 lines (45 loc) 1.93 kB
/** * Checks if a string is a valid ENS name * @param value The string to check * @returns boolean indicating if the string is a valid ENS name */ export declare const isENS: (value: string) => boolean; /** * Checks if a string is a valid Ethereum address * @param value The string to check * @returns boolean indicating if the string is a valid Ethereum address */ export declare const isEthereumAddress: (value: string) => boolean; /** * Resolves an ENS name to an Ethereum address * @param ensName The ENS name to resolve * @returns The resolved Ethereum address or null if resolution fails */ export declare const resolveENS: (ensName: string) => Promise<string | null>; /** * Gets the username associated with a wallet address * @param walletAddress The wallet address to look up * @param walletSdkKey The wallet SDK key for authorization * @returns Object containing username information */ export declare const getUsernameForWalletAddress: (walletAddress: string, walletSdkKey: string) => Promise<any>; /** * Gets the wallet address associated with a username * @param username The username to look up * @param walletSdkKey The wallet SDK key for authorization * @returns Object containing wallet address information */ export declare const getWalletAddressForUsername: (username: string, walletSdkKey: string) => Promise<any>; /** * Resolves a wallet address to an ENS name * @param address The wallet address to resolve * @returns The resolved ENS name or null if resolution fails */ export declare const reverseResolveENS: (address: string) => Promise<string | null>; /** * Looks up user information for any input (address, username, ENS, etc.) * @param input The input string to look up * @param walletSdkKey The wallet SDK key for authorization * @returns Object containing user information */ export declare const lookupUser: (input: string, walletSdkKey: string) => Promise<any>;