HomeDocumentationAPI Reference
Log In
API Reference

Register Session Key Via Secret

Method Name

public/register_session_key_via_secret

Register a new session key with a secret. Only allows read only and account permissions for now.
NOTE: This should not be included into the docs since it is used by the vault to register trade only session keys.

Parameters

expiry_sec  integer required
Expiry of the session key

public_session_key  string required
Session key in the form of an Ethereum EOA

secret  string required
Secret to validate that they are the vault. Should be signed with the wallet

wallet  string required
Ethereum wallet address of account

scope  string
Scope of the session key. If not included it is assumed to be read only. Options are [KeyScope.ACCOUNT, KeyScope.READ_ONLY]
enum admin account read_only

Response

id  string or integer required

result  object required

result. expiry_sec  integer required
Expiry of the session key

result. public_session_key  string required
Session key in the form of an Ethereum EOA

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}