@berrywallet/core
Version:
Berrywallet main Core for work with common cryptocurrencies like Bitcoin, Ethereum, Dash, Litecoin
16 lines (15 loc) • 904 B
TypeScript
import BigNumber from 'bignumber.js';
import { EtherscanApiClient } from 'etherscan-api';
import { Coin, Wallet } from '../../';
import { TAdapterOption } from '../api';
import { NetworkClient, IEthereumNetworkClient, GasPrice } from './network-client';
export declare class EtherscanNetworkClient extends NetworkClient implements IEthereumNetworkClient {
protected etherscanClient: EtherscanApiClient;
constructor(coin: Coin.CoinInterface, options: TAdapterOption);
getTx(txid: string): Promise<Wallet.Entity.WalletTransaction | undefined>;
getBlock(blockHash: string): Promise<Wallet.Entity.Block>;
getGasPrice(): Promise<GasPrice>;
estimateGas(address: Coin.Key.Address, value: BigNumber): Promise<BigNumber>;
broadCastTransaction(transaction: Coin.Transaction.Transaction): Promise<string>;
getAddressTxs(address: string): Promise<Wallet.Entity.EtherTransaction[]>;
}