Compare commits

..
Author SHA1 Message Date
Lex Berezhny 74cd887249 v0.57.0 2020-02-03 13:41:33 -05:00
Lex Berezhny b40bb35652 change MINIMUM_REQUIRED on client for servers it connects to 2020-02-03 13:41:05 -05:00
Lex Berezhny dfe257af86 Revert "test to make sure next release tests pass"
This reverts commit ebb2a09107.
2020-02-03 13:39:36 -05:00
Lex Berezhny ebb2a09107 test to make sure next release tests pass 2020-02-03 13:22:33 -05:00
Lex Berezhny c157909b4e Merge pull request #2758 from ykris45/patch-6
update copyright year in license
2020-02-02 20:19:33 -05:00
YULIUS KURNIAWAN KRISTIANTO a744239b22 update year 2020-02-03 04:04:51 +07:00
Lex Berezhny 9b4417be87 Merge pull request #2757 from lbryio/resolve_for_local_list
added `--resolve` to local `claim_list`/`stream_list`/`channel_list` commands which returns more metadata for local claims
2020-02-01 18:15:35 -05:00
Lex Berezhny 84f807e278 regenerate docs 2020-02-01 17:59:57 -05:00
Lex Berezhny 448635a945 added --resolve to local *_list commands 2020-02-01 17:59:10 -05:00
Lex Berezhny 638e3e6b3d Merge pull request #2756 from lbryio/blocked_resolve
resolve errors make distinction between truely not found claims and claims which were censored by wallet server
2020-02-01 14:00:37 -05:00
Lex Berezhny bfe711bd42 fixing tests 2020-02-01 13:29:55 -05:00
Lex Berezhny d5eed91e7f fix sql unit tests 2020-02-01 13:03:39 -05:00
Lex Berezhny 15abf49211 censored resolve responses return appropriate error 2020-02-01 12:53:39 -05:00
Lex Berezhny b7eec0586c added ResolveCensoredError 2020-02-01 12:49:01 -05:00
Lex Berezhny e639124a69 Merge pull request #2755 from eggplantbren/master
fixed initialization problem with ar trending algorithm
2020-01-30 13:44:25 -05:00
Brendon J. Brewer 22bca7a16e Length zero could also just mean there aren't any claims 2020-01-31 07:34:43 +13:00
Lex Berezhny 6f66b354e5 Merge pull request #2754 from lbryio/feat-claim_search_duration
add duration to claim search params
2020-01-29 16:43:34 -05:00
jessop f98e3320ae make review changes 2020-01-29 16:25:04 -05:00
jessop 73c958222b add duration to claim search params 2020-01-29 15:46:47 -05:00
Lex Berezhny e43230e46a v0.56.0 2020-01-28 19:58:28 -05:00
Lex Berezhny dd07bc29eb Merge pull request #2747 from eggplantbren/master
new trending algorithm contributed by Brendon Brewer, to enable on wallet server set `TRENDING_ALGORITHMS` environment variable on wallet server to `ar`
2020-01-28 19:36:52 -05:00
Lex Berezhny 790bbfcc99 integrate ar trending algorithm into configurable trending system 2020-01-28 18:11:32 -05:00
Brendon J. Brewer 994e70d43a ar trending algorithm 2020-01-28 18:11:32 -05:00
Jack Robison 7d5e19716a Merge pull request #2749 from lbryio/prometheus-interrupts
add metrics to wallet server prometheus
2020-01-28 16:31:10 -05:00
Jack Robison 11530c675d initialize_request_handlers, remove local rpc handlers 2020-01-28 15:54:22 -05:00
Jack Robison 1c474352fe add wallet server prometheus metrics
-sessions gauge
-requests counter
-response times histogram
-notification counter
-request errors counter
-interrupt counter
-operational error counter
-internal error counter
-reader executor times histogram
-pending queries gauge
-lbrycrd request counter
-client versions counter
2020-01-28 15:54:22 -05:00
Jack Robison 3b2d635390 Revert "Revert "configurable trending algorithms""
This reverts commit 55e08f96a6.
2020-01-28 15:53:57 -05:00
Jack Robison 055c532d31 Merge pull request #2752 from lbryio/revert-2750-configurable_trending
Revert "configurable trending algorithms"
2020-01-28 15:04:29 -05:00
Jack Robison 55e08f96a6 Revert "configurable trending algorithms" 2020-01-28 15:03:09 -05:00
Lex Berezhny 3e0a9180bc Merge pull request #2750 from lbryio/configurable_trending
configurable trending algorithms
2020-01-28 12:30:26 -05:00
Lex Berezhny 01ed71b243 configurable trending 2020-01-28 11:58:27 -05:00
Lex Berezhny 595c058517 moved trending.py to trending/zscore.py 2020-01-28 11:58:27 -05:00
Alex Grintsvayg e04b0a6995 add docker tag to prometheus version info 2020-01-27 14:16:18 -05:00
Jack Robison 8961848ab1 Merge pull request #2748 from lbryio/cached-wallet-id
faster wallet.id attribute, improves speed of selecting wallets during api calls
2020-01-27 13:58:23 -05:00
Jack Robison 6fb1c72b7d cached wallet id 2020-01-27 13:57:21 -05:00
Alex Grintsvayg 400d79d6ab prom port off by default 2020-01-27 13:55:44 -05:00
Lex Berezhny ce6018f387 v0.55.0 2020-01-27 12:20:41 -05:00
30 changed files with 843 additions and 297 deletions

No files matched your search

+1
View File
@@ -14,3 +14,4 @@ _trial_temp/
/tests/.coverage.*
/lbry/wallet/bin
/venv
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015-2019 LBRY Inc
Copyright (c) 2015-2020 LBRY Inc
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
+1 -1
View File
@@ -26,7 +26,7 @@ services:
ports:
- "50001:50001" # rpc port
- "50005:50005" # websocket port
- "2112:2112" # prometheus
#- "2112:2112" # uncomment to enable prometheus
volumes:
- "wallet_server:/database"
environment:
+163 -139
View File
@@ -47,10 +47,10 @@
"examples": [
{
"title": "Get a file",
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"}}' http://localhost:5279/",
"lbrynet": "lbrynet get astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1579400254,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp1ozq8ity\",\n \"download_path\": \"/tmp/tmp1ozq8ity/tmppsu__ylo\",\n \"file_name\": \"tmppsu__ylo\",\n \"height\": 214,\n \"key\": \"b7d93a1d57d3e61812c674a34a4f3961\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c7482562bfe65919bd8f74f3c067fbf4f62cd43fa5f4d8ab7ca870112e7310d70d239ea4d507688327acf4b80eb68fc7a5138726aa8bcd6a61c926732b2f5edf6c36fb5977cbb0c0b36e08980a78166af7fbb9660a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"c0a2bb6f6e97c10717c53e24d8057cafbdc095b9a9f6f78d2bab385a38dcfd226f9731c2dee9eba3463d73bacbc41e94\",\n \"stream_name\": \"tmppsu__ylo\",\n \"streaming_url\": \"http://localhost:5280/stream/a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"suggested_file_name\": \"tmppsu__ylo\",\n \"timestamp\": 1579400270,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"written_bytes\": 11\n }\n}"
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#f074539771eba8eb1229e5e128825261bcdc2967\"}}' http://localhost:5279/",
"lbrynet": "lbrynet get astream#f074539771eba8eb1229e5e128825261bcdc2967",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#f074539771eba8eb1229e5e128825261bcdc2967\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1580597981,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp6rn9873y\",\n \"download_path\": \"/tmp/tmp6rn9873y/tmpl4cl26p7\",\n \"file_name\": \"tmpl4cl26p7\",\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 11\n }\n}"
}
]
},
@@ -231,10 +231,10 @@
"examples": [
{
"title": "Publish a file",
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpc8ov7w53\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpc8ov7w53",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpc8ov7w53\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000167e85c88fde387f326fba37b2612c3a805b2ed9ad4f9e5b46307a48029fa6d87010000006a473044022028798a357db4cf4403bc4cee03faf1b946a88dfa381599d1bfae2cacd3fab5f30220486161df34b2456b078f6d5b930bf437ef846ff6e6d68405cecdf866df177039012102d1577d55cb8cde272aca54b60c9b2be77d45d62367d15a09e05936c1ba3d00d2ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7063386f7637773533180b22186170706c69636174696f6e2f6f637465742d73747265616d3230846e3586adcc755850c7db569c5aaa1fb27e575e33be00c43fe67af34a0932668b3cb4959b38bfd6053beffc9cf7f7766d7576a914709db1a433f5f89b2dd707a1a172889b5ad8b35388ace0b46217000000001976a914b1be5eed89b7362def12fac0f7eda5046d3defa288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mq8BBn6fuhMt5EY9reRSUSwkAWBDpiFUhi\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400270,\n \"txid\": \"876dfa2980a40763b4e5f9d49aedb205a8c312267ba3fb26f387e3fd885ce867\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqnQtJbG1yPUh9czkmvQWvkCyCB4HdYtdk\",\n \"amount\": \"1.0\",\n \"claim_id\": \"147e85f9f871ac68c1162c6bb0b0a065d67c1c30\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"a-new-stream\",\n \"normalized_name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#147e85f9f871ac68c1162c6bb0b0a065d67c1c30\",\n \"timestamp\": null,\n \"txid\": \"1653397207802b93eaca0f53d8ca4c86e56f532a3bb7d68731b6e8ba4faf95d8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpc8ov7w53\",\n \"sd_hash\": \"846e3586adcc755850c7db569c5aaa1fb27e575e33be00c43fe67af34a0932668b3cb4959b38bfd6053beffc9cf7f776\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwimxCnDnH6Bxpvn3Am4Cq7wzqej7B9oF6\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1653397207802b93eaca0f53d8ca4c86e56f532a3bb7d68731b6e8ba4faf95d8\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"1653397207802b93eaca0f53d8ca4c86e56f532a3bb7d68731b6e8ba4faf95d8\"\n }\n}"
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnien95xc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpnien95xc",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnien95xc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a4870e8910fbba40a425fe3bbfcfd83a04cca18afcba5411e47aa3187fb6fdb7010000006b483045022100fad3a3cf800d506cb23ed2704cbdce2a4633213288307a11fc3bc0be62157a97022079644e653de2d7afe6a18a0fb219cdea95b99c0ac59ea67f6a8fa37715b006d1012102da0be37e73f1c1d90f62e15a9ba7d64deec9d147607097977828e5ad58d12dbfffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e69656e39357863180b22186170706c69636174696f6e2f6f637465742d73747265616d323036b56301abe26b9a8bc4991cf2b8c3b8d36fbc12a5985024716e9a1e6b98c2e4636ab9f62f0a4e7b856040a4fa3020cf6d7576a914b93f9cbac31f3ad8ab9a3a60d8aa632531d9eb5088ace0b46217000000001976a914a695bbd53d8ff0f65903adfa3e407cf1f7f6860288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1cZt4ybyfLrJq7WgBY5HLjjRKpsGhQ7Q7\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580598000,\n \"txid\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a440bafb10890e87a4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxQTWQ1UkGtPLARJtCqgThWPvWKWnuanvP\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e787f68a5eaa851941cbc456077a7261bc26650d\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"a-new-stream\",\n \"normalized_name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#e787f68a5eaa851941cbc456077a7261bc26650d\",\n \"timestamp\": null,\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnien95xc\",\n \"sd_hash\": \"36b56301abe26b9a8bc4991cf2b8c3b8d36fbc12a5985024716e9a1e6b98c2e4636ab9f62f0a4e7b856040a4fa3020cf\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvhmqaZ2N9gYusKN16bs2H3Tco7yHpLMDp\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\"\n }\n}"
}
]
},
@@ -259,10 +259,10 @@
"examples": [
{
"title": "Resolve a claim",
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"]}}' http://localhost:5279/",
"lbrynet": "lbrynet resolve astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"]}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\": {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#b\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1579400270,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"short_url\": \"lbry://astream#b\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1579400269,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f074539771eba8eb1229e5e128825261bcdc2967\"]}}' http://localhost:5279/",
"lbrynet": "lbrynet resolve astream#f074539771eba8eb1229e5e128825261bcdc2967",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f074539771eba8eb1229e5e128825261bcdc2967\"]}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#f074539771eba8eb1229e5e128825261bcdc2967\": {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
}
]
},
@@ -284,7 +284,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 \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"6bX88naHw5g5pVDihups1vDJAUJX3tPnSTzzX8gqn8GqqhDDAGS8gXYeHYYhkfMeav\",\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 \"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 \"available_servers\": 1,\n \"best_blockhash\": \"691772a32fc37ac70ef8cff4ca4d3e3ff3f6e46271d61ebf927976d0fec1aec8\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1:50002\",\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.010761522004031576,\n \"port\": 50002\n }\n ]\n }\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"63NzS2chfMkok32ayYFTunJvUcZXp6Ma89TmaUWYwknihwWdSbJQnptJMFmBCa4YHa\",\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 \"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 \"available_servers\": 1,\n \"best_blockhash\": \"850169421246c958f842f4df5b6d39379583a2fbcd58ab7fd177061f04f3d23f\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1:50002\",\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.004415172035805881,\n \"port\": 50002\n }\n ]\n }\n }\n}"
}
]
},
@@ -306,7 +306,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.53.3\",\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.5\",\n \"version\": \"0.53.3\"\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.56.0\",\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.5\",\n \"version\": \"0.56.0\"\n }\n}"
}
]
}
@@ -360,10 +360,10 @@
"examples": [
{
"title": "Add an account from seed",
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\", \"single_key\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet account add \"new account\" --seed=\"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\", \"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\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1579400238.4076705,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfLMWqQPugfYqk2VbqyAav7taMiAdCUZVBf77qycF8dLQRYCdcZYfEnYn3wwp6WJiXATSf4i1zQPQeDAmhz9ayKfjGQH74aH\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YoPJj44W65CxK41Y1JMVVRVMeECvckMt29MtUNRqK7xGbfyP4PU7giFaGg3k8cFikmVCYvmSwUmJCHQ7Wqoj7G8nM73L6CK\",\n \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\", \"single_key\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet account add \"new account\" --seed=\"author once save hire guard kingdom divide achieve damp river arrow bulb\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\", \"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\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.4350507,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
}
]
},
@@ -401,9 +401,9 @@
},
{
"title": "Get balance for specific account by id",
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}' http://localhost:5279/",
"lbrynet": "lbrynet account balance \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}).json()",
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
"lbrynet": "lbrynet account balance \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"2.0\"\n }\n}"
}
]
@@ -438,7 +438,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\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1579400238.2787437,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfLMWqQPugfYqk2VbqyAav7taMiAdCUZVBf77qycF8dLQRYCdcZYfEnYn3wwp6WJiXATSf4i1zQPQeDAmhz9ayKfjGQH74aH\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YoPJj44W65CxK41Y1JMVVRVMeECvckMt29MtUNRqK7xGbfyP4PU7giFaGg3k8cFikmVCYvmSwUmJCHQ7Wqoj7G8nM73L6CK\",\n \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\"\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\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.2563741,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
}
]
},
@@ -493,24 +493,24 @@
"examples": [
{
"title": "Transfer 2 LBC from default account to specific account",
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --to_account=\"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\" --amount=2.0 --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000132b8996b03c88232743ed37c9bd5ef57ef57892e42135d46f02f2ae95b341bda000000006b483045022100e401824a767f4cbad7329c6f1ad563bec85e002eebbf0d1b170e5924d3ab85a702202c2d06303dec4a65274f125f2aadba5307614392213dd79b77b9aae204730fbf0121036207aaaac5d1bcaf702f1d662cb1aa1d35b7796d74a0c3b0e45ff3c0abe8aa38ffffffff0200c2eb0b000000001976a91483bf0505a3da64584762ba81cb4612c1e57b89fa88ac90d7ae2f000000001976a914f4748e91a505e9b414274111b7753dda6dcf7d5f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkAjveCss25NmkHkokv9a43V868iuvSqcQ\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1579400268,\n \"txid\": \"da1b345be92a2ff0465d13422e8957ef57efd59b7cd33e743282c8036b99b832\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3oWoNoXgKSWq8ksK8iXes7EkQNh9ZiYLb\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --to_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --amount=2.0 --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010324f6295b8b36ce0798e5ab1afe607a007d66116bbe02dcec16d5b1bde85397000000006a47304402200830bdc2c6d7eb92114d2435feed7171ac2a5ace39e37f21ce2e747d6cf9ffad022079f2058362f8f330f09b60b49a9d5c3f327d5c07f39f9b86dc834dbf9dd1ec040121031f35ad651fbe4aa3909d202a83faf0ecf7fedbf5cdd812e5a5531d0d1745af78ffffffff0200c2eb0b000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac90d7ae2f000000001976a914d18214c4299e6cb843e03f5395ea9e714e4fe85888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhhKub525Gx7XEn8im3BFv4DA8uwmX1jiG\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597998,\n \"txid\": \"9753e8bdb1d516ecdc02be6b11667d007a60fe1aabe59807ce368b5b29f62403\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzcjMLjnbZKSQoEPS4jgRRYKkbjKhW8HVT\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\"\n }\n}"
},
{
"title": "Spread LBC between multiple addresses",
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"from_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --to_account=\"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\" --from_account=\"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\" --amount=1.5 --outputs=2 --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"from_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001004d6230575edb11cc650227154cd6e580a6d9682bf335885f291a7959f083d7000000006a47304402205dc6e0ca05752fbc6a1417d7fbfe19d506565b1bf6454d5cf0956d372373e96b0220391150e2bd6c02230bf1b65298255bef91d0ffdf76362dc6ad44e214cfab37f001210262c4cb530de06e209b04a735d6a9378ce0400e2e7425764350498d418d1c4968ffffffff03c0687804000000001976a91483bf0505a3da64584762ba81cb4612c1e57b89fa88acc0687804000000001976a91483bf0505a3da64584762ba81cb4612c1e57b89fa88ac6cb9fa02000000001976a91494954a46cdbadfd282700522f5b4c4e0c4f2544b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1579400269,\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mu4b9JhJBCaDmdkpSmQURFvhbYy9uUmnr9\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --to_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --from_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --amount=1.5 --outputs=2 --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012909d068bfe8fc0e7d279b91365f023daacf9b452d880ef6b07e9497316e3d4a000000006b483045022100b78399232f8150692bbf6e6d6dac67db9500a21eb22fd464cddfc57dfab008d1022078a98eeccfd7bc55349eeb1db694fb719883ce6f3f9376ea5aee6d73ec70ab0a012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7ffffffff03c0687804000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588acc0687804000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac6cb9fa02000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\"\n }\n}"
},
{
"title": "Transfer all LBC to a specified account",
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --from_account=\"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\" --everything --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"everything\": true, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000037240bfdc7562de1616a14ac8d00ea71e4021126cdf98dc3e755740fc03dd6b67000000006b483045022100ed59201d80743f92e275fdb41099b2db1b25577bd6e8e2bdde6712f37560bcfe02206664ef1be775a1a5c293c05d9c1549c88577cf5e7c6aeb088ea70fdcae98792d01210262c4cb530de06e209b04a735d6a9378ce0400e2e7425764350498d418d1c4968ffffffff7240bfdc7562de1616a14ac8d00ea71e4021126cdf98dc3e755740fc03dd6b67010000006b48304502210097df72fdc6f40bb4b119baba6d6232065aa86e06082a7d84776eb442e8847f720220483c841aaed85c5e063e59885bf65891dae92561c47d68147096c4d534a275d201210262c4cb530de06e209b04a735d6a9378ce0400e2e7425764350498d418d1c4968ffffffff7240bfdc7562de1616a14ac8d00ea71e4021126cdf98dc3e755740fc03dd6b67020000006b483045022100cdafc9dd334b238845fdbbec3f1e90f18f608cff017fc2ae1df569f8d9ff744c022032459996bfe81fdc20e89fe59bb82131c52d77f6fe3ddd791665c9aaea807a28012102827e9ee79680f998b2072aac822e794621ab77994880c0f811215aa7556c3796ffffffff015027eb0b000000001976a914291cb899cee628ed4076d8aff8c17e3b9ff8685e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1579400269,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400269,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mu4b9JhJBCaDmdkpSmQURFvhbYy9uUmnr9\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1579400269,\n \"txid\": \"676bdd03fc4057753edc98df6c1221401ea70ed0c84aa11616de6275dcbf4072\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjGLQViMN89giFBMxP4E8VAMUcbxyjywk7\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"e356d9edcef5b1f9dc1620d7c703f13a4046b49e3ffc4e924778b1ac6600b3fe\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"e356d9edcef5b1f9dc1620d7c703f13a4046b49e3ffc4e924778b1ac6600b3fe\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
"lbrynet": "lbrynet account fund --from_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --everything --broadcast",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"everything\": true, \"broadcast\": true}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003f671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f000000006b483045022100efe0060436609f05d837ee44194e4d2528ecaa1324148cafc898cc099a01b746022040d7558357f2c221a76e709fb0df5ea136835ff5af015edb12254ff65c0f480e012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7fffffffff671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f010000006b483045022100ba2787556f85433ffffc683b639cc517dde4bc028a927d00b568250d18ad75c7022060edacba7268766d083096884d796d432b5a105289ec32b1af63b42e2f46335f012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7fffffffff671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f020000006a47304402202f31b0513b8874f3940a983e7ba33491e7e11f221a481cc28f3a6a20f970afec0220096a4ba3a4c860fd9a354ab9c2eb9e036e8ffcc38d99024d06ca26e1c75f353d012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7ffffffff015027eb0b000000001976a9146c759a0f660a0313b33563fd218c9b92ffe89ce288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\"\n }\n}"
}
]
},
@@ -568,7 +568,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 \"items\": [\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\": \"mtoi8LVg42arZktjQKe9Kjkn3hB5RfQjtR\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mtoi8LVg42arZktjQKe9Kjkn3hB5RfQjtR\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WZzDVYzTURW6cCCz7UcQh8zCz2gLc3eif8LciP36qBtz1nyWjKm5qL5zQbFwTT6GoFBDy84fqiyVt6BDDr17s51vLbF9sAk\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\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\": \"mvRSjqD18zGBsCKyXJYBWgEhx9Rfx1p23H\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mvRSjqD18zGBsCKyXJYBWgEhx9Rfx1p23H\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WsQSShFxXCjjWS3nEpCES2EeXvD4WG74cZHsqtERPse7DvGEhTdxVgkQRfYhPLjFUTSmMDCAtinsfeV2XsnpkrJsESu7CA1\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -613,10 +613,10 @@
"examples": [
{
"title": "Remove an account",
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}' http://localhost:5279/",
"lbrynet": "lbrynet account remove mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}).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\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1579400238.2787437,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfLMWqQPugfYqk2VbqyAav7taMiAdCUZVBf77qycF8dLQRYCdcZYfEnYn3wwp6WJiXATSf4i1zQPQeDAmhz9ayKfjGQH74aH\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YoPJj44W65CxK41Y1JMVVRVMeECvckMt29MtUNRqK7xGbfyP4PU7giFaGg3k8cFikmVCYvmSwUmJCHQ7Wqoj7G8nM73L6CK\",\n \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
"lbrynet": "lbrynet account remove mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).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\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.2563741,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
}
]
},
@@ -703,10 +703,10 @@
"examples": [
{
"title": "Modify maximum number of times a change address can be reused",
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
"lbrynet": "lbrynet account set mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT --change_max_uses=10",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\", \"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\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1579400238.461284,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfLMWqQPugfYqk2VbqyAav7taMiAdCUZVBf77qycF8dLQRYCdcZYfEnYn3wwp6WJiXATSf4i1zQPQeDAmhz9ayKfjGQH74aH\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YoPJj44W65CxK41Y1JMVVRVMeECvckMt29MtUNRqK7xGbfyP4PU7giFaGg3k8cFikmVCYvmSwUmJCHQ7Wqoj7G8nM73L6CK\",\n \"seed\": \"blossom warfare trial oil essay six develop bless remember recipe wasp avoid\"\n }\n}"
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
"lbrynet": "lbrynet account set mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu --change_max_uses=10",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"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\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.4926648,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
}
]
}
@@ -742,9 +742,9 @@
"examples": [
{
"title": "Check if address is mine",
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqMjLadUVYcKcoUD6bDjtymz3mw5o85a9f\"}}' http://localhost:5279/",
"lbrynet": "lbrynet address is_mine mqMjLadUVYcKcoUD6bDjtymz3mw5o85a9f",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqMjLadUVYcKcoUD6bDjtymz3mw5o85a9f\"}}).json()",
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"}}' http://localhost:5279/",
"lbrynet": "lbrynet address is_mine mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
}
]
@@ -791,14 +791,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 \"items\": [\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mhBD332VegShAorKpxukWrEWmbUzfdzDhS\",\n \"pubkey\": \"tpubDA9GDAntyJu55PTWeX41jxL6f4ZW1EGTUiYjcfXbpbpz2GBPp6Yi2x1FVA2d12KnUPDYuKPUWGw1Dh9ZntinTb8D7ZUFAKCKyN93Hdqvqms\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"miwwrn6FK5FY6sQbDcU7YNcd6oTHtwJvQH\",\n \"pubkey\": \"tpubDA9GDAntyJu52wuCcgVYDVds4DcRGs71e2TH4k5yfFudwwjq5439ojn1o24jDtew9AggW7TUcF34NT54mPeZEZazy4bWQYwtf5GEgY3V2SQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mjwdqgZ3k5cTKLzzqj6jeKHWbPpauWrBwv\",\n \"pubkey\": \"tpubDA9GDAntyJu4NL6PR5ZY1orKdmJJmQUb16RH2pvPhrxbqyEzVvAT3MSQn7LinV1VonLQBGhckU6eeELehxpGb12aLscaiUuY1soB38Zq84t\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mmE9RDU2T1HD9oX9SNVoQA7vD3A359qkRR\",\n \"pubkey\": \"tpubDA9GDAntyJu4SnoQ8QZEPs9SAKh1qkuJ2j6iStdRTpr6LwARWVfwdve4y6DyyCcBKTpotUPGypdiiw1PSJuTBNbApaq2SZGHsU7td35AyPQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mn8QjQsVrYXU8zYorX95cYPwa79Z7uNxq1\",\n \"pubkey\": \"tpubDA9GDAntyJu4qb6PvTo3wt3dQYE46LJM3czxuhSgrzst8LGSrux8NxHNeEMgxCHXnPyruimAw5Yp1tuS3nyRUUowEfPjKrCWmBE3jSuyrac\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"moKAJoi8inN2KjDeqJZcyqzPWotVbUHuVe\",\n \"pubkey\": \"tpubDA9GDAntyJu4fu7FweQwbXz15syBjxW3Qmnyyt8wjWPgoLPpe7Kx76Z2yVb6nwMXE3vVvYJTYyrL9BePyiUxK4s56fP6W7HCq8F8qPcr2Ae\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mpSC61mQBsRYVx57wvwRf7TJ3SR1uf4YJk\",\n \"pubkey\": \"tpubDA9GDAntyJu4RgxjLgKhVanz5KdQy2kGJhLkP62Qhu2ToZSV4u6m1fwkdTNve8ideaEix1rKFVnenUKGUL3iTZpixHH8bsAAE1CutJFhupm\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mpSdwtjqtiSix4WPWPDmEQWyd9ND54dcXn\",\n \"pubkey\": \"tpubDA9GDAntyJu4H2jN5FGPJdo2NKGHnNcoZfACWe2goMeKwy69UB7J3FpMhCDffHSXuHhVG8gJrf8Qm6cAcimhwmFN18oWF8ZE1h7s6SeNUYW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mqyx9wR5hV4h7eg8731X1XxTTq9GhXzo8E\",\n \"pubkey\": \"tpubDA9GDAntyJu4vyXxpCj5dtueXk7vY1bD3jPdpAnDDrPDQWCmT92ATZxCJCZNnxD77JgwamFvLHzRVbqMVdny4dSunNKntVSwig81XsZ9MA7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mrW3GqozotWt25hEfnQCnwRCgAEgnqVVUa\",\n \"pubkey\": \"tpubDA9GDAntyJu4o5HeVMXjD64V8bJRU9VsHfRkoCigJsUjW4SunbFmtifvLazZKPDcfmoWgz6kR3NHpE1yXZozQU65MmK1HPS9Zd8fwCzGY3V\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"pubkey\": \"tpubDA9GDAntyJu4ExrVLbVAKrFQE46Fg5bcHtLRuYeHi7WEvTzVfwUmmHzhQ79HC45h9uKPLmWN7Y5SRzi31kxonKpDtxyLcUQjSYLXSgMdx1M\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mskMFx1gcztwp3GVX4pQhpebSQHxUSWbg9\",\n \"pubkey\": \"tpubDA9GDAntyJu4JciDnjGGkpLCzn3M11GZ6uW9ipEaMHM5nsDeAkoW8yLaBc4tHVhQKP7GMoNp2ySnbwKsezXC39hLcGTyMWXibYcNWPcvv6d\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mtCpZhdUga64KZxcie9UzJGRBhLY99pB6s\",\n \"pubkey\": \"tpubDA9GDAntyJu4uNESG5uscZXCCNwqF3tJWw7VgABooB4VQ6SSszVbLBNbXTbhFdDoZEe9UHuLScKzjMU6X8FjvuL4iumBpDqA6nTxJheMQwa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mtX3UmbqJQ8wNShAjKNDMd1dvrzh3tHitR\",\n \"pubkey\": \"tpubDA9GDAntyJu4zsgAwf58DXNW9uajnXp6hNDExgWKEwFSg7vTf1UkWsfXmamCSH6PBc2h4mcznVY5dLnGpwV1d8fhdGoUX6dUvaSYT2GycGo\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mu4b9JhJBCaDmdkpSmQURFvhbYy9uUmnr9\",\n \"pubkey\": \"tpubDA9GDAntyJu4Kin1srBhnMwUZ9bMrUXvKBudKxkeumaCDe9JzbBy7oHZVDArCHhpcy67tweE8LMNhYxQYShZ6PqefMSMF4hQGWFUeAi9D88\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mv4KUj3getjB1DwQ2GxP3ncVox9T3h5wDj\",\n \"pubkey\": \"tpubDA9GDAntyJu4YPg9jamaGsUjnf5KBpfvrRqtYVfAV6iqJg1zbF96ixnBV4E3ynvgYZgRf7GzKeTZ4BfPWGXWY1tUCk4Q2rMogze7UG3vcZu\",\n \"Line truncated
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mgtVcoHgW1zZYTTeSJ5F5KeZywvaKzKm1z\",\n \"pubkey\": \"tpubDA9GDAntyJu4vumZctqGnrpSy2gAcyHQWffdLopNNfCwsHQPEXsmWSXvCiTCEoUzE5Kp2wDmrmWddUPNgNHjEMkRGNUtM31ssw1V88uiDKD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhPAUzkdz7nx6LeLuH1HFEZKykSgiFqSAM\",\n \"pubkey\": \"tpubDA9GDAntyJu4UfqiUJkzBPzDMuqWeDdU9ULqUsyt25Hy4DDEmrVDmZ5taiYUep9x9aJmcF7RA7QCncfwJ3xuG7FEd1zXwnb8RxZMVr28X2z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhYyM3aJB1ksLAsxfsNYH2JpTqVqxeJx5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ry7xgkaySM36xdwZkMxGnq7bqpoZao9sJ1gCXRQPcuRdBaaST1amyQcBZv4RZa6oUFEqspDRccstMHRSfsmxroqWHq3P583\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mixcY4Ydxft5rE7jotFX5u9RoZtM3dQiD8\",\n \"pubkey\": \"tpubDA9GDAntyJu4LgszDXT8esYngeSp5doBjANzYFSVbQeEzG7dH9azbvgio1essvBEmFAk74quTWehzVCgbUUKzbbp45wAhJbRfe1oyJqPSM2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkSvvAr2ezbbkPLxPVc6ujYdmVUfBHgiWD\",\n \"pubkey\": \"tpubDA9GDAntyJu4HgiAHB6s8kudF5PUzDqywSuGMdZLR3m8Xpuhod9u5137yUqhW7djCY7A7niVZqkiBUGBvfk9LWpURZg78xwipVrdy5T5g7T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkiYZk8hc8eNanmSuxfmvxnb4628CXdamb\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZSbDn6n69Z3LkG9qV5EsAhvNiZJipZmY6VMtjeZV4FayA3PpWVKdp8m1uw7psW6eRx7Ay2S2tZd3DPJXhXPKiAEd2YXTGik\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkn2JsQhEu2wdtNavG7fTayw4gGoBFsWj2\",\n \"pubkey\": \"tpubDA9GDAntyJu4WcC65CEy4GDwqcvCzisVpdkXd3zFDWCk5kNAg69Xsy2w9oD7zC5gYCTJB7gUQVrjQJz723A5WTYbU1fVewFrLkWhvPA1Pnj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmoE2PmxisYJd2j7Kfn9mJvCc7toYC1Rzs\",\n \"pubkey\": \"tpubDA9GDAntyJu4n5Grk1qCoHFqQma129pU35TuuU6Ayv8VbCivfhFQ1ZPef3cvtJsggTNBcGe8xte2a3rdALk5DajUya4Ma821KdS42cALe4a\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmvCELZ3LfrAJqLCXnBU4MnGpSAGtUUVF2\",\n \"pubkey\": \"tpubDA9GDAntyJu4vETToav9Su4b7FuXrqCFKSbQb1CxjapKti6nA1Vromr6GBKhKCDJwnhu5a7sW3MpfMxgiSRXex4bhfgtRU386gHBmHWfWp7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mnfb8TnZ2vkacdzPasTuCXHHhXaNT4xkud\",\n \"pubkey\": \"tpubDA9GDAntyJu4P2ks33hD6D4UTeja2sn7zBG94VSvSxCcLnfRXgrnsARTyD7QsxG3Ei6QGvNMobHCAZ7kqcGS1Wsepuboi1TEib6yBcB2Fdc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"pubkey\": \"tpubDA9GDAntyJu4GnM4YBBNjPMrgWuNodyJfej3rDgczS7zdGhrzSG8sEWxnNNYaZedrJdSx3KREJBM3C4Ke87U1mzTKwxBYxXKcULmGHwe5Jy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mpiewxhv9gRwN8qPMke2D9PX4CTNTAJBDB\",\n \"pubkey\": \"tpubDA9GDAntyJu4ETtTrzPhVKkhzdEtfCHEu2xqNUpQdTUZb3GDHzTVJ9uJTHS8K61Ewiy8suGFFCSDtW2gCDNyuDdN6h2azyirwymToRwLtvC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqGGaEenrT1EUa2UuvnHa5X8JoriN9UsAu\",\n \"pubkey\": \"tpubDA9GDAntyJu4SbUWxME4dWXdEJPdExe4CWdvWtSX8nJYmHHr73gidaS2iRczEA5eFrpQMiYW5aR1nvM4n8yeKaUmAk6bNHqUJKJTe45Hct6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqiaipJC9mpiEc1zcZgpeAh2kxwqKM5VuK\",\n \"pubkey\": \"tpubDA9GDAntyJu4LLzArY7p4W5Psgc3Q54kN729wC4gPCdb8SCxbRZb1ydguBwQ3cV6tMMJ3nszVHMN4hetZKGJF3jjmuYRVwiU5fUwzjWrBZK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mrx4RoCq46rBBHFYkgFS6Hw3iPXMHDu9nE\",\n \"pubkey\": \"tpubDA9GDAntyJu4t1vSmYZPkdwrJ8NfWtC7NyMcNgXmyjxLMfhsCBjB6EUuCdUss3yNWuv4u7YapA7qWyrafTgUEyiwzT2co2sNiHkhSUEypNt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"msmn1kKEN6HmodNmKnLzLBtPjisDA5phmo\",\n \"pubkey\": \"tpubDA9GDAntyJu4EmBEGV1icYTZqtPyrctZvQiCqsEgBQmfxU7EJCE7ABR6qUyFwtNbLZUtQf59HXdukcfAPg93Dv4tUMxDBMHfByZdkaVw13q\",\n \"Line truncated
},
{
"title": "List addresses in specified account",
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}' http://localhost:5279/",
"lbrynet": "lbrynet address list --account_id=\"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mhBD332VegShAorKpxukWrEWmbUzfdzDhS\",\n \"pubkey\": \"tpubDA9GDAntyJu55PTWeX41jxL6f4ZW1EGTUiYjcfXbpbpz2GBPp6Yi2x1FVA2d12KnUPDYuKPUWGw1Dh9ZntinTb8D7ZUFAKCKyN93Hdqvqms\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"miwwrn6FK5FY6sQbDcU7YNcd6oTHtwJvQH\",\n \"pubkey\": \"tpubDA9GDAntyJu52wuCcgVYDVds4DcRGs71e2TH4k5yfFudwwjq5439ojn1o24jDtew9AggW7TUcF34NT54mPeZEZazy4bWQYwtf5GEgY3V2SQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mjwdqgZ3k5cTKLzzqj6jeKHWbPpauWrBwv\",\n \"pubkey\": \"tpubDA9GDAntyJu4NL6PR5ZY1orKdmJJmQUb16RH2pvPhrxbqyEzVvAT3MSQn7LinV1VonLQBGhckU6eeELehxpGb12aLscaiUuY1soB38Zq84t\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mmE9RDU2T1HD9oX9SNVoQA7vD3A359qkRR\",\n \"pubkey\": \"tpubDA9GDAntyJu4SnoQ8QZEPs9SAKh1qkuJ2j6iStdRTpr6LwARWVfwdve4y6DyyCcBKTpotUPGypdiiw1PSJuTBNbApaq2SZGHsU7td35AyPQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mn8QjQsVrYXU8zYorX95cYPwa79Z7uNxq1\",\n \"pubkey\": \"tpubDA9GDAntyJu4qb6PvTo3wt3dQYE46LJM3czxuhSgrzst8LGSrux8NxHNeEMgxCHXnPyruimAw5Yp1tuS3nyRUUowEfPjKrCWmBE3jSuyrac\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"moKAJoi8inN2KjDeqJZcyqzPWotVbUHuVe\",\n \"pubkey\": \"tpubDA9GDAntyJu4fu7FweQwbXz15syBjxW3Qmnyyt8wjWPgoLPpe7Kx76Z2yVb6nwMXE3vVvYJTYyrL9BePyiUxK4s56fP6W7HCq8F8qPcr2Ae\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mpSC61mQBsRYVx57wvwRf7TJ3SR1uf4YJk\",\n \"pubkey\": \"tpubDA9GDAntyJu4RgxjLgKhVanz5KdQy2kGJhLkP62Qhu2ToZSV4u6m1fwkdTNve8ideaEix1rKFVnenUKGUL3iTZpixHH8bsAAE1CutJFhupm\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mpSdwtjqtiSix4WPWPDmEQWyd9ND54dcXn\",\n \"pubkey\": \"tpubDA9GDAntyJu4H2jN5FGPJdo2NKGHnNcoZfACWe2goMeKwy69UB7J3FpMhCDffHSXuHhVG8gJrf8Qm6cAcimhwmFN18oWF8ZE1h7s6SeNUYW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mqyx9wR5hV4h7eg8731X1XxTTq9GhXzo8E\",\n \"pubkey\": \"tpubDA9GDAntyJu4vyXxpCj5dtueXk7vY1bD3jPdpAnDDrPDQWCmT92ATZxCJCZNnxD77JgwamFvLHzRVbqMVdny4dSunNKntVSwig81XsZ9MA7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mrW3GqozotWt25hEfnQCnwRCgAEgnqVVUa\",\n \"pubkey\": \"tpubDA9GDAntyJu4o5HeVMXjD64V8bJRU9VsHfRkoCigJsUjW4SunbFmtifvLazZKPDcfmoWgz6kR3NHpE1yXZozQU65MmK1HPS9Zd8fwCzGY3V\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"msXZeTbziXSNU1iSU2tvYkHGgHWtmN9LqV\",\n \"pubkey\": \"tpubDA9GDAntyJu4ExrVLbVAKrFQE46Fg5bcHtLRuYeHi7WEvTzVfwUmmHzhQ79HC45h9uKPLmWN7Y5SRzi31kxonKpDtxyLcUQjSYLXSgMdx1M\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mskMFx1gcztwp3GVX4pQhpebSQHxUSWbg9\",\n \"pubkey\": \"tpubDA9GDAntyJu4JciDnjGGkpLCzn3M11GZ6uW9ipEaMHM5nsDeAkoW8yLaBc4tHVhQKP7GMoNp2ySnbwKsezXC39hLcGTyMWXibYcNWPcvv6d\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mtCpZhdUga64KZxcie9UzJGRBhLY99pB6s\",\n \"pubkey\": \"tpubDA9GDAntyJu4uNESG5uscZXCCNwqF3tJWw7VgABooB4VQ6SSszVbLBNbXTbhFdDoZEe9UHuLScKzjMU6X8FjvuL4iumBpDqA6nTxJheMQwa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mtX3UmbqJQ8wNShAjKNDMd1dvrzh3tHitR\",\n \"pubkey\": \"tpubDA9GDAntyJu4zsgAwf58DXNW9uajnXp6hNDExgWKEwFSg7vTf1UkWsfXmamCSH6PBc2h4mcznVY5dLnGpwV1d8fhdGoUX6dUvaSYT2GycGo\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mu4b9JhJBCaDmdkpSmQURFvhbYy9uUmnr9\",\n \"pubkey\": \"tpubDA9GDAntyJu4Kin1srBhnMwUZ9bMrUXvKBudKxkeumaCDe9JzbBy7oHZVDArCHhpcy67tweE8LMNhYxQYShZ6PqefMSMF4hQGWFUeAi9D88\",\n \"used_times\": 0\n },\n {\n \"account\": \"mgfeXcmpqs1EQkuxsAzKFwXWTk15F9hDpT\",\n \"address\": \"mv4KUj3getjB1DwQ2GxP3ncVox9T3h5wDj\",\n \"pubkey\": \"tpubDA9GDAntyJu4YPg9jamaGsUjnf5KBpfvrRqtYVfAV6iqJg1zbF96ixnBV4E3ynvgYZgRf7GzKeTZ4BfPWGXWY1tUCk4Q2rMogze7UG3vcZu\",\n \"Line truncated
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
"lbrynet": "lbrynet address list --account_id=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mgtVcoHgW1zZYTTeSJ5F5KeZywvaKzKm1z\",\n \"pubkey\": \"tpubDA9GDAntyJu4vumZctqGnrpSy2gAcyHQWffdLopNNfCwsHQPEXsmWSXvCiTCEoUzE5Kp2wDmrmWddUPNgNHjEMkRGNUtM31ssw1V88uiDKD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhPAUzkdz7nx6LeLuH1HFEZKykSgiFqSAM\",\n \"pubkey\": \"tpubDA9GDAntyJu4UfqiUJkzBPzDMuqWeDdU9ULqUsyt25Hy4DDEmrVDmZ5taiYUep9x9aJmcF7RA7QCncfwJ3xuG7FEd1zXwnb8RxZMVr28X2z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhYyM3aJB1ksLAsxfsNYH2JpTqVqxeJx5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ry7xgkaySM36xdwZkMxGnq7bqpoZao9sJ1gCXRQPcuRdBaaST1amyQcBZv4RZa6oUFEqspDRccstMHRSfsmxroqWHq3P583\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mixcY4Ydxft5rE7jotFX5u9RoZtM3dQiD8\",\n \"pubkey\": \"tpubDA9GDAntyJu4LgszDXT8esYngeSp5doBjANzYFSVbQeEzG7dH9azbvgio1essvBEmFAk74quTWehzVCgbUUKzbbp45wAhJbRfe1oyJqPSM2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkSvvAr2ezbbkPLxPVc6ujYdmVUfBHgiWD\",\n \"pubkey\": \"tpubDA9GDAntyJu4HgiAHB6s8kudF5PUzDqywSuGMdZLR3m8Xpuhod9u5137yUqhW7djCY7A7niVZqkiBUGBvfk9LWpURZg78xwipVrdy5T5g7T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkiYZk8hc8eNanmSuxfmvxnb4628CXdamb\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZSbDn6n69Z3LkG9qV5EsAhvNiZJipZmY6VMtjeZV4FayA3PpWVKdp8m1uw7psW6eRx7Ay2S2tZd3DPJXhXPKiAEd2YXTGik\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkn2JsQhEu2wdtNavG7fTayw4gGoBFsWj2\",\n \"pubkey\": \"tpubDA9GDAntyJu4WcC65CEy4GDwqcvCzisVpdkXd3zFDWCk5kNAg69Xsy2w9oD7zC5gYCTJB7gUQVrjQJz723A5WTYbU1fVewFrLkWhvPA1Pnj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmoE2PmxisYJd2j7Kfn9mJvCc7toYC1Rzs\",\n \"pubkey\": \"tpubDA9GDAntyJu4n5Grk1qCoHFqQma129pU35TuuU6Ayv8VbCivfhFQ1ZPef3cvtJsggTNBcGe8xte2a3rdALk5DajUya4Ma821KdS42cALe4a\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmvCELZ3LfrAJqLCXnBU4MnGpSAGtUUVF2\",\n \"pubkey\": \"tpubDA9GDAntyJu4vETToav9Su4b7FuXrqCFKSbQb1CxjapKti6nA1Vromr6GBKhKCDJwnhu5a7sW3MpfMxgiSRXex4bhfgtRU386gHBmHWfWp7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mnfb8TnZ2vkacdzPasTuCXHHhXaNT4xkud\",\n \"pubkey\": \"tpubDA9GDAntyJu4P2ks33hD6D4UTeja2sn7zBG94VSvSxCcLnfRXgrnsARTyD7QsxG3Ei6QGvNMobHCAZ7kqcGS1Wsepuboi1TEib6yBcB2Fdc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"pubkey\": \"tpubDA9GDAntyJu4GnM4YBBNjPMrgWuNodyJfej3rDgczS7zdGhrzSG8sEWxnNNYaZedrJdSx3KREJBM3C4Ke87U1mzTKwxBYxXKcULmGHwe5Jy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mpiewxhv9gRwN8qPMke2D9PX4CTNTAJBDB\",\n \"pubkey\": \"tpubDA9GDAntyJu4ETtTrzPhVKkhzdEtfCHEu2xqNUpQdTUZb3GDHzTVJ9uJTHS8K61Ewiy8suGFFCSDtW2gCDNyuDdN6h2azyirwymToRwLtvC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqGGaEenrT1EUa2UuvnHa5X8JoriN9UsAu\",\n \"pubkey\": \"tpubDA9GDAntyJu4SbUWxME4dWXdEJPdExe4CWdvWtSX8nJYmHHr73gidaS2iRczEA5eFrpQMiYW5aR1nvM4n8yeKaUmAk6bNHqUJKJTe45Hct6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqiaipJC9mpiEc1zcZgpeAh2kxwqKM5VuK\",\n \"pubkey\": \"tpubDA9GDAntyJu4LLzArY7p4W5Psgc3Q54kN729wC4gPCdb8SCxbRZb1ydguBwQ3cV6tMMJ3nszVHMN4hetZKGJF3jjmuYRVwiU5fUwzjWrBZK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mrx4RoCq46rBBHFYkgFS6Hw3iPXMHDu9nE\",\n \"pubkey\": \"tpubDA9GDAntyJu4t1vSmYZPkdwrJ8NfWtC7NyMcNgXmyjxLMfhsCBjB6EUuCdUss3yNWuv4u7YapA7qWyrafTgUEyiwzT2co2sNiHkhSUEypNt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"msmn1kKEN6HmodNmKnLzLBtPjisDA5phmo\",\n \"pubkey\": \"tpubDA9GDAntyJu4EmBEGV1icYTZqtPyrctZvQiCqsEgBQmfxU7EJCE7ABR6qUyFwtNbLZUtQf59HXdukcfAPg93Dv4tUMxDBMHfByZdkaVw13q\",\n \"Line truncated
}
]
},
@@ -826,7 +826,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\": \"mqMjLadUVYcKcoUD6bDjtymz3mw5o85a9f\"\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"\n}"
}
]
}
@@ -876,10 +876,10 @@
"examples": [
{
"title": "Delete a blob",
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"f2c7e91c86074ee51fbd5fb7a609baf15237790c286bb57682a30aaff8f635d614c16acbfaa2b63a28f62f10692b6fc4\"}}' http://localhost:5279/",
"lbrynet": "lbrynet blob delete f2c7e91c86074ee51fbd5fb7a609baf15237790c286bb57682a30aaff8f635d614c16acbfaa2b63a28f62f10692b6fc4",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"f2c7e91c86074ee51fbd5fb7a609baf15237790c286bb57682a30aaff8f635d614c16acbfaa2b63a28f62f10692b6fc4\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted f2c7e91c86074ee51fbd5fb7a609baf15237790c286bb57682a30aaff8f635d614c16acbfaa2b63a28f62f10692b6fc4\"\n}"
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"}}' http://localhost:5279/",
"lbrynet": "lbrynet blob delete 6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"\n}"
}
]
},
@@ -957,7 +957,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 \"items\": [\n \"f2c7e91c86074ee51fbd5fb7a609baf15237790c286bb57682a30aaff8f635d614c16acbfaa2b63a28f62f10692b6fc4\",\n \"3fab0258c15b9cacf5f42e3d531d64f0bf50e398903a172ef461b5337cf4b3394e85b5bd00fd044315884a310cbb8c1c\",\n \"4f2f2a425212f91080b92ee4edeac1ac88138133df17419984969791aae9f5ce4640952b41cd27686ed0c6692db77573\",\n \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\",\n \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\n \"eca3c2891d79e0308cff056612218436d43ba092ab9192cb330ad2889befe83739bbb95cf1a294630820aed63d5549f3\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -1038,10 +1038,10 @@
"examples": [
{
"title": "Abandon a channel claim",
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet channel abandon 3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000014f152a43af3447df92b5502f205594b0b27c5c3abe4441fe4e571230b4f719e5000000006a4730440220054c34959eb83de5d08179f34d0e3fc24f8bbe995ec076bff9c494c3f0cc4d520220393d7b25ca273813a4baef15f9f4483e42f48f3f8dcd64ad326686df48d7c6fc01210221ef54d238f749a1d2deb3dd483977d0788ffea39fe7ddb90105a640c8dd5df0ffffffff0134b7f505000000001976a9142d49e03ebc21902a3c69968fc5e9671ef0826ed188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjeRCgGffix8mdBKxWWp1UCeci5fiENzke\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"9d03d5164405955e62c84ae0855bf2f5cebe560f3c881c522ce322d99ab4edfc\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"9d03d5164405955e62c84ae0855bf2f5cebe560f3c881c522ce322d99ab4edfc\"\n }\n}"
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet channel abandon d2d20546efffa072aac98ff68bef731fa4a5033c",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000116d6e6dc76afc50de4e192e7953871085ab2ec8ed69b162979092d0be0bf461c000000006b483045022100844b3699b4e6e021f2dcc9e2ce664f389cf0e5a558d5a78e6810b5941392b94e02207e905551b15cec3f02d491edc5f497023d3cf80f3046d7d3f3ead4fe19ce37a00121029b6c4679721193013688aa73c19b90e16909b8d24da9100f29f838d65655c08affffffff0134b7f505000000001976a9142a95883c8aa85a9b527900dbb02d2fd611cba62b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjQ7onggz8LhWQSE32bqxkuSfkqeHY7MLR\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"be929ade7d63bbaf6279125d8d25e13f230660a509cb07c156b0655edf7a7fd7\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"be929ade7d63bbaf6279125d8d25e13f230660a509cb07c156b0655edf7a7fd7\"\n }\n}"
}
]
},
@@ -1171,14 +1171,14 @@
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": 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\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001004d6230575edb11cc650227154cd6e580a6d9682bf335885f291a7959f083d7010000006b483045022100cd41aa71dc9baaf282518a1a828a8aee40b5240c7c46552bbdc4edbcf0d95a630220641ace025295940d042018e6ddaeac6d630867c886e01ed2f34144438bb752ab01210346a0dc2ed9b6f183df7dcab18a08029e39ab410e90d036b5158e9e17f18349e8ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea006d7576a9148b60feaab143c74c08b53029db8c6de10dedd3c588acc462a029000000001976a9140f5183703edf7ab410e57cf32d5e1b8cf4d0557388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3oWoNoXgKSWq8ksK8iXes7EkQNh9ZiYLb\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400269,\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": null,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mgux5apnZu14xZczXd8XJsCYpfqtyis7fL\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\"\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012909d068bfe8fc0e7d279b91365f023daacf9b452d880ef6b07e9497316e3d4a010000006a47304402202e1762064a69342684908609fcd3101c4b250ec1c4c369c5ef7db1047a83c3c702202515bb37a7c7650f7b3fa3406df786bc201fe6df74d06bbff4b8969bdee064050121021fc1528985689f24e353e9fc2ef99e6e22ad2243a1acae7491ad6f99ceb01ea0ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d6d7576a914ad40409e841ce5f85443a53d0e02bfd62a7308e388acc462a029000000001976a9146c759a0f660a0313b33563fd218c9b92ffe89ce288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzcjMLjnbZKSQoEPS4jgRRYKkbjKhW8HVT\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": null,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\"\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\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": 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\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000014f152a43af3447df92b5502f205594b0b27c5c3abe4441fe4e571230b4f719e5010000006a473044022061d8b7d44cc8d4341f6a6413ec4ab49e1bb255c9c0a89ae878689bdd935c90d20220417383a7e4fcbd344b3db67e8cbb3222a972012c6be5b6de56a07c1656f6b3d2012103d66dfdc764a5619ad0900de587b4e939eaebf57275b4362ce09a6734a2d6499bffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004b43253b247edef2e75be3a1bba5783c4a4bd4369e0952717fbfcc26877ea78dd3f0fd0af0d088b63936595a175ed6645fa6bc58c3cd92f9d592b0ee93323835c121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9141d96781c411576a0ef8098d1ad193cd754462c5088ace221d305000000001976a91479fb112f3ee8ac1754a98f86bdc30ffd6c633b7488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvjpjwcyFwQ9LduzW28nHywqRMzS2H7wnV\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miDQ9Q6oPAYgtjecojcdNBjSZkfb523m2e\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f11f553c0a8d3bb5d341e397570db0325adcf865\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@bigchannel\",\n \"normalized_name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#f11f553c0a8d3bb5d341e397570db0325adcf865\",\n \"timestamp\": null,\n \"txid\": \"40191b15d2bc3eaff9289ebd7bbba0e192a416c3deceb4b1978b19580ef461db\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004b43253b247edef2e75be3a1bba5783c4a4bd4369e0952717fbfcc26877ea78dd3f0fd0af0d088b63936595a175ed6645fa6bc58c3cd92f9d592b0ee93323835c\",\n \"public_key_id\": \"myPsvzUSyDKbmyNh6u97527qikAUz1Crcp\",\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\": \"mrdvpiSawqx4bm35RPdTrHYvN4Eqy7KpXq\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"40191b15d2bc3eaff9289ebd7bbba0e192a416c3deceb4b1978b19580ef461db\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"40191b15d2bc3eaff9289ebd7bbba0e192a416c3deceb4b1978b19580ef461db\"\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000116d6e6dc76afc50de4e192e7953871085ab2ec8ed69b162979092d0be0bf461c010000006b483045022100a62b1cced9232db6de7b02df0a86822cb4a54392de2dab8c175c0a40ead0a99c022011858ab39765e63f9f551eeccc2fe58170015a90184fc21ffe28e3f012eacbfc012102757524ddf4b20a1922ddf784c432811e1e311c74de9001b5bc8e4572d515023affffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200040647b223458b510b83ed4986529d2cd03c92bed3141335da9bbb2923323e4de1cbf1c7631f88d67a228692196e938ad162d7cdc9375b191d930302dfcaabaa79121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a91416cbd5424991484c2cc24be263fd75ad76a9844a88ace221d305000000001976a91472db9e7143421259756ae8319fa6b9b7673a031888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n13fePHYRLqKeShSHCewERSiuzZD7tdik2\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhbVLqp31DR7grGWDSRkKFS9piUBYFgNQz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d102aad90b757be8e87b57d3344d907e467b142e\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@bigchannel\",\n \"normalized_name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#d102aad90b757be8e87b57d3344d907e467b142e\",\n \"timestamp\": null,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\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\": \"3056301006072a8648ce3d020106052b8104000a034200040647b223458b510b83ed4986529d2cd03c92bed3141335da9bbb2923323e4de1cbf1c7631f88d67a228692196e938ad162d7cdc9375b191d930302dfcaabaa79\",\n \"public_key_id\": \"mtrpVR5bLFC4KcJEdmxDrPTdvMFWD5RE8h\",\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\": \"mqzGRK5QPDwsPxKVULzXs4mAmWvBvD5LjJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\"\n }\n}"
}
]
},
@@ -1261,23 +1261,29 @@
"type": "int",
"description": "number of items on page during pagination",
"is_required": false
},
{
"name": "resolve",
"type": "bool",
"description": "resolves each channel to provide additional metadata",
"is_required": false
}
],
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
"examples": [
{
"title": "List your channel claims",
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"resolve\": false}}' 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 \"items\": [\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
},
{
"title": "Paginate your channel claims",
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' 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\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -1434,10 +1440,10 @@
"examples": [
{
"title": "Update a channel claim",
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet channel update 3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7 --title=\"New Channel\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000027ae11f08d3bfe1d7aa0c030140a5f661267784bacf26ad94fc4d59b0c73b90b6000000006b483045022100aa830c924d60c7891fa07bf8c113f495da6d9fc4518a187811f7899d6425c18e02203f40187984b2c36ac131c0bb0d6a6dd564a815eaffc897aa30b8938a7c28d25601210221ef54d238f749a1d2deb3dd483977d0788ffea39fe7ddb90105a640c8dd5df0fffffffffeb30066acb17847924efc3f9eb446403af103c7d72016dcf9b1f5ceedd956e3000000006b483045022100aa318cb4c5640147c9c5263f33632def50caae65e2100e159f8b8a8640ae07ab02204c9a430ca449040d3f318dd4a90931c730a96926baffdb09a63acfec3a3675510121024827cb142e9a1b919e8a5e27cb9bad94c8455254bb8ca8ff1b267f2bed67bd20ffffffff0200e1f50500000000a6b708406368616e6e656c14c7482562bfe65919bd8f74f3c067fbf4f62cd43f4c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00420b4e6577204368616e6e656c6d6d76a9148b60feaab143c74c08b53029db8c6de10dedd3c588ac6ebeea0b000000001976a914a6f8fd2194ac23e5ea3b611a9ff14ed34c5b3c0d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mjGLQViMN89giFBMxP4E8VAMUcbxyjywk7\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1579400269,\n \"txid\": \"e356d9edcef5b1f9dc1620d7c703f13a4046b49e3ffc4e924778b1ac6600b3fe\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": null,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvjpjwcyFwQ9LduzW28nHywqRMzS2H7wnV\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\"\n }\n}"
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet channel update d2d20546efffa072aac98ff68bef731fa4a5033c --title=\"New Channel\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000021dbc7587c97b46153892c15f248d25413172d3a4ea894dd46513e47a7b271aa5000000006b483045022100a192d96ac996ce5ed4d5b869e56df30f3a428175cc48ad55368638644fb60f3c02202dbef185e4d5bd048a9b98ff888247b0aac460a5afd6a83b89e20e41723a00990121029b6c4679721193013688aa73c19b90e16909b8d24da9100f29f838d65655c08affffffffa299f665c3158a8b4d47fe8504546a0fbe82efc5201a7bc96eb84f688e4f1ebe000000006b4830450221008097ffa8618cda879b5d2392e07f850e205a8cb3e12fccc79d5a2b863faf98a9022034f3ed884eca0a8310361cd6a77e4a310dc0483791f2814451cb6e3e8d20463c012102b59e1bf2c6be018751c862d0f6d8ce655e889827011701459119da328e50adcbffffffff0200e1f50500000000a6b708406368616e6e656c143c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d24c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d420b4e6577204368616e6e656c6d6d76a914ad40409e841ce5f85443a53d0e02bfd62a7308e388ac6ebeea0b000000001976a914d63962ed513ccf90c31d0d64b5e468a7bff4dcbf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": null,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n13fePHYRLqKeShSHCewERSiuzZD7tdik2\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\"\n }\n}"
}
]
}
@@ -1479,23 +1485,29 @@
"type": "int",
"description": "number of items on page during pagination",
"is_required": false
},
{
"name": "resolve",
"type": "bool",
"description": "resolves each claim to provide additional metadata",
"is_required": false
}
],
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
"examples": [
{
"title": "List all your claims",
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"resolve\": false}}' 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 \"items\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
},
{
"title": "Paginate your claims",
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' 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\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -1713,6 +1725,12 @@
"description": "content download fee (supports equality constraints)",
"is_required": false
},
{
"name": "duration",
"type": "int",
"description": "duration of video or audio in seconds (supports equality constraints)",
"is_required": false
},
{
"name": "any_tags",
"type": "list",
@@ -1805,14 +1823,14 @@
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet claim search --channel=@channel",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#b\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1579400270,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"short_url\": \"lbry://astream#b\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1579400269,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": {},\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
},
{
"title": "Search for claims matching a name",
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet claim search --name=\"astream\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#b\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1579400270,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"short_url\": \"lbry://astream#b\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1579400269,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": {},\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
}
@@ -2223,9 +2241,9 @@
"examples": [
{
"title": "Abandon a comment",
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\"}}' http://localhost:5279/",
"lbrynet": "lbrynet comment abandon 71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\"}}).json()",
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}' http://localhost:5279/",
"lbrynet": "lbrynet comment abandon 453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"abandoned\": false\n }\n}"
}
]
@@ -2281,17 +2299,17 @@
"examples": [
{
"title": "Posting a comment as your channel",
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=bfdbf31b0af4091febc7cd1a2945ea5fa93f0711",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"0d89339695ee2cf301fd7224d6c313d2c226887e3ffd42c96d9f25185b8c54bbba65d311f20416502b808542a9d88e0568c386e93e8ae607d1f283cca7f26580\",\n \"signing_ts\": \"1579400249\",\n \"timestamp\": 1579400250\n }\n}"
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=f074539771eba8eb1229e5e128825261bcdc2967",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n }\n}"
},
{
"title": "You can r",
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --parent_id=71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"06b54746ce74e42aa7760ce9d3b609b5ab30a4b59f0e3eb2c67cdc00eba7d7e0\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\",\n \"signature\": \"d45617c4ab93c956c50454e0bad50e3006813d6ebe5693647f0f2f9a23aff7576b90bb08844f314bd92ce36d98c677c58c263b9b8f9c5d6d3cdae14d89af396d\",\n \"signing_ts\": \"1579400250\",\n \"timestamp\": 1579400251\n }\n}"
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --parent_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"7879ce7b82a1621f39302553426f48a371782ae6735c299de372c3c0d3eff81c\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"signature\": \"723ea0a3c56b827afd173f7c77c2d9d0c8fb13c2f1463336c2f3631cdbd28bb8019c09757b763e7c549d04e263b5395508c5d39e56a36bdb3c15b55857d6a311\",\n \"signing_ts\": \"1580597978\",\n \"timestamp\": 1580597978\n }\n}"
}
]
},
@@ -2372,17 +2390,17 @@
"examples": [
{
"title": "List all comments on a claim",
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet comment list bfdbf31b0af4091febc7cd1a2945ea5fa93f0711 --include_replies",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"06b54746ce74e42aa7760ce9d3b609b5ab30a4b59f0e3eb2c67cdc00eba7d7e0\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\",\n \"signature\": \"d45617c4ab93c956c50454e0bad50e3006813d6ebe5693647f0f2f9a23aff7576b90bb08844f314bd92ce36d98c677c58c263b9b8f9c5d6d3cdae14d89af396d\",\n \"signing_ts\": \"1579400250\",\n \"timestamp\": 1579400251\n },\n {\n \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"0d89339695ee2cf301fd7224d6c313d2c226887e3ffd42c96d9f25185b8c54bbba65d311f20416502b808542a9d88e0568c386e93e8ae607d1f283cca7f26580\",\n \"signing_ts\": \"1579400249\",\n \"timestamp\": 1579400250\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet comment list f074539771eba8eb1229e5e128825261bcdc2967 --include_replies",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n },\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"7879ce7b82a1621f39302553426f48a371782ae6735c299de372c3c0d3eff81c\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"signature\": \"723ea0a3c56b827afd173f7c77c2d9d0c8fb13c2f1463336c2f3631cdbd28bb8019c09757b763e7c549d04e263b5395508c5d39e56a36bdb3c15b55857d6a311\",\n \"signing_ts\": \"1580597978\",\n \"timestamp\": 1580597978\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
},
{
"title": "List a comment thread replying to a top level comment",
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet comment list bfdbf31b0af4091febc7cd1a2945ea5fa93f0711 --parent_id=71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"parent_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"0d89339695ee2cf301fd7224d6c313d2c226887e3ffd42c96d9f25185b8c54bbba65d311f20416502b808542a9d88e0568c386e93e8ae607d1f283cca7f26580\",\n \"signing_ts\": \"1579400249\",\n \"timestamp\": 1579400250\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet comment list f074539771eba8eb1229e5e128825261bcdc2967 --parent_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -2413,9 +2431,9 @@
"examples": [
{
"title": "Edit the contents of a comment",
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\"}}' http://localhost:5279/",
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"71e2866380adfc3595879353a57608e2b4dcda36bf311b102265bbca5b8f37d1\"}}).json()",
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}' http://localhost:5279/",
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": null\n}"
}
]
@@ -2506,9 +2524,9 @@
"examples": [
{
"title": "Delete a file",
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"}}' http://localhost:5279/",
"lbrynet": "lbrynet file delete --claim_id=\"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"}}).json()",
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\"}}' http://localhost:5279/",
"lbrynet": "lbrynet file delete --claim_id=\"f074539771eba8eb1229e5e128825261bcdc2967\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
}
]
@@ -2639,14 +2657,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 \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"b7d93a1d57d3e61812c674a34a4f3961\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c7482562bfe65919bd8f74f3c067fbf4f62cd43fa5f4d8ab7ca870112e7310d70d239ea4d507688327acf4b80eb68fc7a5138726aa8bcd6a61c926732b2f5edf6c36fb5977cbb0c0b36e08980a78166af7fbb9660a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"c0a2bb6f6e97c10717c53e24d8057cafbdc095b9a9f6f78d2bab385a38dcfd226f9731c2dee9eba3463d73bacbc41e94\",\n \"stream_name\": \"tmppsu__ylo\",\n \"streaming_url\": \"http://localhost:5280/stream/a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"suggested_file_name\": \"tmppsu__ylo\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1473978f00fed53c4b18ddf24b9990a954eb4b00\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"134f4e871ad788d059bc8e2b3fe31ebf\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mggQVVstsxpesZJrF3TefabV5ZQ2pp9rBD\",\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\": \"1579400247\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpsyd4i3_g.png\",\n \"sd_hash\": \"4f2f2a425212f91080b92ee4edeac1ac88138133df17419984969791aae9f5ce4640952b41cd27686ed0c6692db77573\",\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\": \"876dfa2980a40763b4e5f9d49aedb205a8c312267ba3fb26Line truncated
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"5562eb5ea21493a3bfb29ce6cde063b3\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\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\": \"1580597975\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp8bpmcxdk.png\",\n \"sd_hash\": \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\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\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a4Line truncated
},
{
"title": "List files matching a parameter",
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"reverse\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet file list --claim_id=\"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"reverse\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"b7d93a1d57d3e61812c674a34a4f3961\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c7482562bfe65919bd8f74f3c067fbf4f62cd43fa5f4d8ab7ca870112e7310d70d239ea4d507688327acf4b80eb68fc7a5138726aa8bcd6a61c926732b2f5edf6c36fb5977cbb0c0b36e08980a78166af7fbb9660a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"c0a2bb6f6e97c10717c53e24d8057cafbdc095b9a9f6f78d2bab385a38dcfd226f9731c2dee9eba3463d73bacbc41e94\",\n \"stream_name\": \"tmppsu__ylo\",\n \"streaming_url\": \"http://localhost:5280/stream/a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"suggested_file_name\": \"tmppsu__ylo\",\n \"timestamp\": 1579400270,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"reverse\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet file list --claim_id=\"f074539771eba8eb1229e5e128825261bcdc2967\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"reverse\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -2763,10 +2781,10 @@
"examples": [
{
"title": "Save a file to the downloads directory",
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\"}}' http://localhost:5279/",
"lbrynet": "lbrynet file save --sd_hash=\"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1579400254,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp1ozq8ity\",\n \"download_path\": \"/tmp/tmp1ozq8ity/tmppsu__ylo_1\",\n \"file_name\": \"tmppsu__ylo_1\",\n \"height\": 214,\n \"key\": \"b7d93a1d57d3e61812c674a34a4f3961\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c7482562bfe65919bd8f74f3c067fbf4f62cd43fa5f4d8ab7ca870112e7310d70d239ea4d507688327acf4b80eb68fc7a5138726aa8bcd6a61c926732b2f5edf6c36fb5977cbb0c0b36e08980a78166af7fbb9660a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"c0a2bb6f6e97c10717c53e24d8057cafbdc095b9a9f6f78d2bab385a38dcfd226f9731c2dee9eba3463d73bacbc41e94\",\n \"stream_name\": \"tmppsu__ylo\",\n \"streaming_url\": \"http://localhost:5280/stream/a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"suggested_file_name\": \"tmppsu__ylo\",\n \"timestamp\": 1579400270,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"written_bytes\": 11\n }\n}"
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"}}' http://localhost:5279/",
"lbrynet": "lbrynet file save --sd_hash=\"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1580597981,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp6rn9873y\",\n \"download_path\": \"/tmp/tmp6rn9873y/tmpl4cl26p7_1\",\n \"file_name\": \"tmpl4cl26p7_1\",\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 11\n }\n}"
}
]
},
@@ -3047,7 +3065,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 \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/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/tmp1ozq8ity\",\n \"download_dir\": \"/tmp/tmp1ozq8ity\",\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\": 4,\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\": 3.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 \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmp1ozq8ity\",\n \"wallets\": [\n \"default_wallet\"\n ]\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 \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/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/tmp6rn9873y\",\n \"download_dir\": \"/tmp/tmp6rn9873y\",\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\": 4,\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\": 3.0,\n \"prometheus_port\": 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 \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmp6rn9873y\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
}
]
},
@@ -3122,10 +3140,10 @@
"examples": [
{
"title": "Abandon a stream claim",
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream abandon bfdbf31b0af4091febc7cd1a2945ea5fa93f0711",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001500433ee87ae4b6f16240b7f2b5b43834ac32c9b49fc8250a67d62fa3f1f705d000000006a47304402202e9ade76631162d8694ca7f67a1ac7e255e3e65eb290b8847b4bdba1d0a9a3b1022025aed44a70e2ba5a59713213fa566507deca483483f9d14444167bfe9231ea3501210249220d8b62e50bc2554469a35becdb252fc98336058afafbb2bf0b1ea8926200ffffffff0134b7f505000000001976a91428f1254f7d792510b4c745109d84b09d9ec35fd288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjFSCpwDqXiDrwroNTLwTnkfqT8U3p9Y9x\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"34804102d654b8d05953b4bd81b3023f384352e9b62d2b858ad259ac7b67839b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"34804102d654b8d05953b4bd81b3023f384352e9b62d2b858ad259ac7b67839b\"\n }\n}"
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream abandon f074539771eba8eb1229e5e128825261bcdc2967",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001835dc108b73c9da330e94a6a67ff486c148e749418e86dab9a0beb408fedc94a000000006946304302206ffe396a47ddea4373bef3747365cbdc62fa338f8d244b9b30a62d88ced87deb021f1fc7d0ff88738afed86b5069f4c832f72d2237c649b7f4b15c9c22f5524d3201210335f18e49fad8c76929b8055cb9799c68f96d8d9d73702b3daf4bbebb5d86e6f4ffffffff0134b7f505000000001976a9147d66f90dc0349d3e7eca12fa1f0f4a946df2f3f588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrx27iJkBYSk4Xo1NoJA4zPBpaiEZqz2JN\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"68626c58b20caac03f6e2b8441e4fc359e83cb91d2010241eaea2777de834a1a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"68626c58b20caac03f6e2b8441e4fc359e83cb91d2010241eaea2777de834a1a\"\n }\n}"
}
]
},
@@ -3326,17 +3344,17 @@
"examples": [
{
"title": "Create a stream claim without metadata",
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmppsu__ylo\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmppsu__ylo",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmppsu__ylo\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017ae11f08d3bfe1d7aa0c030140a5f661267784bacf26ad94fc4d59b0c73b90b6010000006a47304402200b9d3230d5fefcc25c25ed698f4ff07756c4b68ca4eb1e2b0e375d7ff218367302205cbe18806f1c2048f5189080acd5693f36e2770f87c47b3dd182a5217852c6350121032f98a457e4b23c99b3ecf17dc0ca3fb088400c0bd818f93c9e27eb2b3e5db4efffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b6d7576a9143ce13aed49065382390a945c0ffaa39f10401a4888ac38fb9423000000001976a91446cd176a3f02ed515c9c47d4554d80091f0fe16688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgux5apnZu14xZczXd8XJsCYpfqtyis7fL\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400269,\n \"txid\": \"b6903bc7b0594dfc94ad26cfba84772661f6a54001030caad7e1bfd3081fe17a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"timestamp\": null,\n \"txid\": \"960cfa157e4279343626da119b389f16dc11d9f5cd70b4333305348d8dabd50d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mmyKHVCN9y2Ld4bstWW7jMBrUzd1eYuLu9\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"960cfa157e4279343626da119b389f16dc11d9f5cd70b4333305348d8dabd50d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"960cfa157e4279343626da119b389f16dc11d9f5cd70b4333305348d8dabd50d\"\n }\n}"
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpl4cl26p7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpl4cl26p7",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpl4cl26p7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011dbc7587c97b46153892c15f248d25413172d3a4ea894dd46513e47a7b271aa5010000006b48304502210086f1c70704ec25faaf7c8731116dd20bf1e848be8d283fa8aaf176b99a19535e02204ec8c5418b4156b6c808982cc00df29b130d01a68137cd7103857baee486e1e7012102b59e1bf2c6be018751c862d0f6d8ce655e889827011701459119da328e50adcbffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c686d7576a914d2daab6118ae9fb65a1ed9114a4abb901edd0bfa88ac38fb9423000000001976a9140b5216b93e93f3a9a31c070d13c54585775f57b788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": null,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgYp4nrnKtAfJFHFzve9Fi2vaSgrd68zKh\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\"\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/tmpsyd4i3_g.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1579400247, \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpsyd4i3_g.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=1579400247 --channel_id=\"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpsyd4i3_g.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1579400247, \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010dd5ab8d8d34053333b470cdf5d911dc169f389b11da26363479427e15fa0c96010000006b4830450221008b3a286c9c6ecb9f14c875c33b4eb1a8cf64478dfe564f0d95082a61488af3040220363afe6e832f5bb6f6ebaaafb710bc560cce9ae8aa7b1f7b13e71e09512a15220121032b0568f9ad906425aaa666aa33b367304fc1f1f452bbfd878501e78b0279136affffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101c7482562bfe65919bd8f74f3c067fbf4f62cd43f9bf76a5a0c03757ca393073f855ffbebc226220c971a2a940b7bd16a67c5a6a84b0634c03adfee9c0f9011a1f13f98312e70b5eaa2ecd1e75d1e4ee6043eea0b0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d707379643469335f672e706e6718632209696d6167652f706e6732304f2f2a425212f91080b92ee4edeac1ac88138133df17419984969791aae9f5ce4640952b41cd27686ed0c6692db77573120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728b7f88ef1053222080112196f0cc1bce498b9f602f5a0553a8398c62884f7ba8cc916c584188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9140cc1bce498b9f602f5a0553a8398c62884f7ba8c88acac5e7d1d000000001976a914696273c68ecdd2f6919f1294253cd6a10f48b3a288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mmyKHVCN9y2Ld4bstWW7jMBrUzd1eYuLu9\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400270,\n \"txid\": \"960cfa157e4279343626da119b389f16dc11d9f5cd70b4333305348d8dabd50d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mggQVVstsxpesZJrF3TefabV5ZQ2pp9rBD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1473978f00fed53c4b18ddf24b9990a954eb4b00\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"blank-image\",\n \"normalized_name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#1473978f00fed53c4b18ddf24b9990a954eb4b00\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"876dfa2980a40763b4e5f9d49aedb205a8c312267ba3fb26f387e3fd885ce867\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mggQVVstsxpesZJrF3TefabV5ZQ2pp9rBD\",\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\": \"1579400247\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpsyd4i3_g.png\",\n \"sd_hash\": \"4f2f2a425212f91080b92ee4edeac1ac88138133df17419984969791aae9f5ce4640952b41cd27686ed0c6692db77573\",\n \"size\": \"99\"\n },\n \"strLine truncated
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8bpmcxdk.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1580597975, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp8bpmcxdk.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=1580597975 --channel_id=\"d2d20546efffa072aac98ff68bef731fa4a5033c\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8bpmcxdk.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1580597975, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001f0e855be533ce700b2d9b57c474ef7dc539c167530ab414250862ea874041c43010000006b483045022100c9244cdb45477683823b8377dca2aabacbfac0366e96190e9a18058eab65cec90220043375d6419581f5eb3b67366532e853b83c866520da484c377092e259edec8f01210239101e0fa66ed3f3cbd41db358a777f12eee87f592ec76aca9879b1e3419b076ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db101013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d2cebe33ca8a457d2f9dd5b701084ece71f14e1f20e3ff0886bff97d9c2fe2c904c37f6e2fa0ab65ae27a3a20fee4df0994bb500579e0ee7f735a5f3f289d694820ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d703862706d6378646b2e706e6718632209696d6167652f706e673230f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728d785d8f1053222080112196f43d6092c2f5a569b1929c0388ac8b3575f0009f589060d6d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a91443d6092c2f5a569b1929c0388ac8b3575f0009f588acac5e7d1d000000001976a914dc724d3403482945fb46841164014e01884490db88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgYp4nrnKtAfJFHFzve9Fi2vaSgrd68zKh\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580598000,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"blank-image\",\n \"normalized_name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a440bafb10890e87a4\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\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\": \"1580597975\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp8bpmcxdk.png\",\n \"sd_hash\": \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\n \"size\": \"99\"\n },\n \"strLine truncated
}
]
},
@@ -3367,23 +3385,29 @@
"type": "int",
"description": "number of items on page during pagination",
"is_required": false
},
{
"name": "resolve",
"type": "bool",
"description": "resolves each stream to provide additional metadata",
"is_required": false
}
],
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
"examples": [
{
"title": "List all your stream claims",
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"resolve\": false}}' 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 \"items\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
},
{
"title": "Paginate your stream claims",
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' 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\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1579400270,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\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 \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
}
]
},
@@ -3704,10 +3728,10 @@
"examples": [
{
"title": "Update a stream claim to add channel",
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream update bfdbf31b0af4091febc7cd1a2945ea5fa93f0711 --channel_id=\"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000020dd5ab8d8d34053333b470cdf5d911dc169f389b11da26363479427e15fa0c96000000006a47304402201177d3c1018a1ba4cacbe12f5b353882321af4a3ec110d5d32c80cd53363fa0702206b779bade0fb1c80ba914bed41b2174a9d8f00e37856aadb5c5661903b58d5ab01210249220d8b62e50bc2554469a35becdb252fc98336058afafbb2bf0b1ea8926200ffffffffdb61f40e58198b97b1b4cedec316a492e1a0bb7bbd9e28f9af3ebcd2151b1940010000006b483045022100bc62bc7cfe201921998f2019d3702034bc011bcf9f7e1f9de2027924fae8f5f6022023b452c8687b8ce07168b8befb6f1ad1f008445a1b7e1db0d94499283c4a0183012103982c03f90e7196836e8033ce0f70e3a394829b9a14f057fb3c60776bdfef60c2ffffffff0200e1f50500000000fd2301b7076173747265616d1411073fa95fea45291acdc7eb1f09f40a1bf3dbbf4ce801c7482562bfe65919bd8f74f3c067fbf4f62cd43fa5f4d8ab7ca870112e7310d70d239ea4d507688327acf4b80eb68fc7a5138726aa8bcd6a61c926732b2f5edf6c36fb5977cbb0c0b36e08980a78166af7fbb9660a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707073755f5f796c6f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b6d6d76a9143ce13aed49065382390a945c0ffaa39f10401a4888ac32a0d205000000001976a914af3f9b41e32d887a1a3b04d532bf4c260b5b535488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"timestamp\": 1579400270,\n \"txid\": \"960cfa157e4279343626da119b389f16dc11d9f5cd70b4333305348d8dabd50d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppsu__ylo\",\n \"sd_hash\": \"a40fb1a597f6933a1d60bd8f461a109a4e50247a5aea4709d20ef75b2e3da600632621b9d463fa9f9b6ce3ffbc3ebc3b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mrdvpiSawqx4bm35RPdTrHYvN4Eqy7KpXq\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1579400269,\n \"txid\": \"40191b15d2bc3eaff9289ebd7bbba0e192a416c3deceb4b1978b19580ef461db\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mm4reqApxMGhBDpeWEVfhAeCWGrtkMpn9r\",\n \"amount\": \"1.0\",\n \"claim_id\": \"bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#bfdbf31b0af4091febc7cd1a2945ea5fa93f0711\",\n \"signing_channel\": {\n \"address\": \"mtDvR2y9mdUW6zGkoKbDrnEFjDv3zjYbUD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#3fd42cf6f4fb67c0f3748fbd1959e6bf622548c7\",\n \"timestamp\": 1579400269,\n \"txid\": \"e519f7b43012574efe4144be3a5c7cb2b09455202f50b592df4734af432a154f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000457b1f020041b2ad401abb5135e306ea03ee4353f7da63b98cb81fdeee3fa0fcf768cce00a36cb3f72ecb16af6b1606f7f8a303b7a6892e93e1946122cbf6ea00\",\n \"public_key_id\": \"mrW9NiUf9kwrAghgoSb13EViJDjzEs1NXk\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"5d701f3ffa627da65082fc499b2cc34a83435b2b7f0b24166f4bae87ee330450\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n Line truncated
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
"lbrynet": "lbrynet stream update f074539771eba8eb1229e5e128825261bcdc2967 --channel_id=\"d2d20546efffa072aac98ff68bef731fa4a5033c\"",
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002f0e855be533ce700b2d9b57c474ef7dc539c167530ab414250862ea874041c43000000006a47304402203d73a658bc979ffdc9a4c18dedb76b3ae1114ee37dd6a4cb7cab131dc09c790a02206591bbb9e4404fc2f200330876154ba6bd68588896934b79176b2d1fb1438d2c01210335f18e49fad8c76929b8055cb9799c68f96d8d9d73702b3daf4bbebb5d86e6f4ffffffff530f726f7d6304a6a0854c88ab239ac08e6389139f6d1fbdb820f2517d85bd08010000006a4730440220523a8fee6340f312226812eae589ae58738a90e0292873d4052fef61cebaaa100220495fef600fa22d5440498c4bbac06ba758f59ad973e01f3476631eeefcb6af6c012102a17b82a91f6dd05e1f59b7d253ed759f2b1700a257a6c5fb316548d8db79aac8ffffffff0200e1f50500000000fd2301b7076173747265616d146729dcbc61528228e1e52912eba8eb71975374f04ce8013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c686d6d76a914d2daab6118ae9fb65a1ed9114a4abb901edd0bfa88ac32a0d205000000001976a9143cb56178d13d6f05c8b52a3958b8f9d5b10eb9e588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": 1580598000,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqzGRK5QPDwsPxKVULzXs4mAmWvBvD5LjJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n Line truncated
}
]
}
@@ -3952,7 +3976,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 \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2020-01-18 21:17\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1579400269,\n \"txid\": \"d783f059791a295f8835f32b68d9a680e5d64c15270265cc11db5e5730624d00\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2020-01-18 21:17\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1579400268,\n \"txid\": \"da1b345be92a2ff0465d13422e8957ef57efd59b7cd33e743282c8036b99b832\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2020-02-01 17:59\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2020-02-01 17:59\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1580597998,\n \"txid\": \"9753e8bdb1d516ecdc02be6b11667d007a60fe1aabe59807ce368b5b29f62403\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
}
]
},
+1 -1
View File
@@ -1,2 +1,2 @@
__version__ = "0.54.1"
__version__ = "0.57.0"
version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name
+6 -5
View File
@@ -51,11 +51,12 @@ Code | Name | Message
405 | ChannelKeyNotFound | Channel signing key not found.
406 | ChannelKeyInvalid | Channel signing key is out of date. -- For example, channel was updated but you don't have the updated key.
407 | DataDownload | Failed to download blob. *generic*
408 | Resolve | Failed to resolve '{url}'.
409 | ResolveTimeout | Failed to resolve '{url}' within the timeout.
410 | KeyFeeAboveMaxAllowed | {message}
411 | InvalidPassword | Password is invalid.
412 | IncompatibleWalletServer | '{server}:{port}' has an incompatibly old version.
410 | Resolve | Failed to resolve '{url}'.
411 | ResolveTimeout | Failed to resolve '{url}' within the timeout.
411 | ResolveCensored | Resolve of '{url}' was censored by channel with claim id '{censor_id}'.
420 | KeyFeeAboveMaxAllowed | {message}
421 | InvalidPassword | Password is invalid.
422 | IncompatibleWalletServer | '{server}:{port}' has an incompatibly old version.
**5xx** | Blob | **Blobs**
500 | BlobNotFound | Blob not found.
501 | BlobPermissionDenied | Permission denied to read blob.
+6
View File
@@ -197,6 +197,12 @@ class ResolveTimeoutError(WalletError):
super().__init__(f"Failed to resolve '{url}' within the timeout.")
class ResolveCensoredError(WalletError):
def __init__(self, url, censor_id):
super().__init__(f"Resolve of '{url}' was censored by channel with claim id '{censor_id}'.")
class KeyFeeAboveMaxAllowedError(WalletError):
def __init__(self, message):
+1 -1
View File
@@ -50,7 +50,7 @@ class ErrorClass:
def get_arguments(self):
args = ['self']
for arg in re.findall('{([a-z0-1]+)}', self.message):
for arg in re.findall('{([a-z0-1_]+)}', self.message):
args.append(arg)
return args
+16 -8
View File
@@ -2144,7 +2144,8 @@ class Daemon(metaclass=JSONRPCServerType):
"""
@requires(WALLET_COMPONENT)
def jsonrpc_claim_list(self, claim_type=None, account_id=None, wallet_id=None, page=None, page_size=None):
def jsonrpc_claim_list(
self, claim_type=None, account_id=None, wallet_id=None, page=None, page_size=None, resolve=False):
"""
List my stream and channel claims.
@@ -2152,6 +2153,7 @@ class Daemon(metaclass=JSONRPCServerType):
claim_list [--claim_type=<claim_type>]
[--account_id=<account_id>] [--wallet_id=<wallet_id>]
[--page=<page>] [--page_size=<page_size>]
[--resolve]
Options:
--claim_type=<claim_type> : (str) claim type: channel, stream, repost, collection
@@ -2159,6 +2161,7 @@ class Daemon(metaclass=JSONRPCServerType):
--wallet_id=<wallet_id> : (str) restrict results to specific wallet
--page=<page> : (int) page to return during paginating
--page_size=<page_size> : (int) number of items on page during pagination
--resolve : (bool) resolves each claim to provide additional metadata
Returns: {Paginated[Output]}
"""
@@ -2170,7 +2173,7 @@ class Daemon(metaclass=JSONRPCServerType):
else:
claims = partial(self.ledger.get_claims, wallet=wallet, accounts=wallet.accounts)
claim_count = partial(self.ledger.get_claim_count, wallet=wallet, accounts=wallet.accounts)
return paginate_rows(claims, claim_count, page, page_size, claim_type=claim_type)
return paginate_rows(claims, claim_count, page, page_size, claim_type=claim_type, resolve=resolve)
@requires(WALLET_COMPONENT)
async def jsonrpc_claim_search(self, **kwargs):
@@ -2198,6 +2201,7 @@ class Daemon(metaclass=JSONRPCServerType):
[--reposted_claim_id=<reposted_claim_id>] [--reposted=<reposted>]
[--claim_type=<claim_type>] [--stream_types=<stream_types>...] [--media_types=<media_types>...]
[--fee_currency=<fee_currency>] [--fee_amount=<fee_amount>]
[--duration=<duration>]
[--any_tags=<any_tags>...] [--all_tags=<all_tags>...] [--not_tags=<not_tags>...]
[--any_languages=<any_languages>...] [--all_languages=<all_languages>...]
[--not_languages=<not_languages>...]
@@ -2284,6 +2288,8 @@ class Daemon(metaclass=JSONRPCServerType):
--media_types=<media_types> : (list) filter by 'video/mp4', 'image/png', etc
--fee_currency=<fee_currency> : (string) specify fee currency: LBC, BTC, USD
--fee_amount=<fee_amount> : (decimal) content download fee (supports equality constraints)
--duration=<duration> : (int) duration of video or audio in seconds
(supports equality constraints)
--any_tags=<any_tags> : (list) find claims containing any of the tags
--all_tags=<all_tags> : (list) find claims containing every tag
--not_tags=<not_tags> : (list) find claims not containing any of these tags
@@ -2670,19 +2676,20 @@ class Daemon(metaclass=JSONRPCServerType):
return tx
@requires(WALLET_COMPONENT)
def jsonrpc_channel_list(self, account_id=None, wallet_id=None, page=None, page_size=None):
def jsonrpc_channel_list(self, account_id=None, wallet_id=None, page=None, page_size=None, resolve=False):
"""
List my channel claims.
Usage:
channel_list [<account_id> | --account_id=<account_id>] [--wallet_id=<wallet_id>]
[--page=<page>] [--page_size=<page_size>]
[--page=<page>] [--page_size=<page_size>] [--resolve]
Options:
--account_id=<account_id> : (str) id of the account to use
--wallet_id=<wallet_id> : (str) restrict results to specific wallet
--page=<page> : (int) page to return during paginating
--page_size=<page_size> : (int) number of items on page during pagination
--resolve : (bool) resolves each channel to provide additional metadata
Returns: {Paginated[Output]}
"""
@@ -2694,7 +2701,7 @@ class Daemon(metaclass=JSONRPCServerType):
else:
channels = partial(self.ledger.get_channels, wallet=wallet, accounts=wallet.accounts)
channel_count = partial(self.ledger.get_channel_count, wallet=wallet, accounts=wallet.accounts)
return paginate_rows(channels, channel_count, page, page_size)
return paginate_rows(channels, channel_count, page, page_size, resolve=resolve)
@requires(WALLET_COMPONENT)
async def jsonrpc_channel_export(self, channel_id=None, channel_name=None, account_id=None, wallet_id=None):
@@ -3397,19 +3404,20 @@ class Daemon(metaclass=JSONRPCServerType):
return tx
@requires(WALLET_COMPONENT)
def jsonrpc_stream_list(self, account_id=None, wallet_id=None, page=None, page_size=None):
def jsonrpc_stream_list(self, account_id=None, wallet_id=None, page=None, page_size=None, resolve=False):
"""
List my stream claims.
Usage:
stream_list [<account_id> | --account_id=<account_id>] [--wallet_id=<wallet_id>]
[--page=<page>] [--page_size=<page_size>]
[--page=<page>] [--page_size=<page_size>] [--resolve]
Options:
--account_id=<account_id> : (str) id of the account to query
--wallet_id=<wallet_id> : (str) restrict results to specific wallet
--page=<page> : (int) page to return during paginating
--page_size=<page_size> : (int) number of items on page during pagination
--resolve : (bool) resolves each stream to provide additional metadata
Returns: {Paginated[Output]}
"""
@@ -3421,7 +3429,7 @@ class Daemon(metaclass=JSONRPCServerType):
else:
streams = partial(self.ledger.get_streams, wallet=wallet, accounts=wallet.accounts)
stream_count = partial(self.ledger.get_stream_count, wallet=wallet, accounts=wallet.accounts)
return paginate_rows(streams, stream_count, page, page_size)
return paginate_rows(streams, stream_count, page, page_size, resolve=resolve)
@requires(WALLET_COMPONENT, EXCHANGE_RATE_MANAGER_COMPONENT, BLOB_COMPONENT,
DHT_COMPONENT, DATABASE_COMPONENT)
+16 -3
View File
@@ -4,7 +4,13 @@ from typing import List
from binascii import hexlify
from itertools import chain
from lbry.error import ResolveCensoredError
from lbry.schema.types.v2.result_pb2 import Outputs as OutputsMessage
from lbry.schema.types.v2.result_pb2 import Error as ErrorMessage
INVALID = ErrorMessage.Code.Name(ErrorMessage.INVALID)
NOT_FOUND = ErrorMessage.Code.Name(ErrorMessage.NOT_FOUND)
BLOCKED = ErrorMessage.Code.Name(ErrorMessage.BLOCKED)
class Censor:
@@ -73,7 +79,12 @@ class Outputs:
def message_to_txo(self, txo_message, tx_map):
if txo_message.WhichOneof('meta') == 'error':
return None
return {
'error': {
'name': txo_message.error.Code.Name(txo_message.error.code).lower(),
'text': txo_message.error.text,
}
}
txo = tx_map[txo_message.tx_hash].outputs[txo_message.nout]
if txo_message.WhichOneof('meta') == 'claim':
claim = txo_message.claim
@@ -146,9 +157,11 @@ class Outputs:
if isinstance(txo, Exception):
txo_message.error.text = txo.args[0]
if isinstance(txo, ValueError):
txo_message.error.code = txo_message.error.INVALID
txo_message.error.code = ErrorMessage.INVALID
elif isinstance(txo, LookupError):
txo_message.error.code = txo_message.error.NOT_FOUND
txo_message.error.code = ErrorMessage.NOT_FOUND
elif isinstance(txo, ResolveCensoredError):
txo_message.error.code = ErrorMessage.BLOCKED
return
txo_message.tx_hash = txo['txo_hash'][:32]
txo_message.nout, = struct.unpack('<I', txo['txo_hash'][32:])
+6
View File
@@ -555,6 +555,12 @@ class CommandTestCase(IntegrationTestCase):
async def claim_list(self, *args, **kwargs):
return (await self.out(self.daemon.jsonrpc_claim_list(*args, **kwargs)))['items']
async def stream_list(self, *args, **kwargs):
return (await self.out(self.daemon.jsonrpc_stream_list(*args, **kwargs)))['items']
async def channel_list(self, *args, **kwargs):
return (await self.out(self.daemon.jsonrpc_channel_list(*args, **kwargs)))['items']
@staticmethod
def get_claim_id(tx):
return tx['outputs'][0]['claim_id']
+1
View File
@@ -631,6 +631,7 @@ class Database(SQLiteMixin):
return txos
async def get_txo_count(self, **constraints):
constraints.pop('resolve', None)
constraints.pop('wallet', None)
constraints.pop('offset', None)
constraints.pop('limit', None)
+34 -12
View File
@@ -12,7 +12,7 @@ from binascii import hexlify, unhexlify
from typing import Dict, Tuple, Type, Iterable, List, Optional, DefaultDict
import pylru
from lbry.schema.result import Outputs
from lbry.schema.result import Outputs, INVALID, NOT_FOUND
from lbry.schema.url import URL
from lbry.crypto.hash import hash160, double_sha256, sha256
from lbry.crypto.base58 import Base58
@@ -661,13 +661,13 @@ class Ledger(metaclass=LedgerRegistry):
assert len(urls) == len(txos), "Mismatch between urls requested for resolve and responses received."
result = {}
for url, txo in zip(urls, txos):
if txo and URL.parse(url).has_stream_in_channel:
if not txo.channel or not txo.is_signed_by(txo.channel, self):
txo = None
if txo:
result[url] = txo
if isinstance(txo, Output) and URL.parse(url).has_stream_in_channel:
if not txo.channel or not txo.is_signed_by(txo.channel, self):
txo = {'error': {'name': INVALID, 'text': f'{url} has invalid channel signature'}}
else:
result[url] = {'error': f'{url} did not resolve to a claim'}
txo = {'error': {'name': NOT_FOUND, 'text': f'{url} did not resolve to a claim'}}
result[url] = txo
return result
async def claim_search(self, accounts, **kwargs) -> Tuple[List[Output], dict, int, int]:
@@ -732,20 +732,42 @@ class Ledger(metaclass=LedgerRegistry):
def get_purchase_count(self, resolve=False, **constraints):
return self.db.get_purchase_count(**constraints)
def get_claims(self, **constraints):
return self.db.get_claims(**constraints)
async def _resolve_for_local_results(self, accounts, txos):
results = []
response = await self.resolve(accounts, [txo.permanent_url for txo in txos])
for txo in txos:
resolved = response[txo.permanent_url]
if isinstance(resolved, Output):
results.append(resolved)
else:
if isinstance(resolved, dict) and 'error' in resolved:
txo.meta['error'] = resolved['error']
results.append(txo)
return results
async def get_claims(self, resolve=False, **constraints):
claims = await self.db.get_claims(**constraints)
if resolve:
return await self._resolve_for_local_results(constraints.get('accounts', []), claims)
return claims
def get_claim_count(self, **constraints):
return self.db.get_claim_count(**constraints)
def get_streams(self, **constraints):
return self.db.get_streams(**constraints)
async def get_streams(self, resolve=False, **constraints):
streams = await self.db.get_streams(**constraints)
if resolve:
return await self._resolve_for_local_results(constraints.get('accounts', []), streams)
return streams
def get_stream_count(self, **constraints):
return self.db.get_stream_count(**constraints)
def get_channels(self, **constraints):
return self.db.get_channels(**constraints)
async def get_channels(self, resolve=False, **constraints):
channels = await self.db.get_channels(**constraints)
if resolve:
return await self._resolve_for_local_results(constraints.get('accounts', []), channels)
return channels
def get_channel_count(self, **constraints):
return self.db.get_channel_count(**constraints)
+2 -2
View File
@@ -94,7 +94,7 @@ class ClientSession(BaseClientSession):
await self.create_connection(self.timeout)
await self.ensure_server_version()
self._on_connect_cb()
elif (perf_counter() - self.last_send) > self.max_seconds_idle or self.response_time is None:
if (perf_counter() - self.last_send) > self.max_seconds_idle or self.response_time is None:
await self.ensure_server_version()
retry_delay = default_delay
except RPCError as e:
@@ -148,7 +148,7 @@ class ClientSession(BaseClientSession):
class Network:
PROTOCOL_VERSION = __version__
MINIMUM_REQUIRED = (0, 54, 0)
MINIMUM_REQUIRED = (0, 57, 0)
def __init__(self, ledger):
self.ledger = ledger
+5
View File
@@ -40,6 +40,7 @@ from .jsonrpc import Request, JSONRPCConnection, JSONRPCv2, JSONRPC, Batch, Noti
from .jsonrpc import RPCError, ProtocolError
from .framing import BadMagicError, BadChecksumError, OversizedPayloadError, BitcoinFramer, NewlineFramer
from .util import Concurrency
from lbry.wallet.server.prometheus import NOTIFICATION_COUNT, RESPONSE_TIMES, REQUEST_ERRORS_COUNT
class Connector:
@@ -405,6 +406,7 @@ class RPCSession(SessionBase):
await self._task_group.add(self._handle_request(request))
async def _handle_request(self, request):
start = time.perf_counter()
try:
result = await self.handle_request(request)
except (ProtocolError, RPCError) as e:
@@ -417,10 +419,12 @@ class RPCSession(SessionBase):
'internal server error')
if isinstance(request, Request):
message = request.send_result(result)
RESPONSE_TIMES.labels(method=request.method).observe(time.perf_counter() - start)
if message:
await self._send_message(message)
if isinstance(result, Exception):
self._bump_errors()
REQUEST_ERRORS_COUNT.labels(method=request.method).inc()
def connection_lost(self, exc):
# Cancel pending requests and message processing
@@ -455,6 +459,7 @@ class RPCSession(SessionBase):
"""Send an RPC notification over the network."""
message = self.connection.send_notification(Notification(method, args))
await self._send_message(message)
NOTIFICATION_COUNT.labels(method=method).inc()
def send_batch(self, raise_errors=False):
"""Return a BatchRequest. Intended to be used like so:
+23 -5
View File
@@ -9,7 +9,7 @@ import aiohttp
from lbry.wallet.rpc.jsonrpc import RPCError
from lbry.wallet.server.util import hex_to_bytes, class_logger
from lbry.wallet.rpc import JSONRPC
from lbry.wallet.server.prometheus import LBRYCRD_REQUEST_TIMES, LBRYCRD_PENDING_COUNT
class DaemonError(Exception):
"""Raised when the daemon returns an error in its results."""
@@ -106,6 +106,7 @@ class Daemon:
Handles temporary connection issues. Daemon response errors
are raise through DaemonError.
"""
def log_error(error):
nonlocal last_error_log, retry
now = time.time()
@@ -119,8 +120,13 @@ class Daemon:
last_error_log = 0
data = json.dumps(payload)
retry = self.init_retry
methods = tuple(
[payload['method']] if isinstance(payload, dict) else [request['method'] for request in payload]
)
while True:
try:
for method in methods:
LBRYCRD_PENDING_COUNT.labels(method=method).inc()
result = await self._send_data(data)
result = processor(result)
if on_good_message:
@@ -143,12 +149,17 @@ class Daemon:
except WorkQueueFullError:
log_error('work queue full.')
on_good_message = 'running normally'
finally:
for method in methods:
LBRYCRD_PENDING_COUNT.labels(method=method).dec()
await asyncio.sleep(retry)
retry = max(min(self.max_retry, retry * 2), self.init_retry)
async def _send_single(self, method, params=None):
"""Send a single request to the daemon."""
start = time.perf_counter()
def processor(result):
err = result['error']
if not err:
@@ -160,7 +171,9 @@ class Daemon:
payload = {'method': method, 'id': next(self.id_counter)}
if params:
payload['params'] = params
return await self._send(payload, processor)
result = await self._send(payload, processor)
LBRYCRD_REQUEST_TIMES.labels(method=method).observe(time.perf_counter() - start)
return result
async def _send_vector(self, method, params_iterable, replace_errs=False):
"""Send several requests of the same method.
@@ -168,6 +181,9 @@ class Daemon:
The result will be an array of the same length as params_iterable.
If replace_errs is true, any item with an error is returned as None,
otherwise an exception is raised."""
start = time.perf_counter()
def processor(result):
errs = [item['error'] for item in result if item['error']]
if any(err.get('code') == self.WARMING_UP for err in errs):
@@ -178,9 +194,11 @@ class Daemon:
payload = [{'method': method, 'params': p, 'id': next(self.id_counter)}
for p in params_iterable]
result = []
if payload:
return await self._send(payload, processor)
return []
result = await self._send(payload, processor)
LBRYCRD_REQUEST_TIMES.labels(method=method).observe(time.perf_counter()-start)
return result
async def _is_rpc_available(self, method):
"""Return whether given RPC method is available in the daemon.
+8 -5
View File
@@ -4,14 +4,14 @@ import apsw
import logging
from operator import itemgetter
from typing import Tuple, List, Dict, Union, Type, Optional
from binascii import unhexlify
from binascii import unhexlify, hexlify
from decimal import Decimal
from contextvars import ContextVar
from functools import wraps
from dataclasses import dataclass
from lbry.wallet.database import query, interpolate
from lbry.error import ResolveCensoredError
from lbry.schema.url import URL, normalize_name
from lbry.schema.tags import clean_tags
from lbry.schema.result import Outputs, Censor
@@ -37,7 +37,7 @@ ATTRIBUTE_ARRAY_MAX_LENGTH = 100
INTEGER_PARAMS = {
'height', 'creation_height', 'activation_height', 'expiration_height',
'timestamp', 'creation_timestamp', 'release_time', 'fee_amount',
'timestamp', 'creation_timestamp', 'duration', 'release_time', 'fee_amount',
'tx_position', 'channel_join', 'reposted',
'amount', 'effective_amount', 'support_amount',
'trending_group', 'trending_mixed',
@@ -404,7 +404,6 @@ def _get_referenced_rows(censor: Censor, txo_rows: List[dict]):
# channels must come first for client side inflation to work properly
return channel_txos + reposted_txos
@measure
def search(constraints) -> Tuple[List, List, int, int, Censor]:
assert set(constraints).issubset(SEARCH_PARAMS), \
@@ -452,6 +451,8 @@ def resolve_url(raw_url):
matches = search_claims(censor, **query, limit=1)
if matches:
channel = matches[0]
elif censor.censored:
return ResolveCensoredError(raw_url, hexlify(next(iter(censor.censored))[::-1]).decode())
else:
return LookupError(f'Could not find channel in "{raw_url}".')
@@ -470,8 +471,10 @@ def resolve_url(raw_url):
matches = search_claims(censor, **query, limit=1)
if matches:
return matches[0]
elif censor.censored:
return ResolveCensoredError(raw_url, hexlify(next(iter(censor.censored))[::-1]).decode())
else:
return LookupError(f'Could not find stream in "{raw_url}".')
return LookupError(f'Could not find claim at "{raw_url}".')
return channel
@@ -0,0 +1,8 @@
from . import zscore
from . import ar
TRENDING_ALGORITHMS = {
'zscore': zscore,
'ar': ar
}
+261
View File
@@ -0,0 +1,261 @@
import copy
import math
import time
# Half life in blocks
HALF_LIFE = 134
# Decay coefficient per block
DECAY = 0.5**(1.0/HALF_LIFE)
# How frequently to write trending values to the db
SAVE_INTERVAL = 10
# Renormalisation interval
RENORM_INTERVAL = 1000
# Assertion
assert RENORM_INTERVAL % SAVE_INTERVAL == 0
# Decay coefficient per renormalisation interval
DECAY_PER_RENORM = DECAY**(RENORM_INTERVAL)
# Log trending calculations?
TRENDING_LOG = True
# Stubs
def install(connection):
check_trending_values(connection)
CREATE_TREND_TABLE = ""
def check_trending_values(connection):
"""
If the trending values appear to be based on the standard algorithm,
reset them. This will allow resyncing from a standard snapshot.
"""
c = connection.cursor()
needs_reset = False
for row in c.execute("SELECT COUNT(*) num FROM claim WHERE trending_global <> 0;"):
if row[0] != 0:
needs_reset = True
break
if needs_reset:
print("Resetting some columns. This might take a while...", flush=True, end="")
c.execute(""" BEGIN;
UPDATE claim SET trending_group = 0;
UPDATE claim SET trending_mixed = 0;
UPDATE claim SET trending_global = 0;
UPDATE claim SET trending_local = 0;
COMMIT;""")
print("done.")
# Create the index
c.execute("create index if not exists claim_id_only_idx on claim (claim_id);")
def spike_height(trending_score, x, x_old, time_boost=1.0):
"""
Compute the size of a trending spike.
"""
# Change in softened amount
change_in_softened_amount = x**0.25 - x_old**0.25
# Softened change in amount
delta = x - x_old
softened_change_in_amount = abs(delta)**0.25
# Softened change in amount counts more for minnows
if delta > 0.0:
multiplier = 1.0/math.sqrt(x + 1.0)
softened_change_in_amount *= multiplier
else:
softened_change_in_amount *= -1.0
return time_boost*(softened_change_in_amount + change_in_softened_amount)
def get_time_boost(height):
"""
Return the time boost at a given height.
"""
return 1.0/DECAY**(height % RENORM_INTERVAL)
def trending_log(s):
"""
Log a string.
"""
if TRENDING_LOG:
fout = open("trending_ar.log", "a")
fout.write(s)
fout.flush()
fout.close()
class TrendingData:
"""
An object of this class holds trending data
"""
def __init__(self):
self.claims = {}
# Have all claims been read from db yet?
self.initialised = False
def insert_claim_from_load(self, claim_id, trending_score, total_amount):
assert not self.initialised
self.claims[claim_id] = {"trending_score": trending_score,
"total_amount": total_amount,
"changed": False}
def update_claim(self, claim_id, total_amount, time_boost=1.0):
"""
Update trending data for a claim, given its new total amount.
"""
assert self.initialised
# Extract existing total amount and trending score
# or use starting values if the claim is new
if claim_id in self.claims:
old_state = copy.deepcopy(self.claims[claim_id])
else:
old_state = {"trending_score": 0.0,
"total_amount": 0.0,
"changed": False}
# Calculate LBC change
change = total_amount - old_state["total_amount"]
# Modify data if there was an LBC change
if change != 0.0:
spike = spike_height(old_state["trending_score"],
total_amount,
old_state["total_amount"],
time_boost)
trending_score = old_state["trending_score"] + spike
self.claims[claim_id] = {"total_amount": total_amount,
"trending_score": trending_score,
"changed": True}
def test_trending():
"""
Quick trending test for something receiving 10 LBC per block
"""
data = TrendingData()
data.insert_claim_from_load("abc", 10.0, 1.0)
data.initialised = True
for height in range(1, 5000):
if height % RENORM_INTERVAL == 0:
data.claims["abc"]["trending_score"] *= DECAY_PER_RENORM
time_boost = get_time_boost(height)
data.update_claim("abc", data.claims["abc"]["total_amount"] + 10.0,
time_boost=time_boost)
print(str(height) + " " + str(time_boost) + " " \
+ str(data.claims["abc"]["trending_score"]))
# One global instance
# pylint: disable=C0103
trending_data = TrendingData()
f = open("trending_ar.log", "w")
f.close()
def run(db, height, final_height, recalculate_claim_hashes):
if height < final_height - 5*HALF_LIFE:
trending_log("Skipping AR trending at block {h}.\n".format(h=height))
start = time.time()
trending_log("Calculating AR trending at block {h}.\n".format(h=height))
trending_log(" Length of trending data = {l}.\n"\
.format(l=len(trending_data.claims)))
# Renormalise trending scores and mark all as having changed
if height % RENORM_INTERVAL == 0:
trending_log(" Renormalising trending scores...")
keys = trending_data.claims.keys()
for key in keys:
if trending_data.claims[key]["trending_score"] != 0.0:
trending_data.claims[key]["trending_score"] *= DECAY_PER_RENORM
trending_data.claims[key]["changed"] = True
# Tiny becomes zero
if abs(trending_data.claims[key]["trending_score"]) < 1E-9:
trending_data.claims[key]["trending_score"] = 0.0
trending_log("done.\n")
# Regular message.
trending_log(" Reading total_amounts from db and updating"\
+ " trending scores in RAM...")
# Get the value of the time boost
time_boost = get_time_boost(height)
# Update claims from db
if not trending_data.initialised:
# On fresh launch
for row in db.execute("""
SELECT claim_id, trending_mixed,
(amount + support_amount)
AS total_amount
FROM claim;
"""):
trending_data.insert_claim_from_load(row[0], row[1], 1E-8*row[2])
trending_data.initialised = True
else:
for row in db.execute(f"""
SELECT claim_id,
(amount + support_amount)
AS total_amount
FROM claim
WHERE claim_hash IN
({','.join('?' for _ in recalculate_claim_hashes)});
""", recalculate_claim_hashes):
trending_data.update_claim(row[0], 1E-8*row[1], time_boost)
trending_log("done.\n")
# Write trending scores to DB
if height % SAVE_INTERVAL == 0:
trending_log(" Writing trending scores to db...")
the_list = []
keys = trending_data.claims.keys()
for key in keys:
if trending_data.claims[key]["changed"]:
the_list.append((trending_data.claims[key]["trending_score"],
key))
trending_data.claims[key]["changed"] = False
trending_log("{n} scores to write...".format(n=len(the_list)))
db.executemany("UPDATE claim SET trending_mixed=? WHERE claim_id=?;",
the_list)
trending_log("done.\n")
trending_log("Trending operations took {time} seconds.\n\n"\
.format(time=time.time() - start))
if __name__ == "__main__":
test_trending()
@@ -52,11 +52,12 @@ class ZScore:
return cls(), cls.step, cls.finalize
def register_trending_functions(connection):
def install(connection):
connection.createaggregatefunction("zscore", ZScore.factory, 1)
connection.cursor().execute(CREATE_TREND_TABLE)
def calculate_trending(db, height, final_height):
def run(db, height, final_height, affected_claims):
# don't start tracking until we're at the end of initial sync
if height < (final_height - (TRENDING_WINDOW * TRENDING_DATA_POINTS)):
return
+23 -11
View File
@@ -17,9 +17,7 @@ from lbry.wallet import Ledger, RegTestLedger
from lbry.wallet.transaction import Transaction, Output
from lbry.wallet.server.db.canonical import register_canonical_functions
from lbry.wallet.server.db.full_text_search import update_full_text_search, CREATE_FULL_TEXT_SEARCH, first_sync_finished
from lbry.wallet.server.db.trending import (
CREATE_TREND_TABLE, calculate_trending, register_trending_functions
)
from lbry.wallet.server.db.trending import TRENDING_ALGORITHMS
from .common import CLAIM_TYPES, STREAM_TYPES, COMMON_TAGS
@@ -65,6 +63,7 @@ class SQLDB:
media_type text,
fee_amount integer default 0,
fee_currency text,
duration integer,
-- reposts
reposted_claim_hash bytes,
@@ -142,6 +141,7 @@ class SQLDB:
create unique index if not exists claim_type_effective_amount_idx on claim (claim_type, effective_amount, claim_hash);
create unique index if not exists channel_hash_release_time_idx on claim (channel_hash, release_time, claim_hash);
create unique index if not exists filter_stream_duration_idx on claim (duration, trending_global, trending_mixed, claim_hash);
-- TODO: verify that all indexes below are used
create index if not exists claim_height_normalized_idx on claim (height, normalized asc);
@@ -165,14 +165,14 @@ class SQLDB:
CREATE_TABLES_QUERY = (
CREATE_CLAIM_TABLE +
CREATE_TREND_TABLE +
CREATE_FULL_TEXT_SEARCH +
CREATE_SUPPORT_TABLE +
CREATE_CLAIMTRIE_TABLE +
CREATE_TAG_TABLE
)
def __init__(self, main, path: str, blocking_channels: list, filtering_channels: list):
def __init__(
self, main, path: str, blocking_channels: list, filtering_channels: list, trending: list):
self.main = main
self._db_path = path
self.db = None
@@ -190,6 +190,7 @@ class SQLDB:
self.filtering_channel_hashes = {
unhexlify(channel_id)[::-1] for channel_id in filtering_channels if channel_id
}
self.trending = trending
def open(self):
self.db = apsw.Connection(
@@ -208,13 +209,14 @@ class SQLDB:
self.execute(self.PRAGMAS)
self.execute(self.CREATE_TABLES_QUERY)
register_canonical_functions(self.db)
register_trending_functions(self.db)
self.state_manager = Manager()
self.blocked_streams = self.state_manager.dict()
self.blocked_channels = self.state_manager.dict()
self.filtered_streams = self.state_manager.dict()
self.filtered_channels = self.state_manager.dict()
self.update_blocked_and_filtered_claims()
for algorithm in self.trending:
algorithm.install(self.db)
def close(self):
if self.db is not None:
@@ -318,6 +320,7 @@ class SQLDB:
'title': None,
'description': None,
'author': None,
'duration': None,
'claim_type': None,
'stream_type': None,
'media_type': None,
@@ -341,6 +344,10 @@ class SQLDB:
claim_record['title'] = claim.stream.title
claim_record['description'] = claim.stream.description
claim_record['author'] = claim.stream.author
if claim.stream.video and claim.stream.video.duration:
claim_record['duration'] = claim.stream.video.duration
if claim.stream.audio and claim.stream.audio.duration:
claim_record['duration'] = claim.stream.audio.duration
if claim.stream.release_time:
claim_record['release_time'] = claim.stream.release_time
if claim.stream.has_fee:
@@ -374,12 +381,12 @@ class SQLDB:
INSERT OR IGNORE INTO claim (
claim_hash, claim_id, claim_name, normalized, txo_hash, tx_position, amount,
claim_type, media_type, stream_type, timestamp, creation_timestamp,
fee_currency, fee_amount, title, description, author, height, reposted_claim_hash,
fee_currency, fee_amount, title, description, author, duration, height, reposted_claim_hash,
creation_height, release_time, activation_height, expiration_height, short_url)
VALUES (
:claim_hash, :claim_id, :claim_name, :normalized, :txo_hash, :tx_position, :amount,
:claim_type, :media_type, :stream_type, :timestamp, :timestamp,
:fee_currency, :fee_amount, :title, :description, :author, :height, :reposted_claim_hash, :height,
:fee_currency, :fee_amount, :title, :description, :author, :duration, :height, :reposted_claim_hash, :height,
CASE WHEN :release_time IS NOT NULL THEN :release_time ELSE :timestamp END,
CASE WHEN :normalized NOT IN (SELECT normalized FROM claimtrie) THEN :height END,
CASE WHEN :height >= 137181 THEN :height+2102400 ELSE :height+262974 END,
@@ -397,7 +404,7 @@ class SQLDB:
txo_hash=:txo_hash, tx_position=:tx_position, amount=:amount, height=:height,
claim_type=:claim_type, media_type=:media_type, stream_type=:stream_type,
timestamp=:timestamp, fee_amount=:fee_amount, fee_currency=:fee_currency,
title=:title, description=:description, author=:author, reposted_claim_hash=:reposted_claim_hash,
title=:title, duration=:duration, description=:description, author=:author, reposted_claim_hash=:reposted_claim_hash,
release_time=CASE WHEN :release_time IS NOT NULL THEN :release_time ELSE release_time END
WHERE claim_hash=:claim_hash;
""", claims)
@@ -834,7 +841,8 @@ class SQLDB:
update_claims, delete_claim_hashes, affected_channels, forward_timer=True)
r(self.insert_supports, insert_supports)
r(self.update_claimtrie, height, recalculate_claim_hashes, deleted_claim_names, forward_timer=True)
r(calculate_trending, self.db.cursor(), height, daemon_height)
for algorithm in self.trending:
r(algorithm.run, self.db.cursor(), height, daemon_height, recalculate_claim_hashes)
if not self._fts_synced and self.main.first_sync and height == daemon_height:
r(first_sync_finished, self.db.cursor())
self._fts_synced = True
@@ -845,11 +853,15 @@ class LBRYLevelDB(LevelDB):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
path = os.path.join(self.env.db_dir, 'claims.db')
# space separated list of channel URIs used for filtering bad content
trending = []
for algorithm_name in set(self.env.default('TRENDING_ALGORITHMS', 'zscore').split(' ')):
if algorithm_name in TRENDING_ALGORITHMS:
trending.append(TRENDING_ALGORITHMS[algorithm_name])
self.sql = SQLDB(
self, path,
self.env.default('BLOCKING_CHANNEL_IDS', '').split(' '),
self.env.default('FILTERING_CHANNEL_IDS', '').split(' '),
trending
)
def close(self):
+33 -3
View File
@@ -1,7 +1,7 @@
from aiohttp import web
from prometheus_client import Counter, Info, generate_latest as prom_generate_latest
from prometheus_client import Counter, Info, generate_latest as prom_generate_latest, Histogram, Gauge
from lbry import __version__ as version
from lbry.build_info import BUILD, COMMIT_HASH
from lbry.build_info import BUILD, COMMIT_HASH, DOCKER_TAG
from lbry.wallet.server import util
import lbry.wallet.server.version as wallet_server_version
@@ -11,10 +11,40 @@ VERSION_INFO = Info('build', 'Wallet server build info (e.g. version, commit has
VERSION_INFO.info({
'build': BUILD,
"commit": COMMIT_HASH,
"docker_tag": DOCKER_TAG,
'version': version,
"min_version": util.version_string(wallet_server_version.PROTOCOL_MIN),
})
REQUESTS_COUNT = Counter("requests_count", "Number of requests received", namespace=NAMESPACE, labelnames=("method",))
SESSIONS_COUNT = Gauge("session_count", "Number of connected client sessions", namespace=NAMESPACE)
REQUESTS_COUNT = Counter("requests_count", "Number of requests received", namespace=NAMESPACE,
labelnames=("method",))
RESPONSE_TIMES = Histogram("response_time", "Response times", namespace=NAMESPACE, labelnames=("method",))
NOTIFICATION_COUNT = Counter("notification", "Number of notifications sent (for subscriptions)",
namespace=NAMESPACE, labelnames=("method",))
REQUEST_ERRORS_COUNT = Counter("request_error", "Number of requests that returned errors", namespace=NAMESPACE,
labelnames=("method",))
SQLITE_INTERRUPT_COUNT = Counter("interrupt", "Number of interrupted queries", namespace=NAMESPACE)
SQLITE_OPERATIONAL_ERROR_COUNT = Counter(
"operational_error", "Number of queries that raised operational errors", namespace=NAMESPACE
)
SQLITE_INTERNAL_ERROR_COUNT = Counter(
"internal_error", "Number of queries raising unexpected errors", namespace=NAMESPACE
)
SQLITE_EXECUTOR_TIMES = Histogram("executor_time", "SQLite executor times", namespace=NAMESPACE)
SQLITE_PENDING_COUNT = Gauge(
"pending_queries_count", "Number of pending and running sqlite queries", namespace=NAMESPACE
)
LBRYCRD_REQUEST_TIMES = Histogram(
"lbrycrd_request", "lbrycrd requests count", namespace=NAMESPACE, labelnames=("method",)
)
LBRYCRD_PENDING_COUNT = Gauge(
"lbrycrd_pending_count", "Number of lbrycrd rpcs that are in flight", namespace=NAMESPACE, labelnames=("method",)
)
CLIENT_VERSIONS = Counter(
"clients", "Number of connections received per client version",
namespace=NAMESPACE, labelnames=("version",)
)
class PrometheusServer:
+72 -61
View File
@@ -27,7 +27,9 @@ from lbry.wallet.server.db.writer import LBRYLevelDB
from lbry.wallet.server.db import reader
from lbry.wallet.server.websocket import AdminWebSocket
from lbry.wallet.server.metrics import ServerLoadData, APICallMetrics
from lbry.wallet.server.prometheus import REQUESTS_COUNT
from lbry.wallet.server.prometheus import REQUESTS_COUNT, SQLITE_INTERRUPT_COUNT, SQLITE_INTERNAL_ERROR_COUNT
from lbry.wallet.server.prometheus import SQLITE_OPERATIONAL_ERROR_COUNT, SQLITE_EXECUTOR_TIMES, SESSIONS_COUNT
from lbry.wallet.server.prometheus import SQLITE_PENDING_COUNT, CLIENT_VERSIONS
import lbry.wallet.server.version as VERSION
from lbry.wallet.rpc import (
@@ -142,13 +144,6 @@ class SessionManager:
self.session_event = Event()
# Set up the RPC request handlers
cmds = ('add_peer daemon_url disconnect getinfo groups log peers '
'query reorg sessions stop'.split())
LocalRPC.request_handlers.update(
{cmd: getattr(self, 'rpc_' + cmd) for cmd in cmds}
)
async def _start_server(self, kind, *args, **kw_args):
loop = asyncio.get_event_loop()
if kind == 'RPC':
@@ -679,6 +674,7 @@ class SessionBase(RPCSession):
context = {'conn_id': f'{self.session_id}'}
self.logger = util.ConnectionLogger(self.logger, context)
self.group = self.session_mgr.add_session(self)
SESSIONS_COUNT.inc()
self.logger.info(f'{self.kind} {self.peer_address_str()}, '
f'{self.session_mgr.session_count():,d} total')
@@ -686,6 +682,7 @@ class SessionBase(RPCSession):
"""Handle client disconnection."""
super().connection_lost(exc)
self.session_mgr.remove_session(self)
SESSIONS_COUNT.dec()
msg = ''
if not self._can_send.is_set():
msg += ' whilst paused'
@@ -712,6 +709,7 @@ class SessionBase(RPCSession):
REQUESTS_COUNT.labels(method=request.method).inc()
if isinstance(request, Request):
handler = self.request_handlers.get(request.method)
handler = partial(handler, self)
else:
handler = None
coro = handler_invocation(handler, request)()
@@ -785,16 +783,56 @@ class LBRYElectrumX(SessionBase):
session_mgr: LBRYSessionManager
version = lbry.__version__
@classmethod
def initialize_request_handlers(cls):
cls.request_handlers.update({
'blockchain.block.get_chunk': cls.block_get_chunk,
'blockchain.block.get_header': cls.block_get_header,
'blockchain.estimatefee': cls.estimatefee,
'blockchain.relayfee': cls.relayfee,
'blockchain.scripthash.get_balance': cls.scripthash_get_balance,
'blockchain.scripthash.get_history': cls.scripthash_get_history,
'blockchain.scripthash.get_mempool': cls.scripthash_get_mempool,
'blockchain.scripthash.listunspent': cls.scripthash_listunspent,
'blockchain.scripthash.subscribe': cls.scripthash_subscribe,
'blockchain.transaction.broadcast': cls.transaction_broadcast,
'blockchain.transaction.get': cls.transaction_get,
'blockchain.transaction.get_merkle': cls.transaction_merkle,
'server.add_peer': cls.add_peer,
'server.banner': cls.banner,
'server.donation_address': cls.donation_address,
'server.features': cls.server_features_async,
'server.peers.subscribe': cls.peers_subscribe,
'server.version': cls.server_version,
'blockchain.transaction.get_height': cls.transaction_get_height,
'blockchain.claimtrie.search': cls.claimtrie_search,
'blockchain.claimtrie.resolve': cls.claimtrie_resolve,
'blockchain.claimtrie.getclaimsbyids': cls.claimtrie_getclaimsbyids,
'blockchain.block.get_server_height': cls.get_server_height,
'mempool.get_fee_histogram': cls.mempool_compact_histogram,
'blockchain.block.headers': cls.block_headers,
'server.ping': cls.ping,
'blockchain.headers.subscribe': cls.headers_subscribe_False,
'blockchain.address.get_balance': cls.address_get_balance,
'blockchain.address.get_history': cls.address_get_history,
'blockchain.address.get_mempool': cls.address_get_mempool,
'blockchain.address.listunspent': cls.address_listunspent,
'blockchain.address.subscribe': cls.address_subscribe,
'blockchain.address.unsubscribe': cls.address_unsubscribe,
})
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if not LBRYElectrumX.request_handlers:
LBRYElectrumX.initialize_request_handlers()
self.subscribe_headers = False
self.subscribe_headers_raw = False
self.connection.max_response_size = self.env.max_send
self.hashX_subs = {}
self.sv_seen = False
self.mempool_statuses = {}
self.set_request_handlers(self.PROTOCOL_MIN)
# fixme: this is a rebase hack, we need to go through ChainState instead later
self.protocol_tuple = self.PROTOCOL_MIN
self.daemon = self.session_mgr.daemon
self.bp: LBRYBlockProcessor = self.session_mgr.bp
self.db: LBRYLevelDB = self.bp.db
@@ -888,6 +926,7 @@ class LBRYElectrumX(SessionBase):
async def run_in_executor(self, query_name, func, kwargs):
start = time.perf_counter()
try:
SQLITE_PENDING_COUNT.inc()
result = await asyncio.get_running_loop().run_in_executor(
self.session_mgr.query_executor, func, kwargs
)
@@ -896,32 +935,40 @@ class LBRYElectrumX(SessionBase):
except reader.SQLiteInterruptedError as error:
metrics = self.get_metrics_or_placeholder_for_api(query_name)
metrics.query_interrupt(start, error.metrics)
SQLITE_INTERRUPT_COUNT.inc()
raise RPCError(JSONRPC.QUERY_TIMEOUT, 'sqlite query timed out')
except reader.SQLiteOperationalError as error:
metrics = self.get_metrics_or_placeholder_for_api(query_name)
metrics.query_error(start, error.metrics)
SQLITE_OPERATIONAL_ERROR_COUNT.inc()
raise RPCError(JSONRPC.INTERNAL_ERROR, 'query failed to execute')
except Exception:
log.exception("dear devs, please handle this exception better")
metrics = self.get_metrics_or_placeholder_for_api(query_name)
metrics.query_error(start, {})
SQLITE_INTERNAL_ERROR_COUNT.inc()
raise RPCError(JSONRPC.INTERNAL_ERROR, 'unknown server error')
if self.env.track_metrics:
metrics = self.get_metrics_or_placeholder_for_api(query_name)
(result, metrics_data) = result
metrics.query_response(start, metrics_data)
return base64.b64encode(result).decode()
else:
if self.env.track_metrics:
metrics = self.get_metrics_or_placeholder_for_api(query_name)
(result, metrics_data) = result
metrics.query_response(start, metrics_data)
return base64.b64encode(result).decode()
finally:
SQLITE_PENDING_COUNT.dec()
SQLITE_EXECUTOR_TIMES.observe(time.perf_counter() - start)
async def run_and_cache_query(self, query_name, function, kwargs):
metrics = self.get_metrics_or_placeholder_for_api(query_name)
metrics.start()
cache = self.session_mgr.search_cache[query_name]
cache_key = str(kwargs)
if cache_key not in cache:
cache[cache_key] = ResultCacheItem()
cache_item = cache[cache_key]
cache_item = cache.get(cache_key)
if cache_item is None:
cache_item = cache[cache_key] = ResultCacheItem()
elif cache_item.result is not None:
metrics.cache_response()
return cache_item.result
async with cache_item.lock:
if cache_item.result is None:
cache_item.result = await self.run_in_executor(
@@ -932,6 +979,9 @@ class LBRYElectrumX(SessionBase):
metrics.cache_response()
return cache_item.result
async def mempool_compact_histogram(self):
return self.mempool.compact_fee_histogram()
async def claimtrie_search(self, **kwargs):
if kwargs:
return await self.run_and_cache_query('search', reader.search_to_bytes, kwargs)
@@ -1367,6 +1417,7 @@ class LBRYElectrumX(SessionBase):
raise RPCError(BAD_REQUEST,
f'unsupported client: {client_name}')
self.client = client_name[:17]
CLIENT_VERSIONS.labels(version=str(client_name)).inc()
# Find the highest common protocol version. Disconnect if
# that protocol version in unsupported.
@@ -1381,8 +1432,7 @@ class LBRYElectrumX(SessionBase):
self.close_after_send = True
raise RPCError(BAD_REQUEST,
f'unsupported protocol version: {protocol_version}')
self.set_request_handlers(ptuple)
self.protocol_tuple = ptuple
return self.version, self.protocol_version_string()
async def transaction_broadcast(self, raw_tx):
@@ -1476,45 +1526,6 @@ class LBRYElectrumX(SessionBase):
else:
return tx_hash
def set_request_handlers(self, ptuple):
self.protocol_tuple = ptuple
handlers = {
'blockchain.block.get_chunk': self.block_get_chunk,
'blockchain.block.get_header': self.block_get_header,
'blockchain.estimatefee': self.estimatefee,
'blockchain.relayfee': self.relayfee,
'blockchain.scripthash.get_balance': self.scripthash_get_balance,
'blockchain.scripthash.get_history': self.scripthash_get_history,
'blockchain.scripthash.get_mempool': self.scripthash_get_mempool,
'blockchain.scripthash.listunspent': self.scripthash_listunspent,
'blockchain.scripthash.subscribe': self.scripthash_subscribe,
'blockchain.transaction.broadcast': self.transaction_broadcast,
'blockchain.transaction.get': self.transaction_get,
'blockchain.transaction.get_merkle': self.transaction_merkle,
'server.add_peer': self.add_peer,
'server.banner': self.banner,
'server.donation_address': self.donation_address,
'server.features': self.server_features_async,
'server.peers.subscribe': self.peers_subscribe,
'server.version': self.server_version,
'blockchain.transaction.get_height': self.transaction_get_height,
'blockchain.claimtrie.search': self.claimtrie_search,
'blockchain.claimtrie.resolve': self.claimtrie_resolve,
'blockchain.claimtrie.getclaimsbyids': self.claimtrie_getclaimsbyids,
'blockchain.block.get_server_height': self.get_server_height,
'mempool.get_fee_histogram': self.mempool.compact_fee_histogram,
'blockchain.block.headers': self.block_headers,
'server.ping': self.ping,
'blockchain.headers.subscribe': self.headers_subscribe_False,
'blockchain.address.get_balance': self.address_get_balance,
'blockchain.address.get_history': self.address_get_history,
'blockchain.address.get_mempool': self.address_get_mempool,
'blockchain.address.listunspent': self.address_listunspent,
'blockchain.address.subscribe': self.address_subscribe,
'blockchain.address.unsubscribe': self.address_unsubscribe,
}
self.request_handlers = handlers
class LocalRPC(SessionBase):
"""A local TCP RPC server session."""
+3 -5
View File
@@ -74,12 +74,10 @@ class Wallet:
self.storage = storage or WalletStorage()
self.preferences = TimestampedPreferences(preferences or {})
self.encryption_password = None
self.id = self.get_id()
@property
def id(self):
if self.storage.path:
return os.path.basename(self.storage.path)
return self.name
def get_id(self):
return os.path.basename(self.storage.path) if self.storage.path else self.name
def add_account(self, account: 'Account'):
self.accounts.append(account)
@@ -328,6 +328,13 @@ class ClaimSearchCommand(ClaimTestCase):
await self.assertFindsClaims([image], media_types=['image/png'])
await self.assertFindsClaims([image, video], media_types=['video/mp4', 'image/png'])
# duration
await self.assertFindsClaim(video, duration='>14')
await self.assertFindsClaim(video, duration='<16')
await self.assertFindsClaim(video, duration=15)
await self.assertFindsClaims([], duration='>100')
await self.assertFindsClaims([], duration='<14')
async def test_search_by_text(self):
chan1_id = self.get_claim_id(await self.channel_create('@SatoshiNakamoto'))
chan2_id = self.get_claim_id(await self.channel_create('@Bitcoin'))
@@ -375,6 +382,78 @@ class ClaimSearchCommand(ClaimTestCase):
await self.assertFindsClaims([], text='cloud')
class ClaimCommands(ClaimTestCase):
async def test_claim_stream_channel_list_with_resolve(self):
await self.channel_create()
await self.stream_create()
r = await self.claim_list()
self.assertNotIn('short_url', r[0])
self.assertNotIn('short_url', r[1])
self.assertNotIn('short_url', (await self.stream_list())[0])
self.assertNotIn('short_url', (await self.channel_list())[0])
r = await self.claim_list(resolve=True)
self.assertIn('short_url', r[0])
self.assertIn('short_url', r[1])
self.assertIn('short_url', (await self.stream_list(resolve=True))[0])
self.assertIn('short_url', (await self.channel_list(resolve=True))[0])
# unconfirmed channel won't resolve
channel_tx = await self.daemon.jsonrpc_channel_create('@foo', '1.0')
await self.ledger.wait(channel_tx)
r = await self.claim_list(resolve=True)
self.assertEqual('not_found', r[0]['meta']['error']['name'])
self.assertTrue(r[1]['meta']['is_controlling'])
r = await self.channel_list(resolve=True)
self.assertEqual('not_found', r[0]['meta']['error']['name'])
self.assertTrue(r[1]['meta']['is_controlling'])
# confirm it
await self.generate(1)
await self.ledger.wait(channel_tx, self.blockchain.block_expected)
# all channel claims resolve
r = await self.claim_list(resolve=True)
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
r = await self.channel_list(resolve=True)
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
# unconfirmed stream won't resolve
stream_tx = await self.daemon.jsonrpc_stream_create(
'foo', '1.0', file_path=self.create_upload_file(data=b'hi')
)
await self.ledger.wait(stream_tx)
r = await self.claim_list(resolve=True)
self.assertEqual('not_found', r[0]['meta']['error']['name'])
self.assertTrue(r[1]['meta']['is_controlling'])
r = await self.stream_list(resolve=True)
self.assertEqual('not_found', r[0]['meta']['error']['name'])
self.assertTrue(r[1]['meta']['is_controlling'])
# confirm it
await self.generate(1)
await self.ledger.wait(stream_tx, self.blockchain.block_expected)
# all claims resolve
r = await self.claim_list(resolve=True)
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
self.assertTrue(r[2]['meta']['is_controlling'])
self.assertTrue(r[3]['meta']['is_controlling'])
r = await self.stream_list(resolve=True)
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
r = await self.channel_list(resolve=True)
self.assertTrue(r[0]['meta']['is_controlling'])
self.assertTrue(r[1]['meta']['is_controlling'])
class ChannelCommands(CommandTestCase):
async def test_create_channel_names(self):
@@ -756,29 +835,48 @@ class StreamCommands(ClaimTestCase):
bad_content_id = self.get_claim_id(
await self.stream_create('bad_content', '1.1', channel_name='@some_channel', tags=['bad'])
)
blocking_channel_id = self.get_claim_id(
filtering_channel_id = self.get_claim_id(
await self.channel_create('@filtering', '1.0')
)
self.conductor.spv_node.server.db.sql.filtering_channel_hashes.add(
unhexlify(blocking_channel_id)[::-1]
unhexlify(filtering_channel_id)[::-1]
)
await self.stream_repost(bad_content_id, 'filter1', '1.1', channel_name='@filtering')
# search for blocked content directly
result = await self.out(self.daemon.jsonrpc_claim_search(name='bad_content'))
self.assertEqual([], result['items'])
self.assertEqual({"channels": {blocking_channel_id: 1}, "total": 1}, result['blocked'])
self.assertEqual({"channels": {filtering_channel_id: 1}, "total": 1}, result['blocked'])
# search channel containing blocked content
result = await self.out(self.daemon.jsonrpc_claim_search(channel='@some_channel'))
self.assertEqual(1, len(result['items']))
self.assertEqual({"channels": {blocking_channel_id: 1}, "total": 1}, result['blocked'])
self.assertEqual({"channels": {filtering_channel_id: 1}, "total": 1}, result['blocked'])
# content was filtered by not_tag before censoring
result = await self.out(self.daemon.jsonrpc_claim_search(channel='@some_channel', not_tags=["good", "bad"]))
self.assertEqual(0, len(result['items']))
self.assertEqual({"channels": {}, "total": 0}, result['blocked'])
blocking_channel_id = self.get_claim_id(
await self.channel_create('@blocking', '1.0')
)
self.conductor.spv_node.server.db.sql.blocking_channel_hashes.add(
unhexlify(blocking_channel_id)[::-1]
)
# filtered content can still be resolved
result = await self.out(self.daemon.jsonrpc_resolve('lbry://@some_channel/bad_content'))
self.assertEqual(bad_content_id, result['lbry://@some_channel/bad_content']['claim_id'])
await self.stream_repost(bad_content_id, 'block1', '1.1', channel_name='@blocking')
# blocked content is not resolveable
result = await self.out(self.daemon.jsonrpc_resolve('lbry://@some_channel/bad_content'))
error = result['lbry://@some_channel/bad_content']['error']
self.assertTrue(error['name'], 'blocked')
self.assertTrue(error['text'].startswith("Resolve of 'lbry://@some_channel/bad_content' was censored"))
async def test_publish_updates_file_list(self):
tx = await self.stream_create(title='created')
txo = tx['outputs'][0]
@@ -72,6 +72,7 @@ class BasicTransactionTest(IntegrationTestCase):
self.assertIn('error', response['lbry://@bar/foo'])
# checks for expected format in inexistent URIs
response = await self.ledger.resolve([], ['lbry://404', 'lbry://@404'])
self.assertEqual('lbry://404 did not resolve to a claim', response['lbry://404']['error'])
self.assertEqual('lbry://@404 did not resolve to a claim', response['lbry://@404']['error'])
response = await self.ledger.resolve([], ['lbry://404', 'lbry://@404', 'lbry://@404/404'])
self.assertEqual('Could not find claim at "lbry://404".', response['lbry://404']['error']['text'])
self.assertEqual('Could not find channel in "lbry://@404".', response['lbry://@404']['error']['text'])
self.assertEqual('Could not find channel in "lbry://@404/404".', response['lbry://@404/404']['error']['text'])
+2 -13
View File
@@ -8,7 +8,6 @@ from unittest.mock import Mock
from lbry.wallet.network import Network
from lbry.wallet.orchstr8.node import SPVNode
from lbry.wallet.rpc import RPCSession
from lbry.wallet.rpc import RPCError
from lbry.testcase import IntegrationTestCase, AsyncioTestCase
@@ -141,16 +140,12 @@ class ReconnectTests(IntegrationTestCase):
class ServerPickingTestCase(AsyncioTestCase):
async def _make_fake_server(self, latency=1.0, port=1, raise_version_rpc_error=False, return_versions=None):
async def _make_fake_server(self, latency=1.0, port=1):
# local fake server with artificial latency
class FakeSession(RPCSession):
async def handle_request(self, request):
await asyncio.sleep(latency)
if request.method == 'server.version':
if raise_version_rpc_error:
raise RPCError(1, 'derp')
if return_versions:
return return_versions
return tuple(request.args)
return {'height': 1}
server = await self.loop.create_server(lambda: FakeSession(), host='127.0.0.1', port=port)
@@ -160,10 +155,7 @@ class ServerPickingTestCase(AsyncioTestCase):
async def _make_bad_server(self, port=42420):
async def echo(reader, writer):
while True:
try:
writer.write(await asyncio.wait_for(reader.read(), 1))
except asyncio.TimeoutError:
pass
writer.write(await reader.read())
server = await asyncio.start_server(echo, host='127.0.0.1', port=port)
self.addCleanup(server.close)
return '127.0.0.1', port
@@ -177,9 +169,6 @@ class ServerPickingTestCase(AsyncioTestCase):
('example.that.doesnt.resolve', 9000),
await self._make_fake_server(latency=1.0, port=1340),
await self._make_fake_server(latency=0.1, port=1337),
await self._make_fake_server(latency=0, port=1338, raise_version_rpc_error=True),
await self._make_fake_server(latency=0, port=1341, return_versions=('0.0.1', '2.0')),
await self._make_fake_server(latency=0, port=1342, return_versions=('0.1', '2.0')),
await self._make_fake_server(latency=0.4, port=1339),
],
'connect_timeout': 3
@@ -15,6 +15,7 @@ class BaseResolveTestCase(CommandTestCase):
other = (await self.resolve(name))[name]
if claim_id is None:
self.assertIn('error', other)
self.assertEqual(other['error']['name'], 'not_found')
else:
self.assertEqual(claim_id, other['claim_id'])
@@ -183,7 +184,12 @@ class ResolveCommand(BaseResolveTestCase):
# only possible outside a channel
response = await self.resolve('lbry://@abc/on-channel-claim')
self.assertEqual(response, {
'lbry://@abc/on-channel-claim': {'error': 'lbry://@abc/on-channel-claim did not resolve to a claim'}
'lbry://@abc/on-channel-claim': {
'error': {
'name': 'not_found',
'text': 'Could not find claim at "lbry://@abc/on-channel-claim".',
}
}
})
response = (await self.resolve('lbry://on-channel-claim'))['lbry://on-channel-claim']
self.assertFalse(response['is_channel_signature_valid'])
@@ -257,7 +263,12 @@ class ResolveCommand(BaseResolveTestCase):
self.assertFalse(response['bad_example']['is_channel_signature_valid'])
response = await self.resolve('@olds/bad_example')
self.assertEqual(response, {
'@olds/bad_example': {'error': '@olds/bad_example did not resolve to a claim'}
'@olds/bad_example': {
'error': {
'name': 'not_found',
'text': 'Could not find claim at "@olds/bad_example".',
}
}
})
+11 -2
View File
@@ -87,7 +87,10 @@ class EpicAdventuresOfChris45(CommandTestCase):
response = await self.resolve('lbry://@spam/hovercraft')
self.assertEqual(
response['lbry://@spam/hovercraft'],
{'error': 'lbry://@spam/hovercraft did not resolve to a claim'}
{'error': {
'name': 'not_found',
'text': 'Could not find claim at "lbry://@spam/hovercraft".'
}}
)
# After abandoning he just waits for his LBCs to be returned to his account
@@ -186,4 +189,10 @@ class EpicAdventuresOfChris45(CommandTestCase):
# He them checks that the claim doesn't resolve anymore.
response = await self.resolve(uri)
self.assertEqual(response[uri], {'error': f'{uri} did not resolve to a claim'})
self.assertEqual(
response[uri],
{'error': {
'name': 'not_found',
'text': f'Could not find claim at "{uri}".'
}}
)
+17 -8
View File
@@ -10,7 +10,7 @@ from lbry.schema.claim import Claim
from lbry.schema.result import Censor
from lbry.wallet.server.db import reader, writer
from lbry.wallet.server.coin import LBCRegTest
from lbry.wallet.server.db.trending import TRENDING_WINDOW
from lbry.wallet.server.db.trending import zscore
from lbry.wallet.server.db.canonical import FindShortestID
from lbry.wallet.server.block_processor import Timer
from lbry.wallet.transaction import Transaction, Input, Output
@@ -47,7 +47,7 @@ class TestSQLDB(unittest.TestCase):
self.daemon_height = 1
self.coin = LBCRegTest()
db_url = 'file:test_sqldb?mode=memory&cache=shared'
self.sql = writer.SQLDB(self, db_url, [], [])
self.sql = writer.SQLDB(self, db_url, [], [], [zscore])
self.addCleanup(self.sql.close)
self.sql.open()
reader.initializer(
@@ -533,7 +533,7 @@ class TestTrending(TestSQLDB):
up_biggly = self.get_stream('Claim E', COIN)
claims = advance(1, [up_biggly, up_medium, up_small, no_trend, downwards])
for window in range(1, 8):
advance(TRENDING_WINDOW * window, [
advance(zscore.TRENDING_WINDOW * window, [
self.get_support(downwards, (20-window)*COIN),
self.get_support(up_small, int(20+(window/10)*COIN)),
self.get_support(up_medium, (20+(window*(2 if window == 7 else 1)))*COIN),
@@ -549,8 +549,8 @@ class TestTrending(TestSQLDB):
def test_edge(self):
problematic = self.get_stream('Problem', COIN)
self.advance(1, [problematic])
self.advance(TRENDING_WINDOW, [self.get_support(problematic, 53000000000)])
self.advance(TRENDING_WINDOW * 2, [self.get_support(problematic, 500000000)])
self.advance(zscore.TRENDING_WINDOW, [self.get_support(problematic, 53000000000)])
self.advance(zscore.TRENDING_WINDOW * 2, [self.get_support(problematic, 500000000)])
class TestContentBlocking(TestSQLDB):
@@ -617,7 +617,10 @@ class TestContentBlocking(TestSQLDB):
self.assertEqual(1, censor.total)
self.assertEqual({blocking_channel.claim_hash: 1}, censor.censored)
results, _ = reader.resolve([claim1.claim_name])
self.assertEqual('Could not find stream in "claim1".', results[0].args[0])
self.assertEqual(
f"Resolve of 'claim1' was censored by channel with claim id '{blocking_channel.claim_id}'.",
results[0].args[0]
)
results, _ = reader.resolve([
claim2.claim_name, regular_channel.claim_name # claim2 and channel still resolved
])
@@ -654,8 +657,14 @@ class TestContentBlocking(TestSQLDB):
results, _ = reader.resolve([
claim2.claim_name, regular_channel.claim_name # claim2 and channel don't resolve
])
self.assertEqual('Could not find stream in "claim2".', results[0].args[0])
self.assertEqual('Could not find channel in "@channel1".', results[1].args[0])
self.assertEqual(
f"Resolve of 'claim2' was censored by channel with claim id '{blocking_channel.claim_id}'.",
results[0].args[0]
)
self.assertEqual(
f"Resolve of '@channel1' was censored by channel with claim id '{blocking_channel.claim_id}'.",
results[1].args[0]
)
results, _ = reader.resolve([claim3.claim_name]) # claim3 still resolved
self.assertEqual(claim3.claim_hash, results[0]['claim_hash'])