sign

Generates the signature for the provided transaction hash.

Example

import { sign } from "thirdweb/utils";
const signature = sign({
hash: "0x",
privateKey: "0x",
});
function sign(options: SignOptions): Signature;

Parameters

The options for signing.

Type

let options: { hash: Hex; privateKey: Hex };

Returns

let returnType: Signature;

The transaction signature.