TypeScript SDK

ERC7702.createSessionWithSig

Prepares a transaction to call the "createSessionWithSig" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { createSessionWithSig } from "thirdweb/extensions/erc7702";
const transaction = createSessionWithSig({
contract,
sessionSpec: ...,
signature: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function createSessionWithSig(
| { asyncParams: () => Promise<CreateSessionWithSigParams> }
>,

Parameters

The options for the "createSessionWithSig" function.

Type

| { asyncParams: () => Promise<CreateSessionWithSigParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.