Skip to main content
POST
validateSession

Contextualizing validateSession

  • validateSession returns a Boolean, result, indicating the validity of a given session key instance. It takes:
    • Account config object:
      • name - string.
      • version - string.
      • ownerAddress - string.
      • biconomyApiKey - (optional), string. It should only be used if you’d like to use a Biconomy Paymaster.
    • Array of sessions:
      • Session object:
        • validUntil - integer.
        • validAfter - integer.
        • sessionValidationModule - string.
        • sessionKeyDataInAbi (alternative: sessionKeyData) - array.

Query example

JSON

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to validate a session.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

method
enum<string>
required

API method being called.

Available options:
particle_aa_validateSession
params
object[]
required

Parameters for validating a session.

Response

200 - application/json

Successful response indicating the session validity.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

result
boolean
required

Indicates if the session is valid.

Example:

true

chainId
integer

Blockchain chain ID.

Example:

80001