evm-blockchain-tools
Version:
This is a collection of resuseable tools to support development for EVM-powered blockchains
11 lines (10 loc) • 654 B
TypeScript
import { ALCHEMY_NETWORK, APP_NETWORK } from "../common/constants";
import { IWeb3Gateway, IWeb3GatewayFactory } from "../common/interfaces";
export declare class Web3GatewayRegistry {
protected web3GatewayFactory: IWeb3GatewayFactory;
protected registry: Map<string, IWeb3Gateway>;
constructor(web3GatewayFactory: IWeb3GatewayFactory);
getAlchemyProvider(apiKey: string, privateKey: string, network?: ALCHEMY_NETWORK): IWeb3Gateway;
getQuicknodeProvider(quickNodeHttpsURL: string, privateKey: string, network?: APP_NETWORK): IWeb3Gateway;
getTronProvider(fullHostURL: string, apiKey: string, privateKey: string): IWeb3Gateway;
}