elective-stereophonic
elective-stereophonic
API - craete new wallet
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.2

Author Topic: API - craete new wallet  (Read 1384 times)

aph5

  • Jr. Member
  • **
  • Karma: +0/-0
  • Offline Offline
  • Posts: 20
    • View Profile
API - craete new wallet
« on: December 14, 2015, 07:54:32 am »

Hi,

I was reading the API wiki, but I did not find any information how can I create new nxt wallet/account through the api.
Does rest api allows createing new accounts?
Logged

remix

  • Jr. Member
  • **
  • Karma: +18/-2
  • Offline Offline
  • Posts: 90
    • View Profile
Re: API - craete new wallet
« Reply #1 on: December 14, 2015, 09:11:57 am »

Sending NXT to an account-id creates the account. What you need is a new passphrase, the easiest way is to add characters to the one created by the UI client.

EDIT: Creating a completely new crypto-secure passphrase from scratch would depend on the programming language and would have to be done correctly, that's why it's easier to use the one created by the UI client as a base.
« Last Edit: December 14, 2015, 09:19:49 am by remix »
Logged

Brangdon

  • Hero Member
  • *****
  • Karma: +229/-25
  • Offline Offline
  • Posts: 1389
  • Quality is addictive.
    • View Profile
Re: API - craete new wallet
« Reply #2 on: December 14, 2015, 11:26:14 am »

getAccountId will turn a secret phrase into an account ID. It just does the hashing, and doesn't create a transaction or touch the blockchain. Given the account ID, you can use sendMoney (from another account) to initialise the new account with a balance.

The Nxt API does not use wallet.dat files.
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly