Generating a new wallet

api/v1

A wallet file will be created in local storage. You can use the UI via the relevant URL or this API to interact with your wallet.

Request Body - Content-Type: application/json;charset=utf-8

Please check Appendix > Language Support for more information. $language is not case-sensitive.

Response - 200 OK, text/plain

POST/api/v1/generateWallet

Example request body

{
    "name": "test",
    "password": "password",
    "passphrase": "passphrase",
    "hint": "default",
    "mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
    "language": "english"
}

Example request

$ curl -X POST http://localhost:2442/api/v1/generateWallet \
    -H 'Content-Type: application/json;charset=utf-8' \
    -d '{
        "name": "test",
        "password": "password",
        "passphrase": "passphrase",
        "hint": "default",
        "mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
        "language": "english"
    }'

Response (Success)

"H36vybmEsPXdXzBD6a3sE2A6pGNTbCsae"

Response (Error)

"Information is missing"

Last updated