Import private key

POST http://127.0.0.1/api/user/key/import

.config
{
	"webuser": {
		"enabled": true, 
		"rw_pkey": true,
		}
}

rw_pkey - enable access to import/export private keys (value must be true for import)

{ 
	"private_key": "AAIAAEgAAAAQAAA     AAAABAAAABQAAABMO"
}
success response: {"success": true, "id": 15, "mail": "test3@dex.ru", "address": "4q9gCwTnXXy7WF485rAhDxUoYY08XH6E"}
fail response: {"success":"false","error":"access to private keys is disabled"}

Last updated