signAuthorization

Sign the given EIP-7702 authorization object.

function signAuthorization(options: {
account: Account;
}): Promise<SignedAuthorization>;

Parameters

The options for signAuthorization Refer to the type SignAuthorizationOptions

Type

let options: { account: Account; request: AuthorizationRequest };

Returns

let returnType: ox__Authorization.ListSigned[number];

The signed authorization object

import { signAuthorization } from "thirdweb";
const authorization = await signAuthorization({
request: {
address: "0x...",
chainId: 911867,
nonce: 100n,
},
account: myAccount,
});