@kodex-react/ctx-ethers
Version:
Provides a React context provider for the Ethers.js library, which allows you to interact with Ethereum smart contracts.
9 lines (8 loc) • 362 B
TypeScript
/// <reference types="node" />
export declare function useEthers(): import("./types").EthersContext;
export declare function useForceUpdate(): () => void;
export declare function useInterval(callback: Function, intervalDuration: number, startImmediate?: boolean): {
start: () => void;
stop: () => void;
intervalId: number | NodeJS.Timeout | null;
};