TypeScript SDK
ERC7702.getSessionStateForSigner
Calls the "getSessionStateForSigner" function on the contract.
import { getSessionStateForSigner } from "thirdweb/extensions/erc7702"; const result = await getSessionStateForSigner({ contract, signer: ...,});
function getSessionStateForSigner(options: BaseTransactionOptions<GetSessionStateForSignerParams>) : Promise<{ callParams: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }>; callValue: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }>; transferValue: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }> }>
The options for the getSessionStateForSigner function.
let returnType: Promise<{ callParams: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }>; callValue: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }>; transferValue: readonly Array<{ index: bigint; remaining: bigint; selector: `0x${string}`; target: string }> }>
The parsed result of the function call.