From ed3e6848e551c3acb856844b874576d2dd94b590 Mon Sep 17 00:00:00 2001
From: Jeremy Kauffman
-
- lbrynet-daemon --no-launch
-
+ $lbrynet-daemon
The first time you run the daemon, it must catch-up with most recent blockheaders. This can take several minutes.
@@ -62,7 +60,7 @@To verify the LBRY daemon is running correctly and responding to requests, run:
-curl 'http://localhost:5279/lbryapi' --data '{"method":"status","params":[]}'
+ $curl 'http://localhost:5279/lbryapi' --data '{"method":"status","params":[]}'
[
{
"connection_status": {
@@ -75,12 +73,11 @@
"startup_status": {
"message": "Started lbrynet",
"code": "started"
- },
- "lbry_id": "7J75jSuxU9eizREuxk1r"
+ }
}
-]
+]
This makes it easy to interact with the LBRY API in the programming language of your choice. Here's another example:
-curl 'http://localhost:5279/lbryapi' --data '{"method":"resolve_name","params":[{"name":"what"}]}'
+ $curl 'http://localhost:5279/lbryapi' --data '{"method":"resolve_name","params":[{"name":"what"}]}'
[
{
"ver": "0.0.3",
@@ -96,7 +93,7 @@
"nsfw": false,
"thumbnail": "https:\/\/s3.amazonaws.com\/files.lbry.io\/logo.png"
}
-]
+]
LBRY can be used to build everything from a censorship-proof image host, to a store for 3D printing files, to distribute large files or datasets, or use cases even we can't imagine!
@@ -104,8 +101,8 @@Many actions, such as reserving a name or purchasing paid content, require credits.
To receive credits, first generate a wallet address:
-curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_new_address","params":[]}'
-["bbFxRyWCFRkA9YcuuZD8nE7XTLUxYnddTs"]
+ $curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_new_address","params":[]}'
+["bbFxRyWCFRkA9YcuuZD8nE7XTLUxYnddTs"]
Use this address to get credits in one of two ways:
If you’re a programmer, you might recognize the LBRY blockchain as a key-value store. Each key, or name, corresponds to a value, or a metadata entry. Whichever party or parties bid the most LBC gets to control the metadata returned by a key lookup.
Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.
-
- wonderfullife : {
- title: "It’s a Wonderful Life",
- description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
- thumbnail: "http://i.imgur.com/MW45x88.jpg",
- license: "public domain",
- price: 0, //free!
- publisher: "A Fan Of George Bailey", //simplification
- sources: { //extensible, variable list
- lbry_hash : <unique id>,
- url : <url>
- }
- }
- $lbrynet-cli resolve_name name=wonderfullife
+wonderfullife : {
+ title: "It’s a Wonderful Life",
+ description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+ thumbnail: "http://i.imgur.com/MW45x88.jpg",
+ license: "public domain",
+ price: 0, //free!
+ publisher: "A Fan Of George Bailey", //simplification
+ sources: { //extensible, variable list
+ lbry_hash : <unique id>,
+ url : <url>
+ }
+}
Other than the usage of the LBRY blockchain to store names and metadata, there are only minor differences between the blockchains of LBRY and Bitcoin, and the changes are generally consensus improvements. We’ve buffed the hashing algorithm, smoothed the block reward function, increased the block size, increased the total number of credits, and prepared for offchain settlement.
@@ -182,7 +180,7 @@As neither naïfs nor knaves, we acknowledge that LBRY can be used for bad ends. Technology is frequently this way. Encryption protects our privacy -- as well as that of terrorists. Cars allow us to travel marvelous distances -- and kill millions per year.
@@ -246,16 +244,16 @@Here is a sample key-value entry in the LBRY blockchain. Here, wonderfullife is the key, and the rest of the description is the value.
- wonderfullife : {
- title: "It’s a Wonderful Life",
- description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
- thumbnail: "http://i.imgur.com/MW45x88.jpg",
- license: "public domain",
- price: 0, //free!
- publisher: "A Fan Of George Bailey", //simplification
- sources: { //extensible, variable list
- lbry_hash : <unique id>,
- url : <url>
+ wonderfullife : {
+ title: "It’s a Wonderful Life",
+ description: "An angel helps a compassionate but despairingly frustrated businessman by showing what life would have been like if he never existed.",
+ thumbnail: "http://i.imgur.com/MW45x88.jpg",
+ license: "public domain",
+ price: 0, //free!
+ publisher: "A Fan Of George Bailey", //simplification
+ sources: { //extensible, variable list
+ lbry_hash : <unique id>,
+ url : <url>
}
}