serializeTransaction

Serializes a legacy, EIP-1559, EIP-2930, or EIP-4844 transaction object.

Example

import { serializeTransaction } from "thirdweb";
const serializedTransaction = serializeTransaction({
transaction: {
to: "0x",
value: 0n,
},
});

Parameters

Returns

The serialized transaction.