Skip to content

Login API

David Tavarez edited this page Jun 20, 2020 · 3 revisions

Used to open a wallet and retrieve a session token for use with future calls during the remainder of the user's session.

URL : /v2

Method : login

Params

  • username(string): The username that was used to create the wallet.
  • password(string): The user's password. Since the password is transmitted as plaintext, future versions will require https.

Request

{
  "jsonrpc": "2.0",
  "method": "login",
  "id": 1,
  "params": {
    "username": "David",
    "password": "P@ssw0rd123!"
  }
}

Reponse

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "session_token": "mFHve+/CFsPuQf1+Anp24+R1rLZCVBIyKF+fJEuxAappgT2WKMfpOiNwvRk=",
    "listener_port": 1100,
    "tor_address": ""
  }
}