Serializes a legacy, EIP-1559, EIP-2930, EIP-4844, or EIP-7702 transaction object.
import { serializeTransaction } from "thirdweb"; const serializedTransaction = serializeTransaction({ transaction: { to: "0x", value: 0n, },});
function serializeTransaction( options: SerializeTransactionOptions,): Hex;
The serialization options.
let options: { signature?: | ox__Signature.Signature<true, Hex> | ox__Signature.Legacy<Hex, bigint>; transaction: SerializableTransaction;};
let returnType: ox__Hex.Hex;
The serialized transaction.