UNPKG

@lunch-money/ethereum-to-lunch-money

Version:

A wrapper around Ethereum APIs for enabling Lunch Money to gather information about a user's wallet.

19 lines (18 loc) 664 B
import * as ethscan from '@mycrypto/eth-scan'; import * as ethers from 'ethers'; export interface EthereumWalletClient { getChainId(): Promise<bigint>; getWeiBalance(walletAddress: string): Promise<bigint>; getTokensBalance(walletAddress: string, tokenContractAddresses: string[]): Promise<ethscan.BalanceMap<bigint>>; } export declare const createEthereumWalletClient: (provider: ethers.AbstractProvider) => EthereumWalletClient; interface Token { address: string; chainId: number; name: string; symbol: string; decimals: number; logoURI: string | null; } export declare const loadTokenList: () => Promise<Token[]>; export {};