@0x/0x-parser
Version:
🧾 Designed for 0x integrators: This library parses 0x transactions on EVM blockchains into a format that is both user-friendly and easy to understand.
18 lines (17 loc) • 499 B
TypeScript
import type { Chain, Address, Transport, PublicClient } from "viem";
export declare function parseSwap({ publicClient, transactionHash: hash, smartContractWallet, }: {
publicClient: PublicClient<Transport, Chain>;
transactionHash: Address;
smartContractWallet?: Address;
}): Promise<{
tokenIn: {
symbol: string;
address: string;
amount: string;
};
tokenOut: {
symbol: string;
amount: string;
address: string;
};
} | null>;