From 4593e8600d52b5087a9f4ac9043f1622eae35532 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Mon, 16 May 2016 09:17:53 -0400 Subject: [PATCH] Add lbry.resolveName() --- js/lbry.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/lbry.js b/js/lbry.js index 16b8f5ef8..5b1836f55 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -95,6 +95,10 @@ lbry.search = function(query, callback) lbry.call("search_nametrie", { "search": query }, callback); } +lbry.resolveName = function(name, callback, ec) { + lbry.call('resolve_name', { 'name': name }, callback); +} + lbry.getStream = function(name, callback) { lbry.call('get', { 'name': name }, callback); };