From 87c661f77896e7e1f65720bce2d1b0b13096b613 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Sat, 19 Jan 2013 10:56:48 +0100 Subject: [PATCH] JS: Add account_info RPC method. --- src/js/remote.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/js/remote.js b/src/js/remote.js index cf3e10863..0058b9b90 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -747,6 +747,14 @@ Remote.prototype.request_transaction_entry = function (hash, current) { .tx_hash(hash); }; +Remote.prototype.request_account_info = function (accountID) { + var request = new Request(this, 'account_info'); + + request.message.ident = UInt160.json_rewrite(accountID); + + return request; +}; + // --> account_index: sub_account index (optional) // --> current: true, for the current ledger. Remote.prototype.request_account_lines = function (accountID, account_index, current) {