UNPKG

1.42 kBTypeScriptView Raw
1import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core';
2import { Web3Eth, RegisteredSubscription } from 'web3-eth';
3import { ENS } from 'web3-eth-ens';
4import { Iban } from 'web3-eth-iban';
5import { Personal } from 'web3-eth-personal';
6import { Net } from 'web3-net';
7import * as utils from 'web3-utils';
8import { EthExecutionAPI, SupportedProviders } from 'web3-types';
9import { Web3EthInterface } from './types.js';
10export declare class Web3<CustomRegisteredSubscription extends {
11 [key: string]: Web3SubscriptionConstructor<EthExecutionAPI>;
12} = RegisteredSubscription> extends Web3Context<EthExecutionAPI, CustomRegisteredSubscription & RegisteredSubscription> {
13 static version: string;
14 static utils: typeof utils;
15 static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>;
16 static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963ProvidersMapUpdateEvent) => void) => void;
17 static modules: {
18 Web3Eth: typeof Web3Eth;
19 Iban: typeof Iban;
20 Net: typeof Net;
21 ENS: typeof ENS;
22 Personal: typeof Personal;
23 };
24 utils: typeof utils;
25 eth: Web3EthInterface;
26 constructor(providerOrContext?: string | SupportedProviders<EthExecutionAPI> | Web3ContextInitOptions<EthExecutionAPI, CustomRegisteredSubscription>);
27}
28export default Web3;