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

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

Response - 200 OK, application/json

Response Error Table

POST/api/v1/wallet

Example request body

{
	"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/wallet \
    -H 'Content-Type: application/json;charset=utf-8' \
    -d '{
	  "mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
	  "language": "english"
    }'

Response (Success)

{
    "mnemonic": "someone window crucial magic shoulder latin satisfy total siege curtain candy trip",
    "privateKey": "7bf8ec7059c3f5237ec2651dbb1997f0288a260e1f9335ecf33df49b148b0710",
    "address": "H34kywGZSMUdPSCa3rqJLeHaRqigS3Bnt"
}

Last updated