Method Name
public/register_session_key_via_secret
public/register_session_key_via_secretRegister 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_secintegerrequired Expiry of the session key |
| public_session_keystringrequired Session key in the form of an Ethereum EOA |
| secretstringrequired Secret to validate that they are the vault. Should be signed with the wallet |
| walletstringrequired Ethereum wallet address of account |
| scopestring Scope of the session key. If not included it is assumed to be read only. Options are [KeyScope.ACCOUNT, KeyScope.READ_ONLY] enum adminaccountread_only |
Response
| idstring or integerrequired |
| resultobjectrequired |
| result.expiry_secintegerrequired Expiry of the session key |
| result.public_session_keystringrequired 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}