Skip to content

Restore Wallet API

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

Used to create a new user/wallet.

URL : /v2

Method : restore_wallet

Params

  • username(string): The username that will uniquely identify the wallet.
  • password(string): The user's password. Since the password is transmitted as plaintext, future versions will require https.
  • seed(string): The wallet seed.

Request

{
  "jsonrpc": "2.0",
  "method": "restore_wallet",
  "id": 1,
  "params": {
    "username": "David",
    "password": "P@ssw0rd123!",
    "wallet_seed": "agree muscle erase plunge grit effort provide electric social decide include whisper tunnel dizzy bean tumble play robot fire verify program solid weasel nuclear"
  }
}

Response

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