TypeScript SDK

ERC7702.getSessionStateForSigner

Calls the "getSessionStateForSigner" function on the contract.

Example

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 }> }>

Parameters

The options for the getSessionStateForSigner function.

Type

Returns

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.