Docs

toSerializableTransaction

Converts a prepared transaction to a transaction with populated options.

Example

import {
prepareTransaction,
toSerializableTransaction,
} from "thirdweb";
const transaction = await prepareTransaction({
transaction: {
to: "0x...",
value: 100,
},
});
const finalTx = await toSerializableTransaction({
transaction,
});
account.sendTransaction(finalTx);

Parameters

Returns

A serializable transaction for inspection or submission to an account.