UNPKG

evm-blockchain-tools

Version:

This is a collection of resuseable tools to support development for EVM-powered blockchains

18 lines (17 loc) 711 B
import { ethers } from "ethers"; import { IWeb3Gateway } from "../common/interfaces"; export declare class BlockchainService { protected provider: IWeb3Gateway; constructor(provider: IWeb3Gateway); getBlock(blockNum: number): Promise<ethers.providers.Block>; parseNativeTx(txHash: string): Promise<{ to: string; amountWei: ethers.BigNumber; amountEther: string; from: string; }>; parseERC20TxByNetwork(data: string, value: any, txId?: string): Promise<Partial<ethers.utils.TransactionDescription>>; getFeeData(): Promise<any>; recoverMessageSigner(message: string, signature: string): string; getTransactionById(txID: string): Promise<any>; }