Recover wallet credentials

Recovers the credentials of a wallet.


Call URL

/wallets/recovery

Type : POST


Call request body parameters

Field Type Required/Optional Description Accepted values
passphrase string Required The passphrase used when creating the wallet. Any string
mnemonics string Required The unique group of twelve words provided by Tetrium when the wallet was initially created. Any string

Sample Call Request

https://api.tetrium.io/tokenize/wallets/recovery

Parameters:

{
   "passphrase":"Insert your passphrase here",
   "mnemonics":"industry fossil shove certain rail hold mix ostrich tongue minor hotel affair"
}

Call responses

Success response

Field Type Description Respond Values
status string Status of the API call. "success"
message string Information about the status. "wallet recovered"
walletInformation JSON Object Credentials retrieved for the wallet. (See below)

Information contained in walletInformation:

Field Type Description Respond Values
mnemonics string A unique group of twelve words generated by Tetrium for the wallet. Any string
walletAddress string The wallet address of the wallet. Any string
walletKey string The key of the wallet. Any string

Error response

Field Type Description Respond Values
status string Status of the API call. "fail"
error string Information about the error. (See below)

Information contained in error:

Error Messages Description
"missing passphrase" passphrase was not provided as a parameter in the API call body.
"invalid passphrase" passphrase provided was not in the correct format.
"missing mnemonics" mnemonics was not provided as a parameter in the API call body.
"invalid mnemonics" mnemonics provided was not in the correct format.

For any other errors, please refer to List of Common Error Messages

Sample Call Response

{
   "status":"success",
   "message":"wallet recovered",
   "walletInformation":{
      "mnemonics":"industry fossil shove certain rail hold mix ostrich tongue minor hotel affair",
      "walletAddress":"0xc7731ba1b2cfb4e5fdbce6492928a7c7787e211e",
      "walletKey":"ece36969cf09e9a4527c37cac6b7597d5b038dc8a5b8ab25f6e4d1a0eb90f31c"
   }
}

results matching ""

    No results matching ""