Generating a new address
api/v1
The first step to be able to send and receive Hycon is by creating a new wallet.
Request Body - Content-Type: application/json;charset=utf-8
Parameter
Type
Required
Description
mnemonic
string
No
A 12- to 24-word BIP39 phrase to seed your wallet's private key
language
string
No
Regional language to generate your wallet's mnemonic phrase (Default: English)
Please check Appendix > Language Support for more information. $language is not case-sensitive.
Response - 200 OK, application/json
Parameter
Type
Description
mnemonic
string
A 12- to 24-word BIP39 phrase to seed your wallet's private key
privateKey
string
The generated private key from the mnemonic
address
string
The generated Hycon wallet address
Response Error Table
Status
Error
Message
400
INVALID_PARAMETER
mnemonic or language is invalid/mismatched
404
NOT_FOUND
the resource cannot be found / currently unavailable
POST/api/v1/wallet
Example request body
1
{
2
"mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
3
"language": "english"
4
}
Copied!
Example request
1
$ curl -X POST http://localhost:2442/api/v1/wallet \
2
-H 'Content-Type: application/json;charset=utf-8' \
3
-d '{
4
"mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
5
"language": "english"
6
}'
Copied!
Response (Success)
1
{
2
"mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
3
"privateKey": "7bf8ec7059c3f5237ec2651dbb1997f0288a260e1f9335ecf33df49b148b0710",
4
"address": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt"
5
}
Copied!
Last modified 3mo ago
Copy link