Session Status
tronsave_get_session_statusChecks current TronSave authentication state without contacting the service, showing auth mode, wallet, expiry, network, and available tool groups so you know whether to log in or fix session errors.
Instructions
Report the current authentication state without calling TronSave: authMode (none | api-key | signature), source (login | header), walletAddress, hasInternalApiKey, expiresAt, network, and which tool groups are available now. Call this first when unsure whether to log in, and after SESSION_REQUIRED / INVALID_SESSION_TYPE errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | `login` = `tronsave_login` session, `header` = static Authorization header, `oauth` = OAuth sign-in by the client app. | |
| network | No | Network served by this endpoint. | |
| authMode | No | `signature` unlocks wallet tools; `api-key` unlocks internal-account tools. | |
| expiresAt | No | Login expiry for `source=login`. | |
| availableNow | No | Tool groups callable with the current auth. | |
| authenticated | No | Whether any credential is active for this request. | |
| walletAddress | No | Wallet of the signature identity, if any. | |
| headerAuthError | No | Present when header credentials were sent but rejected. | |
| hasInternalApiKey | No | Whether an internal API key is available for api-key tools. |