Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

EtherscanProvider

class EtherscanProvider extends BaseProvider {
constructor(network?: Networkish, apiKey?: string);
readonly apiKey: string | null;
readonly baseUrl: string;
 
detectNetwork(): Promise<Network>;
fetch(
module: string,
params: Record<string, any>,
post?: boolean,
): Promise<any>;
getBaseUrl(): string;
getHistory(
addressOrName: string | Promise<string>,
startBlock?: BlockTag,
endBlock?: BlockTag,
): Promise<Array<TransactionResponse>>;
getPostData(module: string, params: Record<string, any>): Record<string, any>;
getPostUrl(): string;
getUrl(module: string, params: Record<string, string>): string;
isCommunityResource(): boolean;
perform(method: string, params: any): Promise<any>;
}

§Extends

§
BaseProvider
[src]

§Constructors

§
new EtherscanProvider(network?: Networkish, apiKey?: string)
[src]

§Properties

§
apiKey: string | null
[src]
§
baseUrl: string
[src]

§Methods

§
detectNetwork(): Promise<Network>
[src]
§
fetch(module: string, params: Record<string, any>, post?: boolean): Promise<any>
[src]
§
getBaseUrl(): string
[src]
§
getHistory(addressOrName: string | Promise<string>, startBlock?: BlockTag, endBlock?: BlockTag): Promise<Array<TransactionResponse>>
[src]
§
getPostData(module: string, params: Record<string, any>): Record<string, any>
[src]
§
getPostUrl(): string
[src]
§
getUrl(module: string, params: Record<string, string>): string
[src]
§
isCommunityResource(): boolean
[src]
§
perform(method: string, params: any): Promise<any>
[src]