Create new wallet

Creates a new wallet in Tetrium.


Call URL

/wallets

Type : POST


Call request body parameters

Field Type Required/Optional Description Accepted values
passphrase string Required Similar to a "password" for a wallet. Any string

Sample Call Request

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

Parameters:

{  
   "passphrase":"Pass12579"
}

Call responses

Success response

Field Type Description Respond Values
status string Status of the API call. "success"
message string Information about the status. "wallet generated"
walletInformation JSON Object Credentials for the new generated 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 new wallet. Any string
walletAddress string The wallet address of the new generated wallet. Any string
walletKey string The key of the new generated wallet. This key is important to unlock the wallet when making transactions 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.

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

Sample Call Response

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

results matching ""

    No results matching ""