Docs

signTransaction

Signs a transaction to be sent to a node.

Example

import { signTransaction } from "thirdweb";
signTransaction({
transaction: {
...
},
privateKey: "0x...",
});

Parameters

Returns

The signed transaction as a hex string