Method Name
public/register_session_key
public/register_session_keyRegister or update expiry of an existing session key.
Currently, this only supports creating admin level session keys.
Keys with fewer permissions are registered via /register_scoped_session_key
Expiries updated on admin session keys may not happen immediately due to waiting for the onchain transaction to settle.
Parameters
| expiry_secintegerrequired Expiry of the session key |
| labelstringrequired Ethereum wallet address |
| public_session_keystringrequired Session key in the form of an Ethereum EOA |
| signed_raw_txstringrequired A signed RLP encoded ETH transaction in form of a hex string (same as w3.eth.account.sign_transaction(unsigned_tx, private_key).rawTransaction.hex()) |
| walletstringrequired Ethereum wallet address of account |
Response
| idstring or integerrequired |
| resultobjectrequired |
| result.labelstringrequired User-defined session key label |
| result.public_session_keystringrequired Session key in the form of an Ethereum EOA |
| result.transaction_idstringrequired ID to lookup status of transaction |
Example
{request_example_shell}{request_example_javascript}{request_example_python}The above command returns JSON structured like this:
{response_example_json}