@oko-wallet/oko-sdk-eth
Version:
9 lines (8 loc) • 573 B
TypeScript
import type { OkoWalletInterface } from "@oko-wallet/oko-sdk-core";
import type { Result } from "@oko-wallet/stdlib-js";
import type { ChainInfo } from "@keplr-wallet/types";
import type { OkoEthRpcChain } from "./provider";
import type { SendGetEthChainInfoError } from "./errors";
export declare const DEFAULT_CHAIN_ID = 1;
export declare function convertChainInfoToRpcChain(chainInfo: ChainInfo): OkoEthRpcChain | null;
export declare function sendGetEthChainInfo(okoWallet: OkoWalletInterface, chainId?: string): Promise<Result<ChainInfo[], SendGetEthChainInfoError>>;