@celo/contractkit
Version:
Celo's ContractKit to interact with Celo network
11 lines (10 loc) • 518 B
TypeScript
import Web3 from 'web3';
import { HttpProviderOptions as Web3HttpProviderOptions } from 'web3-core-helpers';
export type HttpProviderOptions = Web3HttpProviderOptions;
export declare const API_KEY_HEADER_KEY = "apiKey";
/** @internal */
export declare function setupAPIKey(apiKey: string): Web3HttpProviderOptions;
/** @internal */
export declare function ensureCurrentProvider(web3: Web3): void;
/** @internal */
export declare function getWeb3ForKit(url: string, options: Web3HttpProviderOptions | undefined): Web3;