From b88832d0a9605c614eb51d13fc60897c23997f2f Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 24 Apr 2019 23:03:30 -0400 Subject: [PATCH] regenerated docs/api.json --- docs/api.json | 300 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 194 insertions(+), 106 deletions(-) diff --git a/docs/api.json b/docs/api.json index c1777c83a..71be59939 100644 --- a/docs/api.json +++ b/docs/api.json @@ -26,7 +26,7 @@ "curl": "curl -d'{\"method\": \"block_show\", \"params\": {\"height\": 1}}' http://localhost:5279/", "lbrynet": "lbrynet block_show --height=1", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"block_show\", \"params\": {\"height\": 1}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"bits\": \"207fffff\",\n \"chainwork\": \"0000000000000000000000000000000000000000000000000000000000000004\",\n \"confirmations\": 206,\n \"difficulty\": 3.051711610163642e-05,\n \"hash\": \"7becced05821dd104a9ab6eef6b2f38c99b0c3878323fc15c1cc611ad91e53e3\",\n \"height\": 1,\n \"mediantime\": 1556077736,\n \"merkleroot\": \"0eb255bf11da75f13619a3a6362c299ee0922d4fa1fa87feef7cf40d918242d1\",\n \"nameclaimroot\": \"0000000000000000000000000000000000000000000000000000000000000001\",\n \"nextblockhash\": \"6bcadc6204901c805ec98e656b72191e8742a0bc5d07cc3028689efd4cf80c52\",\n \"nonce\": 3,\n \"previousblockhash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"size\": 211,\n \"target\": \"7fffff0000000000000000000000000000000000000000000000000000000000\",\n \"time\": 1556077736,\n \"tx\": [\n \"0eb255bf11da75f13619a3a6362c299ee0922d4fa1fa87feef7cf40d918242d1\"\n ],\n \"version\": 536870912,\n \"versionHex\": \"20000000\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"bits\": \"207fffff\",\n \"chainwork\": \"0000000000000000000000000000000000000000000000000000000000000004\",\n \"confirmations\": 206,\n \"difficulty\": 3.051711610163642e-05,\n \"hash\": \"e6ed94405aaeec0ef5234d08d49a997271648050e1133cea0224129f181effa5\",\n \"height\": 1,\n \"mediantime\": 1556160358,\n \"merkleroot\": \"1fa654bd3dce42b06f8e5eb6d4891ec5091fea344c4800ffa1a993c16dd55cf3\",\n \"nameclaimroot\": \"0000000000000000000000000000000000000000000000000000000000000001\",\n \"nextblockhash\": \"9067efa5bb4675717cc010b4d52670eec39d5907141f5fb6f39853dc93fe0f6d\",\n \"nonce\": 0,\n \"previousblockhash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"size\": 211,\n \"target\": \"7fffff0000000000000000000000000000000000000000000000000000000000\",\n \"time\": 1556160358,\n \"tx\": [\n \"1fa654bd3dce42b06f8e5eb6d4891ec5091fea344c4800ffa1a993c16dd55cf3\"\n ],\n \"version\": 536870912,\n \"versionHex\": \"20000000\"\n }\n}" } ] }, @@ -43,7 +43,7 @@ { "name": "file_name", "type": "str", - "description": "specified name for the downloaded file", + "description": "specified name for the downloaded file, overrides the stream file name", "is_required": false }, { @@ -51,16 +51,22 @@ "type": "int", "description": "download timeout in number of seconds", "is_required": false + }, + { + "name": "save_file", + "type": "bool", + "description": "save the file to the downloads directory", + "is_required": false } ], "returns": " {\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }", "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_name\": \"astream\",\n \"completed\": false,\n \"download_directory\": \"/tmp/tmpi5ikthmq\",\n \"download_path\": \"/tmp/tmpi5ikthmq/tmpgj4k6kov\",\n \"file_name\": \"tmpgj4k6kov\",\n \"key\": \"22704f415def3f1a19bc06e98c7d956b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"86db94d08df28799a62cafd24a6afa939fb98c0b5a78edfa14a026b616a99528493a85780a8b1f7eb7cb86c6d1b95707\",\n \"stream_name\": \"tmpgj4k6kov\",\n \"suggested_file_name\": \"tmpgj4k6kov\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"save_file\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"save_file\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 0,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 1,\n \"channel_claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_name\": \"astream\",\n \"completed\": false,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": \"tmpijqc8tzz\",\n \"key\": \"50f032917f91ddf1ebe187c01dabc1e0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"6c9f97927167b99574c08f556a091bfc02257cb348459c86c01e91ea43565d2965425fb307f1e1b7a165d6ad47804463\",\n \"stream_name\": \"tmpijqc8tzz\",\n \"suggested_file_name\": \"tmpijqc8tzz\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"written_bytes\": null\n }\n}" } ] }, @@ -241,10 +247,10 @@ "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvyxdi1iq\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpvyxdi1iq", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvyxdi1iq\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c53d22a05ad95c9bcd52090e44e21f20c8ff452be512d1b2a1ddb16076fb88d8010000006a47304402202c20d367f2f48a3c53e9ca7d3c72e6056a29659c118f58ffdfbf751f22539cbb02203e1eead006dd154eaed92816d6f1c5fd1f3a5e3adef70396b443c0a8602f4bd4012103c53bcf3c01e87e6a5863c3470a3ddf173cdb21d15c0b3375080595fffd4a13ddffffffff0200e1f50500000000adb50c612d6e65772d73747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707679786469316971180b22186170706c69636174696f6e2f6f637465742d73747265616d3230ff2e50fe6d7df07acc4e0870ed9eb08f3e6f0632e1f8db2c2c2ae1e53433111cf5111a7875eac7eb6a06cd6ba9617c746d7576a914ef86396f2580e06f2e6dc9f110981fa669d120c388ace0b46217000000001976a9141362e8c52aab7e128c792d977830f21b3c250c4088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqaFJy11HUVjgpEe5ZxxCpB6jvN8RUWSGa\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3MSayPMj3TWpgVES4L2RNALm6M94mjvzT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"43fb98b084e9512c7b2461d03e6cd3ee97d208ba\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"a-new-stream#43fb98b084e9512c7b2461d03e6cd3ee97d208ba\",\n \"txid\": \"bd9e3a3e420d6ae637bdedaf16d460807d9579e419991de53b7d6660801a7b15\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvyxdi1iq\",\n \"sd_hash\": \"ff2e50fe6d7df07acc4e0870ed9eb08f3e6f0632e1f8db2c2c2ae1e53433111cf5111a7875eac7eb6a06cd6ba9617c74\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mhHTd2xX1grCmrjhFdznRNzZdcrmqphThR\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"bd9e3a3e420d6ae637bdedaf16d460807d9579e419991de53b7d6660801a7b15\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"bd9e3a3e420d6ae637bdedaf16d460807d9579e419991de53b7d6660801a7b15\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvw03l1fk\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpvw03l1fk", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvw03l1fk\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e2d8b96dc144bd510952f955c39609813e38ababb4bd69ce37007b4f381fc759010000006b4830450221008cb8bea984259005cb0385f4776b1f7f4efe4900ca6cc9daf1d70db2586d3d1a02207a0ce152d23fc817d802b9cbbefb490cf50c5dd3fa9432c19fdf0af395b248c901210379a2244f1db62e8279365d95a44a6b790ac3755673d90e0b170a9225a4dbb024ffffffff0200e1f50500000000adb50c612d6e65772d73747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70767730336c31666b180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ee3f97b00c53bbbbc0d4605cd027cf67f269db1b4edb464a6765ec141951e1eeb03394d989a62f5b82ab8766e09c816d7576a9149f8a9a9174450506616605b7f0cea201af4e44ba88ace0b46217000000001976a914deb1cbeb8fe3afb244d7fdac5bdefd726591d46388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mq1y9qSzp7FfZLvMmihfio7edYAp7YiKL6\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mv4Xmv1AhskDzZM3Qjkayg3yLTfR5vpnfc\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0c179328bc178a63e3507f3eac2e9b49688e3a78\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#0c179328bc178a63e3507f3eac2e9b49688e3a78\",\n \"txid\": \"32f5c23bf22233ab4fff7e75d33e4089a88c6125ab4b24dcc9b2766add53252c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvw03l1fk\",\n \"sd_hash\": \"38ee3f97b00c53bbbbc0d4605cd027cf67f269db1b4edb464a6765ec141951e1eeb03394d989a62f5b82ab8766e09c81\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1pTJAMjfs38q2LejgAB2ZJQoA3QRVF2Ho\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"32f5c23bf22233ab4fff7e75d33e4089a88c6125ab4b24dcc9b2766add53252c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"32f5c23bf22233ab4fff7e75d33e4089a88c6125ab4b24dcc9b2766add53252c\"\n }\n}" } ] }, @@ -263,10 +269,10 @@ "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"]}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"]}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\": {\n \"certificate\": {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 7,\n \"effective_amount\": \"1.0\",\n \"has_signature\": false,\n \"height\": 210,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"protobuf\": \"00125a0a583056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc420b4e6577204368616e6e656c\",\n \"supports\": [],\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"valid_at_height\": 210,\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"claim\": {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 3,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n }\n },\n \"claims_in_channel\": 0\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"]}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"]}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\": {\n \"certificate\": {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 7,\n \"effective_amount\": \"1.0\",\n \"has_signature\": false,\n \"height\": 210,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"protobuf\": \"00125a0a583056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b420b4e6577204368616e6e656c\",\n \"supports\": [],\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"valid_at_height\": 210,\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"claim\": {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 3,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n }\n },\n \"claims_in_channel\": 0\n }\n }\n}" } ] }, @@ -288,7 +294,7 @@ "curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet status", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"8C8mbiCN3u9yZchsz6dsdoK6XM67XwxAEd3JHHEWDeJ52S4CMCV6RXUAMFkp9SGvYC\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"412f3019be1d8b31676eacd2bb48a63dff080178c070c51062daf62ea2fcbec8\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"2M4Cs1sUcu9pzFoHp6TzBLLLQPaqCve9iRfEohQX4xqMa3P4TxBDdFFrhhtvyDJPGX\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"d60eab23842e6e2c5a6c441669df96b116895bd47b21213a2c7860f93f01de50\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" } ] }, @@ -310,7 +316,7 @@ "curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet version", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.36.0rc4\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.2\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.37.0rc1\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.2\"\n }\n}" } ] } @@ -358,10 +364,10 @@ "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\", \"single_key\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556077739.3577678,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf7bahVCyKG7SuA1qV4LtGZM21Ddbz5cNPu2Jk8XEsJjfdgd1aw83z7JciiwvhHThShpBxKgiKg1byptgMx6pKfWqoHdsjhm\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YadNb8sZifmZUBXmePXnqrwoHjfuQMQmEPH5NXLq3oMXoo9hkZqq2WgP5bC4H6xrwyuPYeF1B8ftAak8DMtGkkZ5RuxTpRQ\",\n \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\", \"single_key\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556160361.5103474,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPddGW6HMy4w2PS6Qn9SmNX149peKepsaNFaxu393oMGkKFeGrbTC6v5psKw97ocE16fvFLJGYPrZ3sm9KxwFXoAxLh23KkwW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X6JHyw2ZULgW17viJmxH6Jew7AMxF9Nm65DffXsPXmNBRkuJa7oWVgm7vdmfFUvjswbpo7SCyQhYwViFpq2s6XWEc81xURg\",\n \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\"\n }\n}" } ] }, @@ -393,9 +399,9 @@ }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}).json()", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"2.0\"\n}" } ] @@ -424,7 +430,7 @@ "curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account create \"generated account\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556077739.1657531,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf7bahVCyKG7SuA1qV4LtGZM21Ddbz5cNPu2Jk8XEsJjfdgd1aw83z7JciiwvhHThShpBxKgiKg1byptgMx6pKfWqoHdsjhm\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YadNb8sZifmZUBXmePXnqrwoHjfuQMQmEPH5NXLq3oMXoo9hkZqq2WgP5bC4H6xrwyuPYeF1B8ftAak8DMtGkkZ5RuxTpRQ\",\n \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556160361.3380778,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPddGW6HMy4w2PS6Qn9SmNX149peKepsaNFaxu393oMGkKFeGrbTC6v5psKw97ocE16fvFLJGYPrZ3sm9KxwFXoAxLh23KkwW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X6JHyw2ZULgW17viJmxH6Jew7AMxF9Nm65DffXsPXmNBRkuJa7oWVgm7vdmfFUvjswbpo7SCyQhYwViFpq2s6XWEc81xURg\",\n \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\"\n }\n}" } ] }, @@ -507,24 +513,24 @@ "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001cf0a008ff3b57b494a3b7839783a85fbf72c1929cbf44ef7d224528ea7fc00a1000000006b483045022100b7c9b672c053f5b197a9f727aa8981eacdacca388ff82e2640c6b3b41606aa2502200ca329fc549cf5fb32a936d5f208a8253726ea05356b0f32aebc60a1aa0f9e590121023940fdcd842ea987a2acb00a292045db7e14eec4f0712cd40031dd9d959862dcffffffff0200c2eb0b000000001976a914a9cd1eaa01ac5caf8891cd6f337152e5234d7bce88ac90d7ae2f000000001976a9141c1171066ceee286872b30ffd3edd1d40c1116f688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrg98LNnLLsoGqmrCi69mGoqtU4PizWtx3\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"a100fca78e5224d2f74ef4cb29192cf7fb853a7839783b4a497bb5f38f000acf\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvznDSoPZGY6PonmBdC9e7JwXGGdy4g6w8\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mi5N7HKhPix6pQEhqFkjC3525Ffqg1BCoP\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001fce5779455e4345f7540e4a26aab1961b297a29ffcbf0c030ae405103f13ebc2010000006b483045022100ad9dd93a1cec2c3cf7c5052605eee18a9d443b840ca276242ad633c472a8eca702204b72aea266a8f80b456d041218a9a623653768e226372d2499fd2a5bf83799e2012103ac3e6208080585758ec2cae538229a798402bda47306e3c6f63daddeb187fcd5ffffffff0200c2eb0b000000001976a914b9f0f85772ba5d7128ffb43c9674c6cab3f8586288ac90d7ae2f000000001976a914d5553d50fd3a39e01b82de6d7b4f74083786bb9388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvw92gKVSRvTBcF9mKbwiaSBjTfyFFQ9T2\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"c2eb133f1005e40a030cbffc9fa297b26119ab6aa2e440755f34e4559477e5fc\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxU7ySLSwzSmCkKvjhAvfs2UCZDSnmBice\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzxxLTbb3Qsc3bGmrn8MJkDw4mno7s8J9H\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"from_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\" --from_account=\"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"from_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ae10215249dba3f36805e691ba86b6725e25b7ed9d8f8492b44b3369dfd874eb000000006a47304402207c7beab511858462243bd0f6eedc9a450ff5961f4b8fca699073e8a4227c4c68022014b7ff75186247c0acc6110ef79e2159999b6db0fea23ce2702bd4784afce7bd0121033375f3d6b6704f4ef17c551b5acd8734b4d1966b95782d6c179aad8600b5dcd2ffffffff03c0687804000000001976a91436b1657ce376c78bddef6cc9eb8e9c48cfebef6588acc0687804000000001976a91436b1657ce376c78bddef6cc9eb8e9c48cfebef6588ac6cb9fa02000000001976a914ece85ac4638c1c0a9b057387bf6c0f76d2f53b2d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvznDSoPZGY6PonmBdC9e7JwXGGdy4g6w8\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkW9J8gxRqhwbDx1gK4B3Sc3o6FDcf3goy\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkW9J8gxRqhwbDx1gK4B3Sc3o6FDcf3goy\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n37c7byRyphXt3AGqDMDyGPJYYVYK9y4fo\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"from_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\" --from_account=\"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"from_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c620032f73cb0576a490b0b9586689f53aba9e365abc5ffc4020176b29c14572000000006b483045022100a75c897909f7e9268ae7a6496c440abc0f5f2772a00d95a8aa3d50ab0cffbdb1022025e3261623d81f93b5bd96e43d5b50a0ca30a99e2d8e1dc837f425696bc46dce01210327e201108b4b7f5510324b106ea5bec7e56f9c453ed7edb7133b4d195a44149affffffff03c0687804000000001976a914722a9ffd5ce11cf4ee6ad0638105c66fbc9c8d1688acc0687804000000001976a914722a9ffd5ce11cf4ee6ad0638105c66fbc9c8d1688ac6cb9fa02000000001976a914981a3d2357e3dad2a8fa99ffec65fe4b700e9e3988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxU7ySLSwzSmCkKvjhAvfs2UCZDSnmBice\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqvcPZFNjaXbYrTS3FdNmV82RyW3fgZc4t\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqvcPZFNjaXbYrTS3FdNmV82RyW3fgZc4t\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"muPCSKNBSMw9v4A8p991TrQMjzD1hSU5ub\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003ef837664d8f9ecb493b2c93f1c07b0d8ab103f347fde72ce4f462257d65ebeed020000006b483045022100aac50a3cab18e533be58da3e7bf7166e1ff2d096d90ddce5d6d6704127822e0b02203eda14f3a269808025d3ed6d882f5d82aced9e35fbcfab322bbf601082c19588012102c6014823dcf0b1b46eddc364677bad1270b26b41c4da78331b65371d12244f8dffffffffef837664d8f9ecb493b2c93f1c07b0d8ab103f347fde72ce4f462257d65ebeed000000006a47304402205dc26134270561193c31196baf620b30f888b3d4dc497ac96051a65135252580022039826749346dec65c6206408b1d9281761376e38154606b03e4384307cbb1c2a01210304090a288111952625f97f9f450cbcb4abc3a61067909a8c39192c51c9d2ce99ffffffffef837664d8f9ecb493b2c93f1c07b0d8ab103f347fde72ce4f462257d65ebeed010000006a473044022019ea77268e69a6514fcdc744c8793cbcccff115ae0832cb4c80d7419a6724d9b022065daf165f9cd4966e9f27ab02294f019aed466bc51e426fa1e7e24c95f04663901210304090a288111952625f97f9f450cbcb4abc3a61067909a8c39192c51c9d2ce99ffffffff015027eb0b000000001976a914b3189b39617295883f901eeaedd7df16c733340688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n37c7byRyphXt3AGqDMDyGPJYYVYK9y4fo\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkW9J8gxRqhwbDx1gK4B3Sc3o6FDcf3goy\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkW9J8gxRqhwbDx1gK4B3Sc3o6FDcf3goy\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"edbe5ed65722464fce72de7f343f10abd8b0071c3fc9b293b4ecf9d8647683ef\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwqvj53DdW9NFvzNHSSiC5bXBMmrLgo2ab\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"059938a2b6a9cf8e6fe06eb60a6f2c35b378818a6aa700b891017f5b8b1f5abc\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"059938a2b6a9cf8e6fe06eb60a6f2c35b378818a6aa700b891017f5b8b1f5abc\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000376f69d6e4aa026d0b21f69f24f0eeae2d9eead7d2a21c24175e2236f68b46065020000006a473044022013b4b1b8ecffc58fadee7175885c0e06ea6e27f01b53d08392e62121f7a994dd02204010573e4f842e05bb22104b1560cae296ef08d8d341b18b7262528c69cde474012103b9be4bc50a153ba83b55e415d898119ebfc3ea9429f0ced5cd1e777cb1c5e983ffffffff76f69d6e4aa026d0b21f69f24f0eeae2d9eead7d2a21c24175e2236f68b46065000000006a47304402205b90116b6cfbc1642ba198140fe0b7dc4033deca1167abe6059e848415e6719902207fdf59b9c200943bf73ea3b95739f18ece1c021a6ec1e12bb6f1a3dd47102bf401210298bc70cb23e2906eaedd552f5c70e23212b78ac0f94b5722fa5fb0cc43b20059ffffffff76f69d6e4aa026d0b21f69f24f0eeae2d9eead7d2a21c24175e2236f68b46065010000006b483045022100cc1ac3fed46aab6ea6d0c90692bbac28d6ad4bbff00eecfdf10470c08d25375d02202d552d5b157bb8fe088e796b1d7763fc57096b1d796c39d624016a1a8dc9607601210298bc70cb23e2906eaedd552f5c70e23212b78ac0f94b5722fa5fb0cc43b20059ffffffff015027eb0b000000001976a914ef89ef92f99d633a091fb618dc9c357734edb6f888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"muPCSKNBSMw9v4A8p991TrQMjzD1hSU5ub\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqvcPZFNjaXbYrTS3FdNmV82RyW3fgZc4t\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqvcPZFNjaXbYrTS3FdNmV82RyW3fgZc4t\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"6560b4686f23e27541c2212a7dadeed9e2ea0e4ff2691fb2d026a04a6e9df676\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3MX2rLSXYR5WSX72qfEUBiuPve8JuANi6\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"7daf5d1f13d6039cf32436cca746c94ca979f8bdb94c5ae7631d651abdba2d00\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"7daf5d1f13d6039cf32436cca746c94ca979f8bdb94c5ae7631d651abdba2d00\"\n }\n}" } ] }, @@ -564,7 +570,7 @@ "curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mnmhSLyxSMttxYe3Xrc84DtwPb6dT3rQCv\",\n \"is_default\": true,\n \"name\": \"Account #mnmhSLyxSMttxYe3Xrc84DtwPb6dT3rQCv\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YJE8wjGviPB6Kz4AGo8Co6pCCNfd4ds18CApbPNDn4H6jXcNJtdo88f3CyQYuYqyErC6pJs7ZfFPWfhiz3jbq4zNu2njJMb\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mvPLJgakTiEdfNEzc2ioockabza3mpUYWY\",\n \"is_default\": true,\n \"name\": \"Account #mvPLJgakTiEdfNEzc2ioockabza3mpUYWY\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YMob2BAjfXmJJ7ucfVpGqpQiiy35WJWrFyAWQPL9aN3Wha16joF5XRpxcRYyBKeXWzyJ4DzFWJAxQwr5Y1uF9MwB4ATPdXi\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" } ] }, @@ -611,10 +617,10 @@ "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556077739.1657531,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf7bahVCyKG7SuA1qV4LtGZM21Ddbz5cNPu2Jk8XEsJjfdgd1aw83z7JciiwvhHThShpBxKgiKg1byptgMx6pKfWqoHdsjhm\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YadNb8sZifmZUBXmePXnqrwoHjfuQMQmEPH5NXLq3oMXoo9hkZqq2WgP5bC4H6xrwyuPYeF1B8ftAak8DMtGkkZ5RuxTpRQ\",\n \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556160361.3380778,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPddGW6HMy4w2PS6Qn9SmNX149peKepsaNFaxu393oMGkKFeGrbTC6v5psKw97ocE16fvFLJGYPrZ3sm9KxwFXoAxLh23KkwW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X6JHyw2ZULgW17viJmxH6Jew7AMxF9Nm65DffXsPXmNBRkuJa7oWVgm7vdmfFUvjswbpo7SCyQhYwViFpq2s6XWEc81xURg\",\n \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\"\n }\n}" } ] }, @@ -689,10 +695,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\", \"default\": false, \"change_max_uses\": 10}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 10\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556077739.4119582,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf7bahVCyKG7SuA1qV4LtGZM21Ddbz5cNPu2Jk8XEsJjfdgd1aw83z7JciiwvhHThShpBxKgiKg1byptgMx6pKfWqoHdsjhm\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YadNb8sZifmZUBXmePXnqrwoHjfuQMQmEPH5NXLq3oMXoo9hkZqq2WgP5bC4H6xrwyuPYeF1B8ftAak8DMtGkkZ5RuxTpRQ\",\n \"seed\": \"oval warfare name inquiry vintage clerk offer easily breeze early upon shrug\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\", \"default\": false, \"change_max_uses\": 10}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 10\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1556160361.5737526,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPddGW6HMy4w2PS6Qn9SmNX149peKepsaNFaxu393oMGkKFeGrbTC6v5psKw97ocE16fvFLJGYPrZ3sm9KxwFXoAxLh23KkwW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X6JHyw2ZULgW17viJmxH6Jew7AMxF9Nm65DffXsPXmNBRkuJa7oWVgm7vdmfFUvjswbpo7SCyQhYwViFpq2s6XWEc81xURg\",\n \"seed\": \"aisle absorb powder another bargain vivid error ostrich opera keen edit comfort\"\n }\n}" } ] }, @@ -742,9 +748,9 @@ "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mrWPQx8YZVPkM4Ri4JhpC2Cu6bHV1xyRXH\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine mrWPQx8YZVPkM4Ri4JhpC2Cu6bHV1xyRXH", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mrWPQx8YZVPkM4Ri4JhpC2Cu6bHV1xyRXH\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mzKs9PtfKz1cKBSNPT8qVBMZ7r1LqLXVUb\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine mzKs9PtfKz1cKBSNPT8qVBMZ7r1LqLXVUb", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mzKs9PtfKz1cKBSNPT8qVBMZ7r1LqLXVUb\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -779,14 +785,14 @@ "curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mvWP7gJXqukpvDj797FrYYKBAA9jHDdxUC\",\n \"mn9r8mkpX8xLGqDgzW4jGYJDAXxD4yvTbP\",\n \"mi5N7HKhPix6pQEhqFkjC3525Ffqg1BCoP\",\n \"mjMaV9KtYq1A1Wquyv8XoB2ZTGvUBiQDzD\",\n \"mhHTd2xX1grCmrjhFdznRNzZdcrmqphThR\",\n \"mwqvj53DdW9NFvzNHSSiC5bXBMmrLgo2ab\",\n \"mrg98LNnLLsoGqmrCi69mGoqtU4PizWtx3\",\n \"mrWPQx8YZVPkM4Ri4JhpC2Cu6bHV1xyRXH\",\n \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"mtdnA7zf8HKjhkuP9TZYQBDH1LF8P7sLod\",\n \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"n4kXKwXvgiKo94kxBCWNzDEPu1oefb7eKn\",\n \"n1Sh8ukFDJMWDMiychK8YnAun9fjWp558Z\",\n \"mx17rDC8WsYLF17x9MqDk79GFiUD3fbCeG\",\n \"muR85zXcc4yCAkHNGeUgcX19eWSMuDD3WZ\",\n \"mz74dVVxyxKLMnWcYo9F6QuJSfaQxtgQYS\",\n \"n3MSayPMj3TWpgVES4L2RNALm6M94mjvzT\",\n \"mt9aRtrZHuRQpiVRp1JRaF5pQxU6SWGXXS\",\n \"mzxCeZ4KmAzUs9R4pmRHF36Z5f6v7EdNTH\",\n \"mgs3ruJfNZKg9QHgRB9HhDo6FLwpu5SPxj\",\n \"miWsYUnWddxGq5jCu7HU1XfmRhk6Vnox8H\",\n \"n28rB5iBxTC8YLXxcMiN4DKKfFM2PVRcnf\",\n \"msDuX39wHvf9STk7v9WAAYQvoGVuxH7UVs\",\n \"mjgwtJPVRdGw6Uk9AS3xhUYaC3ZFdgyKyz\",\n \"mgPETWJGDco8GkwDB4rb9uEWWTbq68YsFT\",\n \"mjdgqTYBkT9PZyV6kT54XsjimscxvVoPma\",\n \"mqeDC3NSUNE9qKA29h71gyFtfVxJGi46Bj\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"miLfme8Kcesj3rRDb4ChytWyUg7AZXGR1V\",\n \"n3MX2rLSXYR5WSX72qfEUBiuPve8JuANi6\",\n \"n2kvhQKzn2kjMbkiGKrLNXhStfJFTWGAVG\",\n \"mzxxLTbb3Qsc3bGmrn8MJkDw4mno7s8J9H\",\n \"mq1y9qSzp7FfZLvMmihfio7edYAp7YiKL6\",\n \"n3PQGct81tBiyrsQAq2Tf4pMt4sJjUje29\",\n \"mvw92gKVSRvTBcF9mKbwiaSBjTfyFFQ9T2\",\n \"ms96QzbQunqP1VsAHm5xHkaunkbCYycRDd\",\n \"mzKs9PtfKz1cKBSNPT8qVBMZ7r1LqLXVUb\",\n \"mvGcV5j6PJPzB9GfEzbRsfs5iRwbbxkUZ7\",\n \"muU6jogvLreWHGwPqbPn9KuTwxXpkrPmrP\",\n \"moSm3vPzvRDbh2JotyGHgf8KYwC3nrUhv4\",\n \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"mv4Xmv1AhskDzZM3Qjkayg3yLTfR5vpnfc\",\n \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"n2Qo7qcHp8JeoAMxxNZgkKBaMRQfinoiCQ\",\n \"mhWJWmX6KwDkgc9T3b6GrfE6Avfxh6icDv\",\n \"n13BBQEHEiJ5eCAnAHUfCyuzRnFPgAyYHn\",\n \"mkyJc9mJvEziLthYpvzFYBwopDU12UEDnw\",\n \"mpectx3oMpcQHshJWKX4ebtYiaQ6t4Simy\",\n \"mvPwdcwej5xwjqKK4Eh7fKABAaFcNcCKE7\",\n \"myGG9szYEvd1MUZMmghMBWAtZGYBEtDokv\",\n \"moNVgkTTmB2dJC2F7YG3GmKxi6AJyDUqoU\",\n \"mmNm2kw8PHyMt87ktUwnudEAgyo6cupmy9\",\n \"mp2ik59jEdjfkDSnpYVo898NPC1GxPTZc3\",\n \"n1UDDLHxpwffcBdhyvvdhUMcHXoX7f2pSJ\",\n \"n1HeNhsqb5DJgeghnUKNodRJjRihjDFHTL\"\n ]\n}" }, { "title": "List addresses in specified account", - "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mz4TwuwbWnzfhRtaaMNkaXWV5L1ttYoghz\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"n3N4XaE5UcJf6N983m3quYRjaevhMkyUCr\",\n \"muqzKjP1jYumPouqo21orCuMM7Mkd2viMF\",\n \"n37c7byRyphXt3AGqDMDyGPJYYVYK9y4fo\",\n \"mqfHP3RtjBJQZrGPXmVo96gJQcpkhEa8Wu\",\n \"mvznDSoPZGY6PonmBdC9e7JwXGGdy4g6w8\",\n \"mn3n9G7w6H5Md8PfT98twcfpv6k85c9Y1K\",\n \"mwACUH7ey6SxBew3GgaDdVez3CcQAmd2YF\",\n \"mnjnhEjbWYerFbDxLgiotrDy3WYxMTCx1x\",\n \"n2mxg9SWScnTstPeDAkN4kJhu3YQR7oT5p\",\n \"mpt2mWUAGeCj9dqzQgG95ZCib8R7ry9eT6\",\n \"n4FaAGtax6YQbEX7bDg6gRHAdqQuMHEdNm\",\n \"n487FhLZbagNXuqzFUFAFX1ojRtVwvoCY1\",\n \"mtPfQKZZkhpBQyahpTj7HGS3ufs9oEqfdN\",\n \"mp8zKu4w2PWhZ487oqdPwGfBzxqYr697oQ\",\n \"mroUpGMkGprMmG77GWVX1wckkjZnEiaQYQ\",\n \"mihpYFEyCy37qy6FFnsji1azcQyFkrrdqf\",\n \"mrZxxBqJF8jxGPEQnpeRu3f1XqmYSFgvUx\",\n \"mjJLYZmF4LBCpXxdP6z3dw5kUfEMcBMw5r\",\n \"mqssoWbigFig4xNFWTnnoPtcMN3eTLF9c3\",\n \"mobVo8Jj3kWbdG5JAVpWwnyGM8azKXWsfM\",\n \"mhPpDa3sk6QpaDg24jFdYsMWLC1LjwSeNG\",\n \"n2Qyaq8Dsez6x1Q69h3HxgfGCJPx1FTE9a\",\n \"myKt1b4WgGMhQhq2JN76mwKjhySs6c8N8H\",\n \"moVpyEgQq2zD1vXroarYPd5PqQ49AF6yno\",\n \"n1vaCuP8j5YzNDMUPKSuJ99SGR4zwm2jBi\",\n \"n1QgsFoq84LBfoQbghxsBs51CpKxHfYGsH\"\n ]\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mwatzKbhDsE2n8rmdDH3oY6JFQvfLb6D3L\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"muPCSKNBSMw9v4A8p991TrQMjzD1hSU5ub\",\n \"mxU7ySLSwzSmCkKvjhAvfs2UCZDSnmBice\",\n \"miNSfBimNaxGgoF1sYZXDzst1ma6ZiYbeY\",\n \"mwf4KLTWnjoAkmbgTUFdmWWBRpVSNorAeJ\",\n \"miQW9yZ5UVnBYsLN5RumrKHKPHxW1WY51N\",\n \"mqvcPZFNjaXbYrTS3FdNmV82RyW3fgZc4t\",\n \"miTNoFgCqLYaESsJxQcf9TPHYCHqVaxbmK\",\n \"miqcvnHMVBWp1eexGUDnqjVEygZPvMLZ5R\",\n \"mpBJ4FzodSGdePzp7r7fbpEF7t1kSnjVib\",\n \"mgWwdn92ADjUmoQChW3hPCA2oQUcYV7pRs\",\n \"n42nxJGpyk7DCcf8ViN5KvU7yfiD34nZ8t\",\n \"n2LnwCSVsDyzkuKKGfXxJ8dtEvcCPVEZ4g\",\n \"n1YVjTmZmCnSDedrycHbR9sxk4nvfa7kgp\",\n \"mkhhRHGH2Lgi7c4zxTT6N1sbKwhzS8XtoH\",\n \"mwr9ZShrzznXXJD3sDC5fMMeGTzZiHdyoq\",\n \"mrb1wLfDTE646M4quvaDSNXXZshZyvvT5R\",\n \"mpKpiScKrXBBvFArG8yZtTd16J9JydSywQ\",\n \"muewpDBKV3RuxyJ6GeBEdjEJZMAHRg7oLb\",\n \"miDoLySiEbSDJ2LAsnckrsTbSgBYkJiwMu\",\n \"mhDPJA9EjbpgvTTVcRZwCLeMFgn6DCCivz\",\n \"mnC4nDuJProsQGKjBJcAKm3r26iJXN2wbL\",\n \"mowoDiEHtstBQAitRVKEaBVDa9xK5qetJH\",\n \"mynkfP6cpcxesMrA1DShUGCVFG5Xnj6cHm\",\n \"mt5a8oQRSAaE2Ge4ieQZwm8LAmu64mtgya\",\n \"n3xJVTzcip8aRNHQv65ZAjUhKcfUa4tbs8\",\n \"moLgijvkXh82t9WAiwzK1s5ueMEtnNyPkf\"\n ]\n}" } ] }, @@ -808,7 +814,7 @@ "curl": "curl -d'{\"method\": \"address_unused\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address unused", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_unused\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mrWPQx8YZVPkM4Ri4JhpC2Cu6bHV1xyRXH\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mzKs9PtfKz1cKBSNPT8qVBMZ7r1LqLXVUb\"\n}" } ] } @@ -858,10 +864,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"90c4ecd1d28cb3a89c98a2fc8c90af4e0ee35e001a78639decdd8c4240a376337f86c4c4c68b08742a797d71d669f9d4\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 90c4ecd1d28cb3a89c98a2fc8c90af4e0ee35e001a78639decdd8c4240a376337f86c4c4c68b08742a797d71d669f9d4", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"90c4ecd1d28cb3a89c98a2fc8c90af4e0ee35e001a78639decdd8c4240a376337f86c4c4c68b08742a797d71d669f9d4\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 90c4ecd1d28cb3a89c98a2fc8c90af4e0ee35e001a78639decdd8c4240a376337f86c4c4c68b08742a797d71d669f9d4\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"eb0cd79cbc507234d0453435ca8a4247da8cfb120904bf947956e15eea3557d3a4224c574ae71918c12329c2fc87f2c2\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete eb0cd79cbc507234d0453435ca8a4247da8cfb120904bf947956e15eea3557d3a4224c574ae71918c12329c2fc87f2c2", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"eb0cd79cbc507234d0453435ca8a4247da8cfb120904bf947956e15eea3557d3a4224c574ae71918c12329c2fc87f2c2\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted eb0cd79cbc507234d0453435ca8a4247da8cfb120904bf947956e15eea3557d3a4224c574ae71918c12329c2fc87f2c2\"\n}" } ] }, @@ -939,7 +945,7 @@ "curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/", "lbrynet": "lbrynet blob list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"90c4ecd1d28cb3a89c98a2fc8c90af4e0ee35e001a78639decdd8c4240a376337f86c4c4c68b08742a797d71d669f9d4\",\n \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"35d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d\",\n \"e5fb7b385911032a032d3540b6c738c20cbd4c3b7d87f01bff68abf408f92edc1e7bf1537956b3b6ed9094bca75519d5\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"eb0cd79cbc507234d0453435ca8a4247da8cfb120904bf947956e15eea3557d3a4224c574ae71918c12329c2fc87f2c2\",\n \"824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934\",\n \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\"\n ]\n}" } ] }, @@ -1014,10 +1020,10 @@ "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon fb198d80d32b2b08c25e0ca16579e88818f1e563", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001b50dee4b49541c336615932bcd7fbd1d926fb8a61220b97d4f88d049e3a34eb6000000006a47304402201d60efcb799dbe41c9c2b782d668965de3bbc7a4c0fe6505159d3b5ee68ad44902206b353dbd5562fdefcd814065511d05ff99a3bbf7724f172dad97dca2413518f6012103a7e63c58505e43a111503f473056687afeddac27e6b6b2f7ced7eecf1fa00569ffffffff0134b7f505000000001976a9142a1a8dee7c2717e3fee28aaa9e2da8935f362bd288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjMaV9KtYq1A1Wquyv8XoB2ZTGvUBiQDzD\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"56b1417260af2654f5a13cb85474b00d61ffa22b076ebb91c62d9ecaa0ada875\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"56b1417260af2654f5a13cb85474b00d61ffa22b076ebb91c62d9ecaa0ada875\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon 2f26f642e714ec67e851138f0292178a3aa1f689", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011cf444ee97a78ca07b179246404bd0f6604741b572ffdc9206edcc357ca05ee4000000006b483045022100c6fe9a7d469f744bda1f52e4656ade7e0bb8da88dfc97d9413fdc0234156bbe40220644ffcef6de9e4bf0a43cfa94b6c11f64a7c938691eee8abcd7c5739287db68f0121026d30bd565be6d0916684a2a51253f593d0911e45714bd568d0022c6f403e395dffffffff0134b7f505000000001976a91489610b9904bd88687557d27256e816a69927d47988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mt3M8AGq2mrjePVM1aHXkm6cVxJjrs2zYc\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"cd9da5728dddbf32785148a04f2ee7c7c768478e3113980c398f335690f6b4d3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"cd9da5728dddbf32785148a04f2ee7c7c768478e3113980c398f335690f6b4d3\"\n }\n}" } ] }, @@ -1129,14 +1135,14 @@ "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"preview\": false}}' http://localhost:5279/", "lbrynet": "lbrynet channel create @channel 1.0", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ae10215249dba3f36805e691ba86b6725e25b7ed9d8f8492b44b3369dfd874eb010000006a4730440220607d944b1cbf454bbb00c88fde02622cb3d3f488dc54fe439f788ff671aa574a022007a9c689bf9890c6f68f600a29370dac7f114cab056fece7d659bae492136c6401210308b3714020920cc32e989c08f29522471b9f70415a9956e7188246ee6a97ac09ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc6d7576a914296c185286d635612bb68b410c459e7b8f6823de88acc462a029000000001976a914b3189b39617295883f901eeaedd7df16c733340688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mi5N7HKhPix6pQEhqFkjC3525Ffqg1BCoP\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mwqvj53DdW9NFvzNHSSiC5bXBMmrLgo2ab\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c620032f73cb0576a490b0b9586689f53aba9e365abc5ffc4020176b29c14572010000006b483045022100b07a348481bebbf847aefe73069283e2f5be901c1a38bad57b61e4b02ac80286022046a71e8f4dd7e6a772fe1f7cfa9c871492a36892f88e77a82ddf54e5f2a11a48012103b714e3e7ee20904d3b8a068d35fb03afc933ea4bedb9c26181d2935322f0284cffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b6d7576a9145bae7eafa7111f2dc29790c6f7d9908ae78038a788acc462a029000000001976a914a64b57f436c6f9bd30d654942fc954731ffac12188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzxxLTbb3Qsc3bGmrn8MJkDw4mno7s8J9H\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvgEirtKfdXjqykJsqU2uzzDaZqc3Tv9Ep\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\"\n }\n}" }, { "title": "Create a channel claim with all metadata", "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"website_url\": \"http://smallmedia.com\", \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": false}}' http://localhost:5279/", "lbrynet": "lbrynet channel create @bigchannel 1.0 --title=\"Big Channel\" --description=\"A channel with lots of videos.\" --email=\"creator@smallmedia.com\" --tags=music --tags=art --languages=pt-BR --languages=uk --locations=BR --locations=UA::Kiyv --website_url=\"http://smallmedia.com\" --thumbnail_url=\"http://smallmedia.com/logo.jpg\" --cover_url=\"http://smallmedia.com/logo.jpg\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"website_url\": \"http://smallmedia.com\", \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001b50dee4b49541c336615932bcd7fbd1d926fb8a61220b97d4f88d049e3a34eb6010000006a47304402202eec9b45e251baaf8e0dd5e163026b514f5d486ce82529d83dfd6d02aa16d09902206715e043a313394c8b424157cd7c44ee219f4aff7bdf1afe7bda0cf3be030d460121020b1680a0a69801adea345ff0beb908cfcf11bb7d0c7d616012c3733ff98793a6ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200047a63a1eca9bef77838f5b545afbf4f5043be004469ae7c585263c3947c76ce402fd2000956add3b8931b9af2b5dae34b8b9bf543a3522e5f62f4722915e3f18a121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914fedbdfec725c05e8982496858c17df060639089588ace221d305000000001976a914a46e30bf03e3d6b4e2ba8a00c520ab4abdd69f7088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1JYZ7tofTLUx52hujvBwG59j7ngnqHMFR\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4kXKwXvgiKo94kxBCWNzDEPu1oefb7eKn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1e79b4a803cab0fee12d9e2e20832fd57b9cad3d\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"@bigchannel#1e79b4a803cab0fee12d9e2e20832fd57b9cad3d\",\n \"txid\": \"ee0bf5c31600c732d43d4cd3d2f08c9ab2b9cde267253d39e7aec2eaf0d45dbf\",\n \"type\": \"claim\",\n \"value\": {\n \"cover\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"description\": \"A channel with lots of videos.\",\n \"email\": \"creator@smallmedia.com\",\n \"languages\": [\n \"pt-BR\",\n \"uk\"\n ],\n \"locations\": [\n {\n \"country\": \"BR\"\n },\n {\n \"city\": \"Kiyv\",\n \"country\": \"UA\"\n }\n ],\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200047a63a1eca9bef77838f5b545afbf4f5043be004469ae7c585263c3947c76ce402fd2000956add3b8931b9af2b5dae34b8b9bf543a3522e5f62f4722915e3f18a\",\n \"tags\": [\n \"music\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Big Channel\",\n \"website_url\": \"http://smallmedia.com\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvWP7gJXqukpvDj797FrYYKBAA9jHDdxUC\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"ee0bf5c31600c732d43d4cd3d2f08c9ab2b9cde267253d39e7aec2eaf0d45dbf\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"ee0bf5c31600c732d43d4cd3d2f08c9ab2b9cde267253d39e7aec2eaf0d45dbf\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011cf444ee97a78ca07b179246404bd0f6604741b572ffdc9206edcc357ca05ee4010000006a473044022016ccd66475e47509c05abdc869bf0e46de46f9462885dfc3dd9b984fc9a4f64102203fe1f4a9b94ad6f893a653c78166103503ac1dc06fea63b281f20631d4cd6d8f0121030ae1d09e5ecb6bfc36ceea6740db6c76789c8c5d02621e089422a603efe48504ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004e9f8d9d067c06ee1324fd832d9570dac44a230160237c4685da28c3010251908a6a41b30b58da5cdb360f770d5c1845ddcb1330da4bd4e20122ee82ca87536a9121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914d6219ff6374c76958df6366ed31a826b2ea9b71088ace221d305000000001976a914838828e4588b868cae5100d1973329b5fe66db5d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgQP1ChNgpcG9xVRBnysXCVvn5t5CfVbqX\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n13BBQEHEiJ5eCAnAHUfCyuzRnFPgAyYHn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fd89a6b5e5f2f8323f626cfdf81111b3cac688de\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#fd89a6b5e5f2f8323f626cfdf81111b3cac688de\",\n \"txid\": \"a5813ad4da2f7207da15fcc3d9e07fe9d56a9640a09626a63fa0afa340bf9d47\",\n \"type\": \"claim\",\n \"value\": {\n \"cover\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"description\": \"A channel with lots of videos.\",\n \"email\": \"creator@smallmedia.com\",\n \"languages\": [\n \"pt-BR\",\n \"uk\"\n ],\n \"locations\": [\n {\n \"country\": \"BR\"\n },\n {\n \"city\": \"Kiyv\",\n \"country\": \"UA\"\n }\n ],\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e9f8d9d067c06ee1324fd832d9570dac44a230160237c4685da28c3010251908a6a41b30b58da5cdb360f770d5c1845ddcb1330da4bd4e20122ee82ca87536a9\",\n \"tags\": [\n \"music\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Big Channel\",\n \"website_url\": \"http://smallmedia.com\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"msWRvjBEstA5sdWiwFiTNFpU8T8h4DZvMg\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"a5813ad4da2f7207da15fcc3d9e07fe9d56a9640a09626a63fa0afa340bf9d47\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"a5813ad4da2f7207da15fcc3d9e07fe9d56a9640a09626a63fa0afa340bf9d47\"\n }\n}" } ] }, @@ -1198,14 +1204,14 @@ "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet channel list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your channel claims", "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet channel list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1338,10 +1344,10 @@ "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel update fb198d80d32b2b08c25e0ca16579e88818f1e563 --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000023e69f7264aabc413f0bd64767a2d466214f471c64a04a04c4ed9712326f9df62000000006a473044022061c9584682add45626aa96ad8945c5d8789c2b3e129870becf94c4724f7e27fb022010406edd79c6a72b69d7ebb92f2e09dffa91405afb9d22e6a255a339902b45d1012103a7e63c58505e43a111503f473056687afeddac27e6b6b2f7ced7eecf1fa00569ffffffffbc5a1f8b5b7f0191b800a76a8a8178b3352c6f0ab66ee06f8ecfa9b6a2389905000000006b483045022100fae66050244e2da3fccbfcd509fa5fff1658e0e742aef73ba769d8cb686260b6022067eba187c5804d336329c33b5292c1dcd744397b7fbbdbaaf14f7c84e57889ea012103daf1282e1910599c8cf49b5287846dc9003da014039fbdb5f0f1cc1b9ee416aaffffffff0200e1f50500000000a6b708406368616e6e656c1463e5f11888e87965a10c5ec2082b2bd3808d19fb4c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc420b4e6577204368616e6e656c6d6d76a914296c185286d635612bb68b410c459e7b8f6823de88ac6ebeea0b000000001976a914d909b4ef1ab7f859c3c39f09f90a68d660c204d288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mwqvj53DdW9NFvzNHSSiC5bXBMmrLgo2ab\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"059938a2b6a9cf8e6fe06eb60a6f2c35b378818a6aa700b891017f5b8b1f5abc\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n1JYZ7tofTLUx52hujvBwG59j7ngnqHMFR\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel update 2f26f642e714ec67e851138f0292178a3aa1f689 --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002fd414cdb6ac39ab2ff51f325a6b37b18da888fc06d18bf07842caa54cca1da5a000000006a473044022048bd24536022270b96d6fef1d46b58faabc0a65e9dbe296ceb4b448fef6543aa02202cf267159e529942836004a2935ec74495997f44be6aa6d58a82facbb00889110121026d30bd565be6d0916684a2a51253f593d0911e45714bd568d0022c6f403e395dffffffff002dbabd1a651d63e75a4cb9bdf879a94cc946a7cc3624f39c03d6131f5daf7d000000006b483045022100efb11687e5823c07f4d2146ba96daae5108f1bca5ce7cc377cbcfee32e54b04702206cb8a8dc0fd0d83ffd7b95e9c5dc326a1ef56c2041c2b042d989a142d4a2ddbc01210393ebe46a164020f6842b0ea9643762f70b8b16e039c46a5b1fd73b027b225ac7ffffffff0200e1f50500000000a6b708406368616e6e656c1489f6a13a8a1792028f1351e867ec14e742f6262f4c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b420b4e6577204368616e6e656c6d6d76a9145bae7eafa7111f2dc29790c6f7d9908ae78038a788ac6ebeea0b000000001976a91409b9d728cf244ed13fc76d71556a3842352b324988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n3MX2rLSXYR5WSX72qfEUBiuPve8JuANi6\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"7daf5d1f13d6039cf32436cca746c94ca979f8bdb94c5ae7631d651abdba2d00\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mgQP1ChNgpcG9xVRBnysXCVvn5t5CfVbqX\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\"\n }\n}" } ] } @@ -1380,14 +1386,14 @@ "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet claim list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your claims", "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet claim list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mjHyVVVGzDDNzHwri4hHakXnNX5wjnftZe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"txid\": \"b64ea3e349d0884f7db92012a6b86f921dbd7fcd2b931566331c54494bee0db5\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mosipdHy8aBXddSGF9PSpz6Zyg8NwgW8xz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"txid\": \"e45ea07c35cced0692dcff72b5414760f6d04b404692177ba08ca797ee44f41c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1448,17 +1454,17 @@ "examples": [ { "title": "Search for all claims in channel", - "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"winning\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet claim search --channel_id=\"fb198d80d32b2b08c25e0ca16579e88818f1e563\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"winning\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"absolute_channel_position\": 0,\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_pages\": 1\n }\n}" + "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"winning\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet claim search --channel_id=\"2f26f642e714ec67e851138f0292178a3aa1f689\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"winning\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"absolute_channel_position\": 0,\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_pages\": 1\n }\n}" }, { "title": "Search for claims matching a name", "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"winning\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --name=\"astream\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"winning\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"signature_is_valid\": true,\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"supports\": [],\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 1,\n \"total_pages\": 1\n }\n}" } ] } @@ -1605,9 +1611,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -1714,14 +1720,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpgj4k6kov\",\n \"key\": \"22704f415def3f1a19bc06e98c7d956b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"86db94d08df28799a62cafd24a6afa939fb98c0b5a78edfa14a026b616a99528493a85780a8b1f7eb7cb86c6d1b95707\",\n \"stream_name\": \"tmpgj4k6kov\",\n \"suggested_file_name\": \"tmpgj4k6kov\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"written_bytes\": null\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"128e25d12ff779ff3098884a2a3eb2d4348069be\",\n \"claim_name\": \"blank-image\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmp5yv80226.png\",\n \"key\": \"7501b49d9c77a6f44b94dac752e933be\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mx17rDC8WsYLF17x9MqDk79GFiUD3fbCeG\",\n \"amount\": 0.3,\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1556077748\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp5yv80226.png\",\n \"sd_hash\": \"35d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fbd7fda992806cb663c29d21fa3a89306fc9e617d19fb9abcfb3782e03ff5beac4b7d2bea1b0d24e194f67ee2f093b72fed1293c8a4797645fbb51aab6b72133cc0ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d7035797638303232362e706e6718632209696d6167652f706e67323035d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728b4b9ffe5053222080112196fb4d5a2966ee28e029833ddb3d782b34ea785888723d7456d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"35d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"0811614e9dbb4fdedffcded1745101c0d9a682c4ba270af81b481268acd3c232695b9277d061fd5f5e01d9d60e96ac3e\",\n \"stream_name\": \"tmp5yv80226.png\",\n \"suggested_file_name\": \"tmp5yv80226.png\",\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"tx\": null,\n \"txid\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5\",\n \"written_bytes\": null\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"content_fee\": null,\n \"download_directory\": \"/tmp\",\n \"download_path\": \"/tmp/tmpijqc8tzz\",\n \"file_name\": \"tmpijqc8tzz\",\n \"key\": \"50f032917f91ddf1ebe187c01dabc1e0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6c9f97927167b99574c08f556a091bfc02257cb348459c86c01e91ea43565d2965425fb307f1e1b7a165d6ad47804463\",\n \"stream_name\": \"tmpijqc8tzz\",\n \"suggested_file_name\": \"tmpijqc8tzz\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"written_bytes\": null\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"d9cdd5362f8f8fb52e43b10e93484bbc41f8d6fc\",\n \"claim_name\": \"blank-image\",\n \"completed\": true,\n \"content_fee\": null,\n \"download_directory\": \"/tmp\",\n \"download_path\": \"/tmp/tmpdeso7k9u.png\",\n \"file_name\": \"tmpdeso7k9u.png\",\n \"key\": \"0e90d7f89bb65922ee135f3fcd45ad8f\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhWJWmX6KwDkgc9T3b6GrfE6Avfxh6icDv\",\n \"amount\": 0.3,\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1556160370\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpdeso7k9u.png\",\n \"sd_hash\": \"824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f8129298dcadbdb838cacd03b5040bbab8f6f2ef522360f36d9ecff10c0559d4ad317e64200669a477bd0c9098e508b123b624c4e50f624f0b8e8f7218754f1690ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d706465736f376b39752e706e6718632209696d6167652f706e673230824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728f2be84e6053222080112196f15d0b6b8a44ad63177f367f1d72b62675e86337b859e4351188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"56ce03c9c6c8a2a5cf3ed6e16bc98e93f65045e9c5c6de8a80a21871d773a460cdba4883321723b9c57d3591c23cb833\",\n \"stream_name\": \"tmpdeso7k9u.png\",\n \"suggested_file_name\": \"tmpdeso7k9u.png\",\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2\",\n \"written_bytes\": null\n }\n ]\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpgj4k6kov\",\n \"key\": \"22704f415def3f1a19bc06e98c7d956b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"86db94d08df28799a62cafd24a6afa939fb98c0b5a78edfa14a026b616a99528493a85780a8b1f7eb7cb86c6d1b95707\",\n \"stream_name\": \"tmpgj4k6kov\",\n \"suggested_file_name\": \"tmpgj4k6kov\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"written_bytes\": null\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"content_fee\": null,\n \"download_directory\": \"/tmp\",\n \"download_path\": \"/tmp/tmpijqc8tzz\",\n \"file_name\": \"tmpijqc8tzz\",\n \"key\": \"50f032917f91ddf1ebe187c01dabc1e0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6c9f97927167b99574c08f556a091bfc02257cb348459c86c01e91ea43565d2965425fb307f1e1b7a165d6ad47804463\",\n \"stream_name\": \"tmpijqc8tzz\",\n \"suggested_file_name\": \"tmpijqc8tzz\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"written_bytes\": null\n }\n ]\n}" } ] }, @@ -1763,6 +1769,88 @@ "returns": "(list) list of blobs reflected", "examples": [] }, + { + "name": "file_save", + "description": "Output a download to a file", + "arguments": [ + { + "name": "file_name", + "type": "str", + "description": "delete by file name in downloads folder", + "is_required": false + }, + { + "name": "download_directory", + "type": "str", + "description": "delete by file name in downloads folder", + "is_required": false + }, + { + "name": "sd_hash", + "type": "str", + "description": "delete by file sd hash", + "is_required": false + }, + { + "name": "stream_hash", + "type": "str", + "description": "delete by file stream hash", + "is_required": false + }, + { + "name": "rowid", + "type": "int", + "description": "delete by file row id", + "is_required": false + }, + { + "name": "claim_id", + "type": "str", + "description": "delete by file claim id", + "is_required": false + }, + { + "name": "txid", + "type": "str", + "description": "delete by file claim txid", + "is_required": false + }, + { + "name": "nout", + "type": "int", + "description": "delete by file claim nout", + "is_required": false + }, + { + "name": "claim_name", + "type": "str", + "description": "delete by file claim name", + "is_required": false + }, + { + "name": "channel_claim_id", + "type": "str", + "description": "delete by file channel claim id", + "is_required": false + }, + { + "name": "channel_name", + "type": "str", + "description": "delete by file channel claim name", + "is_required": false + } + ], + "returns": " {\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }", + "examples": [ + { + "title": "Save a file to the downloads directory", + "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file save --sd_hash=\"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 0,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 1,\n \"channel_claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_name\": \"astream\",\n \"completed\": false,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp9705fxu6\",\n \"download_path\": \"/tmp/tmp9705fxu6/tmpijqc8tzz\",\n \"file_name\": \"tmpijqc8tzz\",\n \"key\": \"50f032917f91ddf1ebe187c01dabc1e0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"6c9f97927167b99574c08f556a091bfc02257cb348459c86c01e91ea43565d2965425fb307f1e1b7a165d6ad47804463\",\n \"stream_name\": \"tmpijqc8tzz\",\n \"suggested_file_name\": \"tmpijqc8tzz\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"written_bytes\": null\n }\n}" + } + ] + }, { "name": "file_set_status", "description": "Start or stop downloading a file", @@ -1849,7 +1937,7 @@ "curl": "curl -d'{\"method\": \"settings_get\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet settings get", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"settings_get\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"comment_server\": \"http://comments.lbry.com:2903/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpi5ikthmq\",\n \"download_dir\": \"/tmp/tmpi5ikthmq\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 8,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 2.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"tcp_port\": 3333,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpi5ikthmq\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"comment_server\": \"http://comments.lbry.com:2903/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmp9705fxu6\",\n \"download_dir\": \"/tmp/tmp9705fxu6\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 8,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 2.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"tcp_port\": 3333,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmp9705fxu6\"\n }\n}" } ] }, @@ -1910,10 +1998,10 @@ "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon dfb3809e63cc75981fd7880faa5b7b7b50faeb45", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000101328a4b1787ef8668599bd9678e690f710280fd78b2b85370077dc8e6af823d000000006b483045022100c69449ab14d1b03c6a21c0692f7beab7ebac5c0b1f07364018050562da136b9c022076266e722c6a2d98cb7b2727cfd909b29f5713bd1afda892a2facd8641d6de5801210302d139172070e4e765e43a5f7a538c7e65c34778bbfa3f8074cc21373cc4c7cdffffffff0134b7f505000000001976a914f62e8a151936d3df2f1079bd96c7d36a7a9ec96a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3xeGrgdNkisfvqf7wxMJ1Y6Mj3BgJjXi8\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"bb3218aab9fb3b230780e17f9f4d642ae2ed2e873e2595f7a521b19f253575d0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"bb3218aab9fb3b230780e17f9f4d642ae2ed2e873e2595f7a521b19f253575d0\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon 34d175feca7258e7d7d3ba6f7f419d9aabfd35ff", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010a181ae6fa52d9c4b3ee69f7b3ec4b04ac7fdad713365362fc4da61ecdc1788e000000006a473044022049e571698777f69dd875198e3d0c40098822adc9bc5bf5847c4260172710359002205c20eac960ee445f320a0e67d753b5789cb609149300394d73cd355aacd203a8012103e0ee5cca0f1987a00919c3ed3dea8ab8fb43c8746bb4e2d2e981679198ae82bfffffffff0134b7f505000000001976a914279a237f4cb56453043e2013a47f3ed092f703f888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj8MJH3EFKDHdFUwGj7wMQxdhYcZkNFGLV\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"bfdd87230f1592400e3d77f2eba4de0248676df5422c68acbace593419a06b3a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"bfdd87230f1592400e3d77f2eba4de0248676df5422c68acbace593419a06b3a\"\n }\n}" } ] }, @@ -2090,17 +2178,17 @@ "examples": [ { "title": "Create a stream claim without metadata", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpgj4k6kov\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpgj4k6kov", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpgj4k6kov\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000013e69f7264aabc413f0bd64767a2d466214f471c64a04a04c4ed9712326f9df62010000006b4830450221009947b78eeee56cc2869485f25eda0d0c1e1f8f08b01b45e2b3230bf1d19b88d502207e9d6410ee040163108facfbbff8f935774a1223ba87f727078360d994c2b1e0012103daf1282e1910599c8cf49b5287846dc9003da014039fbdb5f0f1cc1b9ee416aaffffffff0200e1f50500000000a8b5076173747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb526d7576a9141817356204800526abb02896e6d34aedf84bf70188ac38fb9423000000001976a91483ab53b75a13928c4874a2f6f9632043a2eefb4f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwqvj53DdW9NFvzNHSSiC5bXBMmrLgo2ab\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"62dff9262371d94e4ca0044ac671f41462462d7a7664bdf013c4ab4a26f7693e\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"txid\": \"1556b58c7f3aca9642221241692b4d02737634e4874f7522930eb8e760242571\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"msXA4CBXmL8rN4stfzYGiCjxNvLj8vEKb9\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"1556b58c7f3aca9642221241692b4d02737634e4874f7522930eb8e760242571\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"1556b58c7f3aca9642221241692b4d02737634e4874f7522930eb8e760242571\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpijqc8tzz\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpijqc8tzz", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpijqc8tzz\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001fd414cdb6ac39ab2ff51f325a6b37b18da888fc06d18bf07842caa54cca1da5a010000006a47304402203efe40a497095efb2a29e3befee6e8d49564ff9acc66a64591802c5d1f06d8e80220500f1551bc66c250cde7355f8da6d8a3d7aa5b8775d86d2e8650e088cc874bef0121024708927ebb6c0c41d0a8cd127b935d1f71a1a32a3d589429af2bf475770addafffffffff0200e1f50500000000a8b5076173747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff9966d7576a914daa8f107c07e0abfd538cbd3fa67b5c0de9ba6fe88ac38fb9423000000001976a914ff319080c42eb927ad7fbc1d713ab35ed81086d088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvgEirtKfdXjqykJsqU2uzzDaZqc3Tv9Ep\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"5adaa1cc54aa2c8407bf186dc08f88da187bb3a625f351ffb29ac36adb4c41fd\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"txid\": \"d63c442efa8ca321b858b184f1c453dd5a2e0cf0cec8152643ffccf0fd751851\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4nHymd6aSD3LidEyibxacKgLeKR5QRrD7\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"d63c442efa8ca321b858b184f1c453dd5a2e0cf0cec8152643ffccf0fd751851\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"d63c442efa8ca321b858b184f1c453dd5a2e0cf0cec8152643ffccf0fd751851\"\n }\n}" }, { "title": "Create an image stream claim with all metadata and fee", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5yv80226.png\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1556077748, \"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp5yv80226.png --tags=blank --tags=art --languages=en --locations=US:NH:Manchester --fee_currency=LBC --fee_amount=0.3 --title=\"Blank Image\" --description=\"A blank PNG that is 5x7.\" --author=Picaso --license=\"Public Domain\" --license_url=http://public-domain.org --thumbnail_url=\"http://smallmedia.com/thumbnail.jpg\" --release_time=1556077748 --channel_id=\"fb198d80d32b2b08c25e0ca16579e88818f1e563\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5yv80226.png\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1556077748, \"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000171252460e7b80e9322754f87e4347673024d2b694112224296ca3a7f8cb55615010000006a47304402206f11a1308dae910bb4287c2859762497e9161c8dcb312bcb0252cac197a6cfc30220424e579e18fca567a9d6c2936308509cfc6916fc65c5e6317d1cb9e484c925ee012102524cad23857f174ad7e97e97fbc9f596ced488b77a29ae066dd2a3fc22ca1e8effffffff0200e1f50500000000fdcb01b50b626c616e6b2d696d6167654da0010163e5f11888e87965a10c5ec2082b2bd3808d19fbd7fda992806cb663c29d21fa3a89306fc9e617d19fb9abcfb3782e03ff5beac4b7d2bea1b0d24e194f67ee2f093b72fed1293c8a4797645fbb51aab6b72133cc0ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d7035797638303232362e706e6718632209696d6167652f706e67323035d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728b4b9ffe5053222080112196fb4d5a2966ee28e029833ddb3d782b34ea785888723d7456d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914b4d5a2966ee28e029833ddb3d782b34ea785888788acac5e7d1d000000001976a9146e50b5b172504e208a2827917b8ad0325bc8dd6e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msXA4CBXmL8rN4stfzYGiCjxNvLj8vEKb9\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"1556b58c7f3aca9642221241692b4d02737634e4874f7522930eb8e760242571\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mx17rDC8WsYLF17x9MqDk79GFiUD3fbCeG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"128e25d12ff779ff3098884a2a3eb2d4348069be\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"blank-image#128e25d12ff779ff3098884a2a3eb2d4348069be\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mx17rDC8WsYLF17x9MqDk79GFiUD3fbCeG\",\n \"amount\": 0.3,\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1556077748\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp5yv80226.png\",\n \"sd_hash\": \"35d91c4edf495755035bb2848534aa39c9ad6be074f80372349c6aed57e1edba29975b778d35f3e0fbd9882f3454305d\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqaFJy11HUVjgpEe5ZxxCpB6jvN8RUWSGa\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"d888fb7660b1dda1b2d112e52b45ffc8201fe2440e0952cd9b5cd95aa0223dc5\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpdeso7k9u.png\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1556160370, \"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpdeso7k9u.png --tags=blank --tags=art --languages=en --locations=US:NH:Manchester --fee_currency=LBC --fee_amount=0.3 --title=\"Blank Image\" --description=\"A blank PNG that is 5x7.\" --author=Picaso --license=\"Public Domain\" --license_url=http://public-domain.org --thumbnail_url=\"http://smallmedia.com/thumbnail.jpg\" --release_time=1556160370 --channel_id=\"2f26f642e714ec67e851138f0292178a3aa1f689\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpdeso7k9u.png\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1556160370, \"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001511875fdf0ccff432615c8cef00c2e5add53c4f184b158b821a38cfa2e443cd6010000006a47304402206e3adaf0428a0b28c5a07d16f8a745174720d08258f2d9096f389694a45ed4d1022011389feffc9ebe51623bee15d400cf12dd501b9cd222b1bca61ca9073466c3670121032f75f32292ccdbb7dccd10aaf00118d3e41f212626b2e2c7afc36a2a1e31c8a3ffffffff0200e1f50500000000fdcb01b50b626c616e6b2d696d6167654da0010189f6a13a8a1792028f1351e867ec14e742f6262f8129298dcadbdb838cacd03b5040bbab8f6f2ef522360f36d9ecff10c0559d4ad317e64200669a477bd0c9098e508b123b624c4e50f624f0b8e8f7218754f1690ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d706465736f376b39752e706e6718632209696d6167652f706e673230824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728f2be84e6053222080112196f15d0b6b8a44ad63177f367f1d72b62675e86337b859e4351188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a91415d0b6b8a44ad63177f367f1d72b62675e86337b88acac5e7d1d000000001976a9146835e95366e018d61b965b5e16061038617299c388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4nHymd6aSD3LidEyibxacKgLeKR5QRrD7\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"d63c442efa8ca321b858b184f1c453dd5a2e0cf0cec8152643ffccf0fd751851\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhWJWmX6KwDkgc9T3b6GrfE6Avfxh6icDv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9cdd5362f8f8fb52e43b10e93484bbc41f8d6fc\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#d9cdd5362f8f8fb52e43b10e93484bbc41f8d6fc\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhWJWmX6KwDkgc9T3b6GrfE6Avfxh6icDv\",\n \"amount\": 0.3,\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1556160370\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpdeso7k9u.png\",\n \"sd_hash\": \"824b5010c15fa64a8c43fc626f4f6ab50b384f38daf9f32524ea2a3f531537b3bd3c9fb56992b7de95fc09de90d81934\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mq1y9qSzp7FfZLvMmihfio7edYAp7YiKL6\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"59c71f384f7b0037ce69bdb4abab383e810996c355f9520951bd44c16db9d8e2\"\n }\n}" } ] }, @@ -2134,14 +2222,14 @@ "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet stream list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ]\n}" }, { "title": "Paginate your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet stream list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -2340,10 +2428,10 @@ "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update dfb3809e63cc75981fd7880faa5b7b7b50faeb45 --channel_id=\"fb198d80d32b2b08c25e0ca16579e88818f1e563\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000271252460e7b80e9322754f87e4347673024d2b694112224296ca3a7f8cb55615000000006b4830450221009e2c7b4c7acdd753cd4bb1c8894e2eb0e65d493e8abbccbe9f4552e4a292b1d10220721ea82b807c784c8ff7ea0850946e4f528197109a6c40fce83b1b30f7040d6101210302d139172070e4e765e43a5f7a538c7e65c34778bbfa3f8074cc21373cc4c7cdffffffffbf5dd4f0eac2aee7393d2567e2cdb9b29a8cf0d2d34c3dd432c70016c3f50bee010000006b483045022100ffb1b1be0ba60221e478d2d52567c0c5315de4232fafb88ba0643d25d80f38380220204ee4bccd8cb3a7dfd3d7a422bdbb83c760f4aa1cc25ede8a0c08eab14eef12012102b432f0cbf9f17e911390c6d3d4e4ff0b4f9d421019da92952dd8f6853af74cf7ffffffff0200e1f50500000000fd1101b7076173747265616d1445ebfa507b7b5baa0f88d71f9875cc639e80b3df4cd60163e5f11888e87965a10c5ec2082b2bd3808d19fb7ac4b03623e50c0b4f0f9722fda4bd5bc277abf48c10d2ff230a5585b0cb35ef537e13dc76030f1e3cc2aff62892ccbb0b54b24bd4dace2600841745c1626d3e0a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70676a346b366b6f76180b22186170706c69636174696f6e2f6f637465742d73747265616d323018a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb526d6d76a9141817356204800526abb02896e6d34aedf84bf70188acb6a3d205000000001976a91479d0c638dde9823550909343a6ead98e5a7270f888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"txid\": \"1556b58c7f3aca9642221241692b4d02737634e4874f7522930eb8e760242571\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvWP7gJXqukpvDj797FrYYKBAA9jHDdxUC\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"ee0bf5c31600c732d43d4cd3d2f08c9ab2b9cde267253d39e7aec2eaf0d45dbf\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhiLKDQQ6s4uMrSwZAt8gKzZ31cxuXgKG2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#dfb3809e63cc75981fd7880faa5b7b7b50faeb45\",\n \"signing_channel\": {\n \"claim_id\": \"fb198d80d32b2b08c25e0ca16579e88818f1e563\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004ea064c953455ccef391a686d8bcb204b5cad8fa03e27349fdb827f5ab3df16b8b65b2bccac40c5d41e2e73bed7f19cddeb34f577fb23a0b3bbac910f5e5217bc\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpgj4k6kov\",\n \"sd_hash\": \"18a1c8745b9f3b23059adbb3a128b633d4ee44da0cb6321c2e35882bcbf8b399c5ada2a7ed3def1e21419c7b9b06bb52\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mrd4AA9ZWcwgwDJtrUYtVjneQGTfdXZNpa\",\n \"amount\": \"0.9769055\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000323\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9769055\",\n \"txid\": \"3d82afe6c87d077053b8b278fd8002710f698e67d99b596886ef87174b8a3201\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update 34d175feca7258e7d7d3ba6f7f419d9aabfd35ff --channel_id=\"2f26f642e714ec67e851138f0292178a3aa1f689\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002511875fdf0ccff432615c8cef00c2e5add53c4f184b158b821a38cfa2e443cd6000000006a473044022074fe6fca4311075a38b5ce6eb617dfca6710caafd8318364bba31d330f2bc73b02200869950181827b3e49559c18139e98e4ec68c7503a6e001d196fad6ee0c79d93012103e0ee5cca0f1987a00919c3ed3dea8ab8fb43c8746bb4e2d2e981679198ae82bfffffffff479dbf40a3afa03fa62696a040966ad5e97fe0d9c3fc15da07722fdad43a81a5010000006b483045022100808c86e510149bda373d0ca06dc7495796a6d913f117a257e9f6d10d20d663df02207e7b9333ed2347ef3706f96469bf1019427a9877fac003023069cbf0b7be74560121039a7b2cb896311c8daaef939ae24aac58b8ff294a8d583f6761b07269a9edfaf5ffffffff0200e1f50500000000fd1101b7076173747265616d14ff35fdab9a9d417f6fbad3d7e75872cafe75d1344cd60189f6a13a8a1792028f1351e867ec14e742f6262f885c6464a4d279e296cee4d7258da7ecf73a03759ee804bed23c68c6f0beeca0f36e0ce3961fc3eab94fdfca276326f5eb082df78be0a2803c02e5de891674790a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70696a716338747a7a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff9966d6d76a914daa8f107c07e0abfd538cbd3fa67b5c0de9ba6fe88acb6a3d205000000001976a9141ef66c84015aef899071ce0b01c83eed261a763588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"txid\": \"d63c442efa8ca321b858b184f1c453dd5a2e0cf0cec8152643ffccf0fd751851\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"msWRvjBEstA5sdWiwFiTNFpU8T8h4DZvMg\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"a5813ad4da2f7207da15fcc3d9e07fe9d56a9640a09626a63fa0afa340bf9d47\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1T7z8qddRM3573H4xkLze9xL2kNYa1DQs\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#34d175feca7258e7d7d3ba6f7f419d9aabfd35ff\",\n \"signing_channel\": {\n \"claim_id\": \"2f26f642e714ec67e851138f0292178a3aa1f689\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c398b273c2e197f2b18836aa41550767d64ec473d507125a903c7f99dc59ca8e08d43515d73b8f03fb66ec5b5f7305f23ca9bce72cb250dccdf97207329b3e5b\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpijqc8tzz\",\n \"sd_hash\": \"4daf03c3bf49d66b2067cc00ef80902a0e8b4d101382a9008c1401e3ee9f98c34e0dd3bebe198492648fb8ec86aff996\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"miLfme8Kcesj3rRDb4ChytWyUg7AZXGR1V\",\n \"amount\": \"0.9769055\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000323\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9769055\",\n \"txid\": \"8e78c1cd1ea64dfc62533613d7da7fac044becb3f769eeb3c4d952fae61a180a\"\n }\n}" } ] } @@ -2539,7 +2627,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-04-23 23:49\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1556077772,\n \"txid\": \"eb74d8df69334bb492848f9dedb7255e72b686ba91e60568f3a3db49522110ae\",\n \"update_info\": [],\n \"value\": \"-2.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-04-23 23:49\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1556077771,\n \"txid\": \"a100fca78e5224d2f74ef4cb29192cf7fb853a7839783b4a497bb5f38f000acf\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-04-24 22:46\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1556160394,\n \"txid\": \"7245c1296b172040fc5fbc5a369eba3af5896658b9b090a47605cb732f0320c6\",\n \"update_info\": [],\n \"value\": \"-2.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-04-24 22:46\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1556160393,\n \"txid\": \"c2eb133f1005e40a030cbffc9fa297b26119ab6aa2e440755f34e4559477e5fc\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" } ] },