@rarible/estimate-middleware
Version:
19 lines (18 loc) • 618 B
TypeScript
import { JsonRpcEngine } from "json-rpc-engine";
import type { SafeEventEmitterProvider } from "eth-json-rpc-middleware/dist/utils/cache.js";
export type EstimateOptions = Partial<{
/**
* JsonRpcEngine or string to rpc node
*/
estimation: JsonRpcEngine | string;
/**
* Force calculation of gas even if proider handle it by yourself
*/
force: boolean;
/**
* Number that will be used as multiplier for final gas value
* @example 1.1
*/
threshold: number;
}>;
export declare function estimate(provider: any, options?: EstimateOptions): SafeEventEmitterProvider;