Skip to main content

Usage

Parameters

Pass null as params to disable the query.

Return Value

SessionDataResponse Structure

Example Implementation

Conditional Rendering Based on Session

Auto-Refresh Session Status

This is a read-only query that doesn’t require gas or signatures. It directly calls the smart contract’s view function.
If the session doesn’t exist on-chain, isActive will be false with remainingCalls: 0. This is normal for sessions that were never registered or have been revoked.