BaseProvider
class BaseProvider extends Provider implements EnsProvider { }
constructor(network: Networkish | Promise<Network>);
_bootstrapPoll: NodeJS.Timer;
_emitted: {};
[eventName: string]: number | "pending";
_events: Array<Event>;
_fastBlockNumber: number;
_fastBlockNumberPromise: Promise<number>;
_fastQueryDate: number;
_internalBlockNumber: Promise<{
blockNumber: number;
reqTime: number;
respTime: number;
}>;_lastBlockNumber: number;
_maxFilterBlockRange: number;
_maxInternalBlockNumber: number;
_network: Network;
_networkPromise: Promise<Network>;
_poller: NodeJS.Timer;
_pollingInterval: number;
readonly anyNetwork: boolean;
disableCcipRead: boolean;
formatter: Formatter;
get blockNumber(): number;
get polling(): boolean;
set polling(value: boolean);
get pollingInterval(): number;
set pollingInterval(value: number);
_getAddress(addressOrName: string | Promise<string>): Promise<string>;
_getBlock(blockHashOrBlockTag: BlockTag | string | Promise<BlockTag | string>, includeTransactions?: boolean): Promise<Block | BlockWithTransactions>;
_getFastBlockNumber(): Promise<number>;
_getFilter(filter: Filter | FilterByBlockHash | Promise<Filter | FilterByBlockHash>): Promise<Filter | FilterByBlockHash>;
_getInternalBlockNumber(maxAge: number): Promise<number>;
_getResolver(name: string, operation?: string): Promise<string>;
_ready(): Promise<Network>;
_setFastBlockNumber(blockNumber: number): void;
_startEvent(event: Event): void;
_stopEvent(event: Event): void;
_waitForTransaction(
transactionHash: string,
confirmations: number,
timeout: number,
replaceable: {
): Promise<TransactionReceipt>;data: string;
from: string;
nonce: number;
to: string;
value: BigNumber;
startBlock: number;
},call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>;
ccipReadFetch(
tx: Transaction,
calldata: string,
urls: Array<string>,
): Promise<null | string>;detectNetwork(): Promise<Network>;
getAvatar(nameOrAddress: string): Promise<null | string>;
getBalance(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<BigNumber>;
getBlockNumber(): Promise<number>;
getBlockWithTransactions(blockHashOrBlockTag: BlockTag | string | Promise<BlockTag | string>): Promise<BlockWithTransactions>;
getCode(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>;
getEtherPrice(): Promise<number>;
getGasPrice(): Promise<BigNumber>;
getLogs(filter: Filter | FilterByBlockHash | Promise<Filter | FilterByBlockHash>): Promise<Array<Log>>;
getNetwork(): Promise<Network>;
getStorageAt(
addressOrName: string | Promise<string>,
position: BigNumberish | Promise<BigNumberish>,
): Promise<string>;getTransactionCount(addressOrName: string | Promise<string>, blockTag?: BlockTag | Promise<BlockTag>): Promise<number>;
lookupAddress(address: string | Promise<string>): Promise<null | string>;
perform(method: string, params: any): Promise<any>;
poll(): Promise<void>;
resetEventsBlock(blockNumber: number): void;
resolveName(name: string | Promise<string>): Promise<null | string>;
waitForTransaction(
transactionHash: string,
confirmations?: number,
timeout?: number,
): Promise<TransactionReceipt>;§Implements
§Constructors
§
new BaseProvider(network: Networkish | Promise<Network>)
[src]ready
A Promise that resolves only once the provider is ready.
Sub-classes that call the super with a network without a chainId MUST set this. Standard named networks have a known chainId.
§Properties
§Methods
§
_getTransactionRequest(transaction: Deferrable<TransactionRequest>): Promise<Transaction>
[src]§
_waitForTransaction(transactionHash: string, confirmations: number, timeout: number, replaceable: {
[src]data: string;
from: string;
nonce: number;
to: string;
value: BigNumber;
startBlock: number;
}): Promise<TransactionReceipt>§
call(transaction: Deferrable<TransactionRequest>, blockTag?: BlockTag | Promise<BlockTag>): Promise<string>
[src]§
estimateGas(transaction: Deferrable<TransactionRequest>): Promise<BigNumber>
[src]§
getTransaction(transactionHash: string | Promise<string>): Promise<TransactionResponse>
[src]§
getTransactionReceipt(transactionHash: string | Promise<string>): Promise<TransactionReceipt>
[src]§
sendTransaction(signedTransaction: string | Promise<string>): Promise<TransactionResponse>
[src]§
waitForTransaction(transactionHash: string, confirmations?: number, timeout?: number): Promise<TransactionReceipt>
[src]§Static Methods
§
getNetwork(network: Networkish): Network
[src]