From edce4a83ce905ff82ac4aebf296e39b3675d4d8b Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sun, 3 Mar 2013 20:04:32 -0800 Subject: [PATCH] JS: Add temporary support for RPC tx. --- src/js/remote.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/remote.js b/src/js/remote.js index 7eca87f002..c241a8b33e 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -876,6 +876,15 @@ Remote.prototype.request_transaction_entry = function (hash) { .tx_hash(hash); }; +// DEPRECATED: use request_transaction_entry +Remote.prototype.request_tx = function (hash) { + var request = new Request(this, 'tx'); + + request.message.transaction = hash; + + return request; +}; + Remote.prototype.request_account_info = function (accountID) { var request = new Request(this, 'account_info');