TreeNavigation

From ArdorDocs
Jump to: navigation, search



A sample tree built with Extension:CategoryTree:


Get Account Id Example

Request:

http://localhost:27876/nxt?
  requestType=getAccountId&
  secretPhrase=IWontTellYou

Response:

{
 "accountRS": "ARDOR-L6FM-89WK-VK8P-FCRBB",
 "publicKey": "57fb6f3a958e320bb49c4e81b4c2cf28b9f25d086c143b473beec228f79ff93c",
 "requestProcessingTime": 2,
 "account": "15323192282528158131"
}



   curl -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "publicKey=f3831afb0cfbaca8e9fca6523d0b23d14aa2e6f9ac1726f12c30acd4d622bb0a" "http://localhost:27876/nxt?requestType=getAccountId"


var ardor = require('ardor-blockchain');
ardor.init(config);
ardor.load(function(NRS) {
    var data = {
        publicKey: "f3831afb0cfbaca8e9fca6523d0b23d14aa2e6f9ac1726f12c30acd4d622bb0a"
    };
    NRS.sendRequest("getAccountId", data, function (response) {
        NRS.logConsole("Account id is:" + JSON.stringify(response));
    });
});