Serializes a legacy, EIP-1559, EIP-2930, or EIP-4844 transaction object.
import { serializeTransaction } from "thirdweb"; const serializedTransaction = serializeTransaction({ transaction: { to: "0x", value: 0n, },});
function serializeTransaction( options: SerializeTransactionOptions<_transaction>,): SerializedTransactionReturnType<_transaction>;
The serialization options.
let options: SerializeTransactionOptions<_transaction>;
let returnType: SerializedTransactionReturnType<_transaction>;
The serialized transaction.