Learn how to use the createSessions JSON-RPC method.
createSessionscreateSessions will generate transactions (or UserOperation objects and hashes, according to the fee payment mechanism) for initializing a session key within predefined parameters. It takes:
name - string.version - string.ownerAddress - string.biconomyApiKey - (optional), string. It should only be used if you’d like to use a Biconomy Paymaster.validUntil - integer.validAfter - integer.sessionValidationModule - string.sessionKeyDataInAbi (alternative: sessionKeyData) - array.Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request to create sessions.
Version of the JSON-RPC protocol, should be 2.0.
"2.0"
The request identifier.
1
API method being called.
particle_aa_createSessions Parameters for the API method call. Parameters for creating sessions.
Successful response with created session details.