Powered By GitBook
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
Parameter
Type
Required
Description
name
string
Yes
A unique wallet name
mnemonic
string
Yes
A 12- to 24-word BIP39 phrase to seed your wallet's private key
language
string
Yes
Language of your wallet's mnemonic
password
string
No
A password used to authenticate wallet use
passphrase
string
No
Custom text used as part of your wallet's address generation
hint
string
No
A hint for your password
Please check Appendix > Language Support for more information. $language is not case-sensitive.
Response - 200 OK, text/plain
Parameter
Type
Description
address
string
A 12- to 24-word BIP39 phrase to seed your wallet's private key
POST/api/v1/generateWallet
Example request body
1
{
2
"name": "test",
3
"password": "password",
4
"passphrase": "passphrase",
5
"hint": "default",
6
"mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
7
"language": "english"
8
}
Copied!
Example request
1
$ curl -X POST http://localhost:2442/api/v1/generateWallet \
2
-H 'Content-Type: application/json;charset=utf-8' \
3
-d '{
4
"name": "test",
5
"password": "password",
6
"passphrase": "passphrase",
7
"hint": "default",
8
"mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
9
"language": "english"
10
}'
Copied!
Response (Success)
1
"H36vybmEsPXdXzBD6a3sE2A6pGNTbCsae"
Copied!
Response (Error)
1
"Information is missing"
Copied!
Last modified 3mo ago
Copy link