Add lbry.resolveName()

This commit is contained in:
Alex Liebowitz 2016-05-16 09:17:53 -04:00
parent 6ac17ae675
commit 4593e8600d

View file

@ -95,6 +95,10 @@ lbry.search = function(query, callback)
lbry.call("search_nametrie", { "search": 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.getStream = function(name, callback) {
lbry.call('get', { 'name': name }, callback); lbry.call('get', { 'name': name }, callback);
}; };