UNPKG

@oko-wallet/oko-sdk-eth

Version:
27 lines (26 loc) 931 B
import type { Hex, Address, ByteArray } from "viem"; import type { RpcChain } from "../provider/types"; export declare function publicKeyToEthereumAddress(publicKey: Hex | ByteArray): Address; export declare function isValidUrl(url: string): boolean; export declare function validateHexChainId(chainId: string): { isValid: boolean; decimalValue?: number; error?: string; }; export declare function validateRpcUrls(rpcUrls: readonly string[]): { isValid: boolean; error?: string; }; export declare function validateBlockExplorerUrls(blockExplorerUrls?: readonly string[]): { isValid: boolean; error?: string; }; export declare function validateNativeCurrencySymbol(symbol: string): { isValid: boolean; error?: string; }; export declare function validateChain(chain: RpcChain): { isValid: boolean; error?: string; }; export declare function parseChainId(chainId: string | number): number;