@0xfacet/sdk
Version:
A toolkit for Facet blockchain integration.
17 lines (16 loc) • 495 B
TypeScript
import { Hex } from "viem";
/**
* Decodes the encoded transaction data from an L1 transaction to the Facet Inbox
*
* @param encodedData - The encoded transaction data
* @returns The decoded transaction parameters
* @throws Error if the data cannot be decoded
*/
export declare const decodeFacetEncodedTransaction: (encodedData: Hex) => Promise<{
l2ChainId: number;
to: `0x${string}`;
value: bigint;
data: `0x${string}`;
gasLimit: bigint;
fctMintAmount: bigint;
}>;