signAuthorization

Sign the given EIP-7702 authorization object.

function signAuthorization(options: {
account: Account;
}): Promise<{
address: string;
chainId: number;
nonce: bigint;
r: bigint;
s: bigint;
yParity: number;
}>;

Parameters

The options for signAuthorization Refer to the type SignAuthorizationOptions

Type

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

Returns

let returnType: Promise<{
address: string;
chainId: number;
nonce: bigint;
r: bigint;
s: bigint;
yParity: number;
}>;

The signed authorization object

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