mev-inspect
Version:
A JS port of 'mev-inspect-py' optimised for ease of use.
16 lines • 593 B
TypeScript
import { JsonRpcProvider } from 'ethers';
interface TransactionTrace {
calls: {
from: string;
to: string;
input: string;
output: string;
value: bigint;
gas: bigint;
gasUsed: bigint;
}[];
}
declare function getTransactionTrace(provider: JsonRpcProvider, hash: string): Promise<TransactionTrace | null>;
declare function getBlockTraces(provider: JsonRpcProvider, block: number): Promise<Record<string, TransactionTrace> | null>;
export { TransactionTrace, getBlockTraces, getTransactionTrace };
//# sourceMappingURL=traces.d.ts.map