UNPKG

@dethcrypto/eth-sdk

Version:

🛠 Generate type-safe, lightweight SDK for your Ethereum smart contracts

7 lines (6 loc) • 389 B
import { ethers } from 'ethers'; import { EthSdkConfig } from '../config'; import { NetworkSymbol } from './networks'; export declare function getRpcProvider(config: EthSdkConfig, network: NetworkSymbol): RpcProvider | null; export declare type RpcProvider = Pick<ethers.providers.Provider, 'getCode' | 'getStorageAt' | 'call'>; export declare type GetRpcProvider = typeof getRpcProvider;