Edit Session Key

Method Name

private/edit_session_key

Edits session key parameters such as label and IP whitelist.

Parameters

public_session_key string required
Session key in the form of an Ethereum EOA
wallet string required
Ethereum wallet address of account
ip_whitelist array of strings
Optional list of whitelisted IPs, an empty list can be supplied to whitelist all IPs
label string
Optional new label for the session key

Response

id string or integer required
result object required
result.expiry_sec integer required
Session key expiry timestamp in sec
result.label string required
User-defined session key label
result.public_session_key string required
Public session key address (Ethereum EOA)
result.ip_whitelist array of strings required
List of whitelisted IPs, if empty then any IP is allowed.

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}