diff --git a/lbry/docs/api.json b/lbry/docs/api.json index a422e0bf8..3c5247998 100644 --- a/lbry/docs/api.json +++ b/lbry/docs/api.json @@ -41,10 +41,10 @@ "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#c011186b47f0499392fdd22d73a2ec5426b8556f\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#c011186b47f0499392fdd22d73a2ec5426b8556f", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#c011186b47f0499392fdd22d73a2ec5426b8556f\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmppl4ona5o\",\n \"download_path\": \"/tmp/tmppl4ona5o/tmp5h1lifqx\",\n \"file_name\": \"tmp5h1lifqx\",\n \"height\": 214,\n \"key\": \"0fed669177b7d4889715b0522ad6f103\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01d3419c789f3367513a7e0058af1abbfbf6049f2b9792102b78fcfdc53716733ffce3fca52fdeb3971fd08970bf4d1c0e1c61e1c7409b65f9ae0326773cec1417748ca581c1cbb6ecaf6f892ac84d8350cadce0fe0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ead8d80c803c7eea3c9d6f2575b6734c93af8d6ecbbf7b19458e564d1e7f5463ae71e638d7dfdc9f57e709482bdfec3d\",\n \"stream_name\": \"tmp5h1lifqx\",\n \"streaming_url\": \"http://localhost:5280/stream/04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"suggested_file_name\": \"tmp5h1lifqx\",\n \"timestamp\": 1571238738,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#e2217d3c0e7b228476c78dd84f8af4520a01c112\"}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#e2217d3c0e7b228476c78dd84f8af4520a01c112", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#e2217d3c0e7b228476c78dd84f8af4520a01c112\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpusm0qvwm\",\n \"download_path\": \"/tmp/tmpusm0qvwm/tmpd9tghh31\",\n \"file_name\": \"tmpd9tghh31\",\n \"height\": 214,\n \"key\": \"652f5289389a3fdb2191af148322ae79\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c8e75c2f8828c8743c9b201adf952657261f04aeb2eb4354a6322b6e3b16a2675170aaa646793e7e27e3c504b97676be9196c88e724d5a5048259a3ba2482da99d5a9cbdf7cda532ae7f87dc3164d6a0233fface0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"a3d65262d708527c221c55fc9ae5927a4d0da1930e969d064e0c4c7ba23e38200f3f739890c4700a78d0337ee43291ad\",\n \"stream_name\": \"tmpd9tghh31\",\n \"streaming_url\": \"http://localhost:5280/stream/5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"suggested_file_name\": \"tmpd9tghh31\",\n \"timestamp\": 1572061598,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"written_bytes\": 11\n }\n}" } ] }, @@ -225,10 +225,10 @@ "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmph4xyq79u\", \"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/tmph4xyq79u", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmph4xyq79u\", \"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\": \"010000000181505245d7d35675af19d701fcad8ae5c14a67811dbdaf4ce73ccf8001287661010000006b4830450221008747caa2fc713bebcc30c9dfd6d6b60ee51a18970b2babf0968b41e0645c303b022017f306dba16a70ebfd05e78226997ee6ff2ca63cf49987ea92abfef832d48390012103df8678597e4d6b38b58f5a6fad26137f6a28f709c2bcbffe58e0f3424f3a6824ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706834787971373975180b22186170706c69636174696f6e2f6f637465742d73747265616d323070b8dff584a902490200bb12dcd9e26b19a0f39ab9f88081feab9771ff0291432d4af477b2aba75a51150e12432ed4666d7576a91420462a2025c78b6d04449cdc310492c89fd2173788ace0b46217000000001976a914a400f5d79f8e0b492fbac2d6666f713bd9bd6ff388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mx65ZKvF4XK8kbychCzHUyTrbHdX3LaRA3\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238738,\n \"txid\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miTbyK19e5Mifkw3GviKECMuB7SD8uNajP\",\n \"amount\": \"1.0\",\n \"claim_id\": \"82bb19a6ed8ce2b575a8df6e89e617b93851dcc6\",\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#82bb19a6ed8ce2b575a8df6e89e617b93851dcc6\",\n \"timestamp\": null,\n \"txid\": \"1077c79e835c0cf0e50aa64bcdc31b0f05c281166288bbf34c9bc19e4b09f1fb\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmph4xyq79u\",\n \"sd_hash\": \"70b8dff584a902490200bb12dcd9e26b19a0f39ab9f88081feab9771ff0291432d4af477b2aba75a51150e12432ed466\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvU8GEnbv1idD7cFAwudn69Udz3iESw8VX\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1077c79e835c0cf0e50aa64bcdc31b0f05c281166288bbf34c9bc19e4b09f1fb\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"1077c79e835c0cf0e50aa64bcdc31b0f05c281166288bbf34c9bc19e4b09f1fb\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpndl1netp\", \"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/tmpndl1netp", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpndl1netp\", \"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\": \"0100000001234f45215b4a8e1f8b5255281ca0304ac0b4f00737573fa2fefffabef4971074010000006b483045022100f37ca4c7e991e600926c46c87d45b7af43cd19d9771398cad4515f375db9a074022073ecd1ecb1e75a695c59d26265c0859a5adf2ef638c744584929aaeeb17fc932012103ff3dff4f5db1d76bad7c86cbc1cbca132e425d5d1e58411b01f669650d52b5a6ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e646c316e657470180b22186170706c69636174696f6e2f6f637465742d73747265616d32309ef1dca747644e56bdb5cfad69bd9d860f7b05670bd387f67ede4ffe038556a1c6a58702f513519050ad71acf46964f06d7576a914bbae852591ae1ab97369c10c5d091b55c887e42288ace0b46217000000001976a914c7dfb557e86e491c2865abe998e954e108eb472388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mg3BQsWAmHJKRheW1qZBTERCvKrN1ehNe7\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061598,\n \"txid\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxdKio7AL7foWBs5m98u3EWYtct3nJAAcS\",\n \"amount\": \"1.0\",\n \"claim_id\": \"029e1fb3a19f4c40af6c9e7c22252302263b5bda\",\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#029e1fb3a19f4c40af6c9e7c22252302263b5bda\",\n \"timestamp\": null,\n \"txid\": \"1efecbd035e6e5c53c43ec8ccd82f98deaa66f0f2cf1574d396451a0a61c7688\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpndl1netp\",\n \"sd_hash\": \"9ef1dca747644e56bdb5cfad69bd9d860f7b05670bd387f67ede4ffe038556a1c6a58702f513519050ad71acf46964f0\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"myjnkkwrCmDj2TA51jboqrZP5EaHgEJLEJ\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1efecbd035e6e5c53c43ec8ccd82f98deaa66f0f2cf1574d396451a0a61c7688\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"1efecbd035e6e5c53c43ec8ccd82f98deaa66f0f2cf1574d396451a0a61c7688\"\n }\n}" } ] }, @@ -247,10 +247,10 @@ "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#c011186b47f0499392fdd22d73a2ec5426b8556f\"]}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#c011186b47f0499392fdd22d73a2ec5426b8556f", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#c011186b47f0499392fdd22d73a2ec5426b8556f\"]}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#c011186b47f0499392fdd22d73a2ec5426b8556f\": {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2/astream#c\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": 1571238738,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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\": 1571238737,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"short_url\": \"lbry://@channel#2\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#e2217d3c0e7b228476c78dd84f8af4520a01c112\"]}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#e2217d3c0e7b228476c78dd84f8af4520a01c112", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#e2217d3c0e7b228476c78dd84f8af4520a01c112\"]}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#e2217d3c0e7b228476c78dd84f8af4520a01c112\": {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#e\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": 1572061598,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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\": 1572061597,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" } ] }, @@ -272,7 +272,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 \"outgoing_bps\": {},\n \"time\": 388184.158997449,\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\": \"5Y77dj4w9ZYpC3cJsYNUT69Wqu18bmciLsoKRswmRbQL56mtC2Hp4z7zbG9CBdwcPY\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"2bcf4a972ea760294b1c7a86698f6c63a064b429fcc4801286a866dbd1d54667\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\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\": \"3dBDJs8q54qrXyeDVU8JxtSFpevk4rCkMgmYuBmxvSmnV9wnNaeeyStqxBChKD4Sv4\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"9921f67f46010c4503f34aeed2ad8abff84e4fe5c9f571e418680c6bf964dc83\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\n \"port\": 50002\n }\n ]\n }\n }\n}" } ] }, @@ -294,7 +294,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.43.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.4\",\n \"torba_version\": \"0.5.7\"\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.43.4\",\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.4\",\n \"torba_version\": \"0.5.7\"\n }\n}" } ] } @@ -348,10 +348,10 @@ "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"drastic model curious weapon language crush wrong spy whisper labor elite never\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\", \"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\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1571238704.9340613,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfGJvwZyd6WDNjkrqnr2LCHUWD7AWp4tURDpZSPqFoqy1FGM4arnuSqGvUL6TeMA6imGekHtX1QwEZFP29sGGMWenveG2qbv\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YjLiqDeDVusVJnNmxBDEmb5HVdCpELgsFi5L4neqzLasRP7BWXh4ysQLJ62Z5CggDHXeAmPkMNrsSBu6N75uzXxLaYTPDHz\",\n \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"advice truth adjust basic timber whip uncover source same sock orphan chat\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\", \"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\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572061565.0606506,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeXJZoi4ESQGXvCqnKu79gVDVphPvSZ4ie41rJYuKakPigP3FKs4KjjyYpGqw64cy8UMZRAZpHnUwGRxdyoVrkijVf88W46v\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XzLMhMipqoveVEMiVEJ4FnpH7DSDrps7UYGcvwiumF1arWkRefeBuWUWk2oQoDzkV1PTWsFxfmyKuRsarfMfi7cQoeRqobU\",\n \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\"\n }\n}" } ] }, @@ -395,9 +395,9 @@ }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"reserved_subtotals\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"reserved_subtotals\": false}}).json()", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"reserved_subtotals\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"reserved_subtotals\": false}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": null,\n \"total\": \"2.0\"\n }\n}" } ] @@ -432,7 +432,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\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1571238704.7281725,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfGJvwZyd6WDNjkrqnr2LCHUWD7AWp4tURDpZSPqFoqy1FGM4arnuSqGvUL6TeMA6imGekHtX1QwEZFP29sGGMWenveG2qbv\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YjLiqDeDVusVJnNmxBDEmb5HVdCpELgsFi5L4neqzLasRP7BWXh4ysQLJ62Z5CggDHXeAmPkMNrsSBu6N75uzXxLaYTPDHz\",\n \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\"\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\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572061564.8549502,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeXJZoi4ESQGXvCqnKu79gVDVphPvSZ4ie41rJYuKakPigP3FKs4KjjyYpGqw64cy8UMZRAZpHnUwGRxdyoVrkijVf88W46v\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XzLMhMipqoveVEMiVEJ4FnpH7DSDrps7UYGcvwiumF1arWkRefeBuWUWk2oQoDzkV1PTWsFxfmyKuRsarfMfi7cQoeRqobU\",\n \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\"\n }\n}" } ] }, @@ -487,24 +487,24 @@ "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012a2d4d3f8e6d07bd3426e56dd37bc676d9b41b475b89a16641a19f5c01ecf09f010000006a4730440220646316b376aac4f8c6b7caa2df43826f78f840d7e789f26873e2c18fa2f8a19c02206556cfe7affe33acb6be8a5f19b4397cb87fa0c4f00502c79df17ef111393da801210262cdc19e281f5797bc4a37e5ac88731e8b30fb03edc8115a670afc9ba0a81930ffffffff0200c2eb0b000000001976a9140156d196c4fc4424210fc4b4c5f64f1e3376e8b388ac90d7ae2f000000001976a914f8a94b8ca292c753cedd6458e41de88b92fa2d4088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"myrBDH4gYYrJTdzJjtmweZuV5JfBXD7omH\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238736,\n \"txid\": \"9ff0ec015c9fa14166a1895b471bb4d976c67bd36de52634bd076d8e3f4d2d2a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfe2yWquHbZGuzZBcnM1h7ezpDpkXCTySN\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n4BkgTZV2xNeusnQR7zDz4qNYsqMScMFpN\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000132ca8c112399bc4021af4729fd0532af40fd898aa6ff0d2075eadd03893976e1010000006a473044022027eed855e2629a7aa632a5ff824fffbee8e1c352a396ced0c9432aab88faa325022054e55521c4be7e19a73b4791da2977f52581605cb0b28df3f6c59935cfc55f21012102843ca084173e6500f1af687cb5daf3214c8d8ea61cdc98719ce73eb22fa99c00ffffffff0200c2eb0b000000001976a914cfdf1c5e6830cbf98307f4a74239d548179a81b688ac90d7ae2f000000001976a9144076d4aa912316a464fa9e868b8347257a898b0a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqMxQczTaFpBdpQT83pfkDoQoJieeXd4e6\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061596,\n \"txid\": \"e176398903ddea75200dffa68a89fd40af3205fd2947af2140bc9923118cca32\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzU5SmrVbFHEGEaPvFpF9xWkfDy4FC485T\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mmPotqNkzNxjvasWVCoUdRncJyWjAM9aUS\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"from_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\" --from_account=\"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"from_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011c627e57c603b0773da94821755027f31aa215acf00628a34bd61d913e3438e4000000006b483045022100e2dacb2fa0527d2f28d1d24eb68f29b77fe8f5a873b7a18b1b34fb94a803f8f302206375c73f76ef590e5ec0498050d9d0fd4bec8a28ec3ef057ad38ca304aaaa74b01210243bdf4a8e7c3d424a69b0e6d2ab3bd9de500b2e5bf210869a91f3f7f1d9d8437ffffffff03c0687804000000001976a91470292324a689e56fb7be3705bbf9342d02b00a6388acc0687804000000001976a91470292324a689e56fb7be3705bbf9342d02b00a6388ac6cb9fa02000000001976a91470292324a689e56fb7be3705bbf9342d02b00a6388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfe2yWquHbZGuzZBcnM1h7ezpDpkXCTySN\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1571238737,\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"from_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\" --from_account=\"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"from_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000198a34d1a28a8e799635b53b49c3298385b4d2ca20fb49d6273efec3cda4310bc000000006b483045022100da1bb329deb334c04688a62610a760fae3431850a9edc4161ebc968df9527354022008f3d0ef073f93e02fc47f153a0e4aac525d14f8e5669b2d2bffb967d112f216012103a4291f6e55385770cf08dac4485ba55f195ff6dff2a720bd6971c8f3bcec8662ffffffff03c0687804000000001976a9147be3cd32aecb15f9412c1fbd1f647779b0d5e8f488acc0687804000000001976a9147be3cd32aecb15f9412c1fbd1f647779b0d5e8f488ac6cb9fa02000000001976a9141ef5e2d943ffb70fcbf17f585c9595ad453ccbbf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzU5SmrVbFHEGEaPvFpF9xWkfDy4FC485T\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572061597,\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"miLf8GzjCmqXfeVrwtYWdxo8CAo7jH7xTF\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003257c5894457870433e4f3bed79c5bb5eedfac405fdb2a90aec75462eca481697000000006a47304402206748f3d21600d39d1278925611132f5d41fa58598ab30a563a4f8f73eef971a3022076fa2d3b2a5b3af56f2393ec96628194cc895a5760142de6783ef53a0a0d59d3012102147227bbe98f7702aeb098e386e4c9f118e37d4103901559287ec704fc3a9a8cffffffff257c5894457870433e4f3bed79c5bb5eedfac405fdb2a90aec75462eca481697010000006b483045022100dfc0b7ee1e7bc6cadacb57caebc8340bb391fd050ff96b5b607160cb390fa1e6022046d043e09abdf03e4ff9d3b99c8dac8575f5bbdda06d2026e0f5259169fb9126012102147227bbe98f7702aeb098e386e4c9f118e37d4103901559287ec704fc3a9a8cffffffff257c5894457870433e4f3bed79c5bb5eedfac405fdb2a90aec75462eca481697020000006a47304402206af09161e399be11455c5394d4d3fc13100151389cb970bee8b6efbc74afa75d022043dd968fcd41cc8e0d13d5a0d042fa4874fb57c81e9491912bcab2d3bf55b779012102147227bbe98f7702aeb098e386e4c9f118e37d4103901559287ec704fc3a9a8cffffffff015027eb0b000000001976a91413b1f79654e2e73cc9d6b8bfcc16fe98d0b7621f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1571238737,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238737,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1571238737,\n \"txid\": \"971648ca2e4675ec0aa9b2fd05c4faed5ebbc579ed3b4f3e4370784594587c25\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhK6L59USiby9g31qP2JpNm2QFjSvzMhU4\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"8091b20c9f0af24599c4e41f286649885ad367d32bfdbfea1206e589cc38c382\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"8091b20c9f0af24599c4e41f286649885ad367d32bfdbfea1206e589cc38c382\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003e6e3210f2aa744848a6fdf55b84cfad87f11e8ccb52272a9d8d6e4f69c5e74ed000000006a47304402200bd225f9ee34e03f6869ce8540319a0185be4202f2dbe68e640a9f683806de8c02202e163dbb332977fcf953293890b38f6e7236ae1f38aaff3c8a536db2bafdabbd012102a749cfa95d0bda267d4766ce894f709dc6e36040a2d41c23c979ad8d89aff90dffffffffe6e3210f2aa744848a6fdf55b84cfad87f11e8ccb52272a9d8d6e4f69c5e74ed010000006a47304402203cf1b7c6178e9a9f2c326fe80a35f7b63788776e901b9a09316aa98a037748be02206025ec95e982620cc02d4bcdac6324b0117ffc07096296c4f47d7fb07378743a012102a749cfa95d0bda267d4766ce894f709dc6e36040a2d41c23c979ad8d89aff90dffffffffe6e3210f2aa744848a6fdf55b84cfad87f11e8ccb52272a9d8d6e4f69c5e74ed020000006a4730440220475de651c8374c00ec7e271e3acc5ae942cfe74e6c6a78c72f1bcef2a9587f9102207bd5bfd037d6a443f7dfcd2e374c18b16dcfedc6e8b18e4cf12a7293a56240c7012103e8802a4db671b74aac9ed974019132ef5036555020249c95e80e694ba0240338ffffffff015027eb0b000000001976a914d215d4646d25972b92b51b1f5db4a934bbff34ae88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572061597,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061597,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"miLf8GzjCmqXfeVrwtYWdxo8CAo7jH7xTF\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1572061597,\n \"txid\": \"ed745e9cf6e4d6d8a97222b5cce8117fd8fa4cb855df6f8a8444a72a0f21e3e6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzfnM69eexBqBeqWxavtBj7GfVWKpYjuE2\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"b53f60786019869551fef5e5caff3583af9b73e5636cccbb37fd54c5a40f748a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"b53f60786019869551fef5e5caff3583af9b73e5636cccbb37fd54c5a40f748a\"\n }\n}" } ] }, @@ -541,16 +541,28 @@ "type": "bool", "description": "show the seed for the account", "is_required": false + }, + { + "name": "page", + "type": "int", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false } ], - "returns": " [\n {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }\n ]", + "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 \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }\n ]\n }", "examples": [ { "title": "List your accounts", "curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"is_default\": true,\n \"name\": \"Account #n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XYigvZNaCGXztmz3j59qFZ7PfeRYYRhaLWWZeaFisLc8mTmNCfWsopnu3cc1Zywt9VkT8Eskk8BnAweBnX6w4uz3shGQENn\",\n \"satoshis\": 1000000000\n }\n ]\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\": \"n3m47qDHwXpTfrRct61e66vDKicmgvrGym\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #n3m47qDHwXpTfrRct61e66vDKicmgvrGym\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YpFTLn3HgdCHNA8Ud3B4WSdt8i7KvT4occDhAQ8zPzwhe1KbpJBRRjHVCSYTBmGyMngvuEB5CUbNBQ8eMztmBW9cJzD8jPR\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -595,10 +607,10 @@ "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"}}).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\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1571238704.7281725,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfGJvwZyd6WDNjkrqnr2LCHUWD7AWp4tURDpZSPqFoqy1FGM4arnuSqGvUL6TeMA6imGekHtX1QwEZFP29sGGMWenveG2qbv\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YjLiqDeDVusVJnNmxBDEmb5HVdCpELgsFi5L4neqzLasRP7BWXh4ysQLJ62Z5CggDHXeAmPkMNrsSBu6N75uzXxLaYTPDHz\",\n \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"}}).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\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572061564.8549502,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeXJZoi4ESQGXvCqnKu79gVDVphPvSZ4ie41rJYuKakPigP3FKs4KjjyYpGqw64cy8UMZRAZpHnUwGRxdyoVrkijVf88W46v\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XzLMhMipqoveVEMiVEJ4FnpH7DSDrps7UYGcvwiumF1arWkRefeBuWUWk2oQoDzkV1PTWsFxfmyKuRsarfMfi7cQoeRqobU\",\n \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\"\n }\n}" } ] }, @@ -685,10 +697,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\", \"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\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1571238705.0105007,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfGJvwZyd6WDNjkrqnr2LCHUWD7AWp4tURDpZSPqFoqy1FGM4arnuSqGvUL6TeMA6imGekHtX1QwEZFP29sGGMWenveG2qbv\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YjLiqDeDVusVJnNmxBDEmb5HVdCpELgsFi5L4neqzLasRP7BWXh4ysQLJ62Z5CggDHXeAmPkMNrsSBu6N75uzXxLaYTPDHz\",\n \"seed\": \"drastic model curious weapon language crush wrong spy whisper labor elite never\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\", \"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\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572061565.1301923,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeXJZoi4ESQGXvCqnKu79gVDVphPvSZ4ie41rJYuKakPigP3FKs4KjjyYpGqw64cy8UMZRAZpHnUwGRxdyoVrkijVf88W46v\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XzLMhMipqoveVEMiVEJ4FnpH7DSDrps7UYGcvwiumF1arWkRefeBuWUWk2oQoDzkV1PTWsFxfmyKuRsarfMfi7cQoeRqobU\",\n \"seed\": \"advice truth adjust basic timber whip uncover source same sock orphan chat\"\n }\n}" } ] } @@ -724,9 +736,9 @@ "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mfyjzur5kkyBg5YDhx4UiAabb2rx2xMsE3\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine mfyjzur5kkyBg5YDhx4UiAabb2rx2xMsE3", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mfyjzur5kkyBg5YDhx4UiAabb2rx2xMsE3\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mrsoe628TYsWSKR8MDqvQ6SoNzr7FFKbJD\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine mrsoe628TYsWSKR8MDqvQ6SoNzr7FFKbJD", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mrsoe628TYsWSKR8MDqvQ6SoNzr7FFKbJD\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -773,14 +785,14 @@ "curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfYNAfU3cTUGWwy4aG9MLnFaDF8VcceF5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4K6z8Bsi95GPw5FWeyh1MMNxN7WLyhZSHRHAQ1eHWmTur1ULo7Gqa2iS1L9Rc2w2TLCXZsiN6tfX4xfkYhzRboirfSpJygNU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfe2yWquHbZGuzZBcnM1h7ezpDpkXCTySN\",\n \"pubkey\": \"tpubDA9GDAntyJu4EvpC1MceQmRCKi8iYFdMU5pyB2HfXGuyBksrcS5qGhdPRxN5peuYKv77T4g9XePbaEHgbfxkzacfComAjRisbHA8qJgVX1h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfwN3xEhEbjUTLMRx2sJd1FTmexU1rPu9s\",\n \"pubkey\": \"tpubDA9GDAntyJu4J6SvmJM5env2f124q5Y32CCUMA4KYt249iQJHTz1H4HkY2sLMUqssgBKU7BXPPbc7U2ZQYtXPvosRvzJMstsnnT36R3XS8R\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mhgKgpRQ9B8JhHYN4f77ejB3eJqAEHPYiQ\",\n \"pubkey\": \"tpubDA9GDAntyJu53Buf37KHfs7rKaekLy9QbuZwerEX6irDq1m7ojfxPW2QkJJDVCQYgKRmngv6otY3batqV2h8xQXGMsPeqreJJxdBPTAwUEL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mhqg6NA2M9T8dPwiuQcVuG61sQSBbSp9Ls\",\n \"pubkey\": \"tpubDA9GDAntyJu4NY6xbhXCVj1knLFWfjeNd8xxn5cRY3rzK1kiVJTiHpNztmXukKSf3Pu2Sc28x6WZ6hZrBxawK9njdP1siARKa64AjeEw7XY\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mixdDvkzVtMhHxP455y3U9BxPVUYpVqfGJ\",\n \"pubkey\": \"tpubDA9GDAntyJu4MvKEP6pFaqQgqmjQ4iYq5D6a8SdnScHKpRUXDKWdxXNskP3nd8HrtCBJZPoTSSMvC4RayuvLaqKnqLPgaNukfbr73XARXCn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mkA1WgwFbgchsdEq2BKmYWeaQxL6FjCW45\",\n \"pubkey\": \"tpubDA9GDAntyJu4sc9ziqCDTS54EHH5ki9uJ1YfmjoR7zeJccgXtVm5yQxV2nA1Y6SS9HxFzBtDquSbKK8quyGGGSZWvEK1dQstRfzbGANi3UN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mkvJ8MD3DX7SsBbJVgsVWit7KSxkmNvP4m\",\n \"pubkey\": \"tpubDA9GDAntyJu4pz8ia68bFAEZ3dHR3CYVvtafJbCnpQWsB3SFCPBgfU9VdJQjnh7hkqk81KoQ87VLJyW3HydAfzUzscorstE3Fu3RrL6m8nu\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mnJVfoJKGW5QwTAxAKUogiStGqGMi9HNy5\",\n \"pubkey\": \"tpubDA9GDAntyJu4RBBie6encrd8Y8A68DZ8FWfKVGCj8Be5PVkdVLyfV48vW1p8ee33qTcBtELUPi6g12JFfFbEg1Sw5JF5k8HGAp42w3We18X\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mnUehAF1b4RfdyxmCLXj4jp7VU3DpiEgNb\",\n \"pubkey\": \"tpubDA9GDAntyJu4XHGJptXuRsUTHWwARWHqTbhddU8kA66V8yqs4nywt1HJbhaAySMWRra2nN5Ajmxf1egHqDZo1WRpAySbNh4UPkYshpwsFc8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mpCcvL57WTbWJjFtygEVj3t8G4aphqZvT6\",\n \"pubkey\": \"tpubDA9GDAntyJu4LiJmctWWofyrehLxAM5aQ7TS9W5dufVszQDBejoZHpJVuRV4sdwzxZ2XAeNPafdscD3YfcNE923aexNx6gjCwM2PfQv1fJq\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"pubkey\": \"tpubDA9GDAntyJu4GmAPiKBUWoGj6C2EMnmgtV6CbTgpsS9t2BZqVJqqaKvcbPoiSadXghaMddU4NMBzaGqverv2k8Y46ycHBafFzj5rz33ni4z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"ms6a57pGmU4AYCKt47Coy9m8bZ6ANyBbY8\",\n \"pubkey\": \"tpubDA9GDAntyJu55r3BFjh4XXdzUc3AmBxNng6CYLm5H2Ktnq8QuKC4TKmGCrcnFhk9iCShyGXLLMrFHeezunFzRfUDNsrxTAevdojYEp2hDW2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mu56hCrA8M5BWCHhkmQrh7rqWkK7QRs16T\",\n \"pubkey\": \"tpubDA9GDAntyJu4vpqWb4x2iyLRshPjnTsatFwPDuzSnPrQV1uHCHWGNi8jsvRu7jnPcnLWQASh3amX3ezDwxeKX4DdYoXaUYzzpmPGkXb2RGD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"muTpCvgtsoHyckenmY2xomphtAGH5kLEJS\",\n \"pubkey\": \"tpubDA9GDAntyJu4jR3pxJ5zGLzow77PCeNNzaTaFTGfCeQJN4pDqouPWsmagQ6MBUENszEBc8oo4RCRTH8j26Mas7d5p8SBS1sziWjfcx6YkpA\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"muXAwAWJ4ZmhRsce8AfDzLBBsS7Ji8UuHg\",\n \"pubkey\": \"tpubDA9GDAntyJu4UKVpFxLDPz4oLNzAM56fKrBHNjt9tDBgMYGGU9NGTXiMhtDTnuZcS4qaxzeDh1QkqitgX22sjBueJoaqBzXiDX6Da4BdhWa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mwtoiYVnswqRLUz7mmng3f8NPNXSN4AWxW\",\n \"pubkey\": \"tpubDA9GDAntyJu4dYBRhCysuYpELVPDMx3inTvgWpj3bM5jXPz9pRSGUjizWuWKdp2jvLTvpZT3GYnKA5sLewpbcW9WTRNYfk8chc1Zzf9X122\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mxmwkA9ToWHB4rWHnMZdqviJ59hX7MxKYh\",\n \"pubkey\": \"tpubDA9GDAntyJu4RVVRBTYLioBopNt3YKoyK46189QfPjke2NZdx3J5HCU55QF63ZKSSZ6A6xGZdRJo8JF8p8APVKUo7h55nGnM74aNYroc4Yp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzF5DDRUaAuAD1rh7KZkfebqMzW5UVVdi8\",\n \"pubkey\": \"tpubDA9GDAntyJu4aNZnHjQmb8kxZBnTk8vQ17UYzroge1dzK3DJ8Vj9LhNvXe7zdZx2iHphs5yaotuoXmPetXzDrW2WwUsbj3Pr1ktFpyifjNM\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzGNmG58MSH9nq31V6aV66eLjvqCsMmjVa\",\n \"pubkey\": \"tpubDA9GDAntyJu4t8hLK629tzmUEsbQ2uJeBcMJRegzT64k6qhtGp96TEqSzwFXBmH62oQo7LAhfn1aAQkDSMDNhtTaZoHCDwX1MBTJPP9hPNC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzhoyVUrwd85CcE95Pb7qGahSZcuiBZZLm\",\n \"pubkey\": \"tpubDA9GDAntyJu4yu2itQEHfipzkGt9g797BKw96Z7a7tsHfSwcofpLrM7nT91dnZ3rx7XJxyPY6LVS2N8zHmexHsTntwWtsTu2YxWJnqUUicC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzz55CJvm8x1pyXNmYp4bLAFrJHH88zyGY\",\n \"pubkey\": \"tpubDA9GDAntyJu4EJaUwRDNzTMZYZyVvb45PzsoNYctHcP18B4kHYqNWuekZ2GMhL2xq5g2JRYHmFQsLGcNw18Dbzp93KAvGuvKDfQ6gcGJZcs\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n1AEgyEzLf9DDd4peeVPoPYsSBvvTL538h\",\n \"pubkey\": \"tpubDA9GDAntyJu4U3w5woFVA5Cc8AvHaTocyzYog8yFnXvqQnjjVawU615EKa4iMsmtyDVMCydJqxbWrNMe21NnmjCSshUcBuUhXMnejtRyJUG\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n2XNiLt1uB2mNCnpCNAnNdYBL1HokSh6WF\",\n \"pubkey\": \"tpubDA9GDAntyJu4miVkWtxkWYaWDhvaUnGPatSnkBkqo4qmjpp6xNU71bfupNwG5jPD3JKdzkw2qMihA9L7B4Yf4JsRQRRGXwayxF9ypsJVypf\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n2ygzYZvNH3GhoFnCCSAyc2aRB8AFasvjF\",\n \"pubkey\": \"tpubDA9GDAntyJu4a9FVGKUJ5eAmfec1CrY4CrYdnCi9SsAvSX9JdTUJhC1QJ6o7mx5zK6SiBjpCoVw3UA7azUFtFnomZjdHLNisrns1JudaJsy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n36XJWv8Bg52bC9J6dSUwdrYShPPREHHFV\",\n \"pubkey\": \"tpubDA9GDAntyJu4gDDpgL5hnazqDnc2P2z7La6NSMACpAi1JqK8QxWvxgx2qKrR8p9oN3VByphqjTcrWw8Vr4ssok7ZmSrFaTqQdf3wt82sBcf\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mfxropDaYm9JoRbHxDZRm8drX1gWFy7P3z\",\n \"pubkey\": \"tpubDA9GDAntyJu4fLjuJBF4nAXbB1LXdwFqqkDrNvHCYXav74tmHYZ2VcCmTh3qWEY7wdqqRhH9pY6py6iKCWV99XP3T3sfA72gHmPRjf8HUQ4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mfyjzur5kkyBg5YDhx4UiAabb2rx2xMsE3\",\n \"pubkey\": \"tpubDA9GDAntyJu4PwtHUWfrMztaUReM2Rk4RvJ6UX2NvQaurjwsH5eaL6G5VCAKUG7yeDhn4jLM9wvXCdVtXnXMt97G5Fuem7LPXnPPPKDvWEY\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mggrh4RXW4yAHNhhQWbnNTcn9w68R3oVsm\",\n \"pubkey\": \"tpubDA9GDAntyJu57MQEin8Ra6YYkjYjkEjn7cwPx3zkkkGBfXkSeytM7C1ayRGmZRi1e4N9hMvHjnsvWxG6sdiC3pZG3ySHeZT6fCzB2XJRuxB\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"miDfWSVyY8LnS39fjdEtM6QGB9ZCRomPUP\",\n \"pubkey\": \"tpubDA9GDAntyJu4vaovAdNZQTqM7je3qKXxCrVM1TWRPG1cKZwi3C3qATcyHJ66AyzJCiRXJr1cCgQ7RP9nEMAYVYdFUNkuBBjvcpnyitT1ikw\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"miTbyK19e5Mifkw3GviKECMuB7SD8uNajP\",\n \"pubkey\": \"tpubDA9GDAntyJu4TcikFKwdtCgByptUsRBPsNzWmRSGYK21U6VmpEeUcJ9vbUCx69jzi8PKMQvVe9etD747HqjSib5JuUvMwstXagbjPrdGULE\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"pubkey\": \"tpubDA9GDAntyJu4VEKZTExWXaaesksCxHP1vB94zaSJkNxuucvxif8Xj8mnvM2DR3k3ZwaemdwSryq7DoSvsfVxRofVonyxPK4TnUgG72kZMPy\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mikR5ppxoxtDyUVMDNQuET9GXEoyDpDW5a\",\n \"pubkey\": \"tpubDA9GDAntyJu4aWGYK2dsnk6WJA9FVC59CARP2tcpr2nEaREN5HAAiFMQwTcr6SKqS1cPoRW8FZUhM1hZFcMmcRTai6mtaaVVvXENYuHjtHC\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mk81sbpV9tBYhHvtKN6ibSKd4WU3vXKa7W\",\n \"pubkey\": \"tpubDA9GDAntyJu4oPq9mX4gYFiEKcXET58K2bccDoYzK8UojJn8CcwMJtxTt1vts5JvcXd7Wt5ZCQrDPd6YwQt6yW17xuCBqQZMX2eKKXWUcuK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mkeeWWvvasih8pxvgSEkA1c2rBd49axpTc\",\n \"pubkey\": \"tpubDA9GDAntyJu4KBYNBWK2qcuZuzYRSD4DLhENB2qfHuC7gt1D2HmMwEBC2TJDJpFrQSsxCzMnkKkaQot8kQicuUmargvMS7TEjkf7i6qPzkA\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mnvFN837dbVijQKpH8sdBubG49H5NAc35i\",\n \"pubkey\": \"tpubDA9GDAntyJu56gyJHnmLhUyqPo1t1fV4HsVeSMcWSE7pq58v2EcPJLFETLeUpzKaAzwNHcopCjd1SVqcFkuniL4DVsL634VQrVCnueVVSLG\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mp3Xme43WRf68ChLmeu7Z4wFRmFsd1onhu\",\n \"pubkey\": \"tpubDA9GDAntyJu4wgskUZLoks8DwywAFvHM88dENWdpZy7stVt3k8wdEu9ar3rW6BisqWeGWMtnmuEsAq5HEFHw6hHXtSyv53fifeA2AQ6W3cf\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mpruPXGjgficKSUipXDqVZXYFdBrUx8kFG\",\n \"pubkey\": \"tpubDA9GDAntyJu4s4mbSL5NxDAFU3T4NFFcHs46ESJbWL1peEZkEifmpFqzFcBUCDm7P6A8R5tdKakEDfrSp6XU4KmuJwuWHiPrAy2T6FH9rN1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mqDxVnFJechdp4F4cVHKt5onNecc2dYGQP\",\n \"pubkey\": \"tpubDA9GDAntyJu4Mbih9hZqspD3bbkDKcFUiQNJByPVe3K7LMmcoe3YQQ3bomd4PYicFUpBARRASCngboKyMCKzLo4WKJfL7hZp4BaVsXvSJa9\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mr7xBtmH7zv7onquMnjnqWJttjCxHcYiqX\",\n \"pubkey\": \"tpubDA9GDAntyJu53wgZwEL1KBL3BG58cGYGLMKSvsvqB8QGCEjsANsYHdZ5ECvP3JuyP9RBx8vNdKHD1P8sjHbyhLmy392D9y2yJEHCo7XBvR4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mtHhS5DNArEhjme5z2P9952L6KqVq7AU4Z\",\n \"pubkey\": \"tpubDA9GDAntyJu4zTKAP676gcHBz4gW13JiJnceHdbCkjGWccVuwS8pzrwL5e2nWro3fkeHyv6SaGjti2yKSTUbextvup3DRYLG3hQhY62h71p\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mtQcTeVvcERC4MfPcV4uqa5cxVD6wDnKW3\",\n \"pubkey\": \"tpubDA9GDAntyJu4Q6ZRwKjGvpdr6HFN8JfrXidHVm1edmCB2xbjbuvZyGSA4pAGdTC5JQdXxjnF36t3YdvUY4tEv9SsCJ13FsZ2i8XtyfewrS1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"muhWUpXzJExEgF9V7mLv6vx2vszRs3Qgoj\",\n \"pubkey\": \"tpubDA9GDAntyJu4nYyLuaUtNz1GKY77QAv1W6PchMbS9AzF6N7gJNw3WkEdwdPKHWQZV1QkJdy8SAsrHFzABoBSQUkyJy2u6mMJKyyusub7sx8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mvU8GEnbv1idD7cFAwudn69Udz3iESw8VX\",\n \"pubkey\": \"tpubDA9GDAntyJu4UdzbbF3TkegA6MnSHAxbMndskjTw6mtDudvG2DL4C4tKwo8MXpGhAmpaMjhsDTC4RhUiYztKUhA4WmdZUzeMWdi8jz3H4dS\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mvVwL7Yofnv9LQMXNfgZt7yr4ADk4KM1mo\",\n \"pubkey\": \"tpubDA9GDAntyJu4i8WZBkApa6a8G5HBV9Lh9f4MSh9qR39VLuKY7Pai9qDsv6X4WkDnGA5ESUWVczJG9ZwbDR1zxMvd8rLx2o9V1Hpg3UQE3Fq\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mvWHVPoPBWjgQX196Gzqygd5p4msgy1rqe\",\n \"pubkey\": \"tpubDA9GDAntyJu4hNeoKEV8Ysndv5LcssukvFHKkw9tr6DhMTZEPCKvaESnoNEwGPceUeU4iVyTw6dxoGQMVfr3594g1tHZQikNWuT7ZTKPjDY\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mw4eEbTze2PTkr93tgi6RERKjPKEPqTGqB\",\n \"pubkey\": \"tpubDA9GDAntyJu4HFiB7V25YDRy2Jz9eX3hFj7e84bLPCvYPcoYvTd96e8TF7nqXZUkbtyDzgfwnxrqsZV6LGWthpW8NbstidVc6Bhn6zneaUR\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"pubkey\": \"tpubDA9GDAntyJu4JC9cTuJEnqBbWQA3gC9o4vWMK8v6DgeFHAmARbhdqJbgR9N8DMqvSa69cZFgLY2eKbtPiWubSmzZZ7VFnorrpoviJqSn5A4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"myrBDH4gYYrJTdzJjtmweZuV5JfBXD7omH\",\n \"pubkey\": \"tpubDA9GDAntyJu4FPk2e4eZ9TZwH6nSHwt9Ke4gnqD7oUNp9H4RricM7hQbSuAmyZ3bbsyHvEoqWbcFq67BBEsHkp5GdHfUpfVbzuNKDKvbvLc\",\n \"used_times\": 1\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"n1CmdQDFBA3TWqx86QkV18xXkSTVMxXw7a\",\n \"pubkey\": \"tpubDA9GDAntyJu4XqB9gvhp7eZz92f73Hf7KqT4PpYL4U1FnN4fmq7bJ2EUQwiieg85exmHoVVZtA4L2AvHHQfp56uASbCNrBtE1KZVHzu9mhj\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"n1JQYR1iyShbv9tXY9hUwmvsrTmhQMcRP7\",\n \"pubkey\": \"tpubDA9GDAntyJu4QzkjXj1RYvQ9QZkeK6H4bcwFyAxFi7342Dv6v9XMAqrCkjACuzhMeGs1NsidF7YYdvyJRa6gZ8HvKCAgWFKzykaGGjLtz9c\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"n1ZRW4PLiqZDPPDvmmQeaHH3cV2H7P367j\",\n \"pubkey\": \"tpubDA9GDAntyJu4MRuvWJ1DeTxBRCy5qnDs7iqJ4V75hYcqNuCDcDanYgNxmHiQV3qLywLycfcy56rydX4aLGmHJ8b9Xjy1JRwwGGqTpbL7TxM\",\n \"used_times\": 0\n },\n {\n \"account\": \"n3bEdKkGNM2C5MaXqiQqQVK1ouvBeLHFWr\",\n \"address\": \"n4BkgTZV2xNeusnQR7zDz4qNYsqMScMFpN\",\n \"pubkey\": \"tpubDA9GDAntyJu4ERGsQv5uteFAJE6ZkcV96wT69SQzVooniiVX6k1MnTDA2kuvRGVrnP2Aox7dcC4B2oABfAHLSjUBY12zqqW8KFs5RzPuzdJ\",\n \"used_times\": 0\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mgPPU7ADWLC3ipJsmJKuezuxvtBmeE94V6\",\n \"pubkey\": \"tpubDA9GDAntyJu4pkRTi2fFETHtUGidLih3PZJtjgHZGToyN1HJ8XJ3XHprwf1Aeo9YaWiYx6DUr2oPv4uZJA76SLCB8SE8nQYjgF6wJZUjJNp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mhsmABN3PFNfSGJ6mKpsYSxHTmGyDxpvSn\",\n \"pubkey\": \"tpubDA9GDAntyJu4GVzZwauyu3jDcMt5X85RVLrzwUhmaEzuekrSvuxDW5XMqe2BnKrwt3yTN8vB6vRz1cBAF2h2ybFC4CZZ3DT979QjTD5nXpV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mi6wBBzvaRytaontKZJDrRiq5NibL4uJiQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fs1AQouXbSsZM7vxQ15BqahHA6eunNbSPh5mLBP8RpZidcLAJKgaVh92irPvSPKTv8bdMsjvsS7daGwSrEJTPDyuTwuJ9VG\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"miAkRdfxbrnciwB3KVaYJaZaf91cdMtc5t\",\n \"pubkey\": \"tpubDA9GDAntyJu4h2TgBKdEpXTVtrXXEXbHNcZZbHtbRjTAWad33epD22XSW8C8zP6WHPY9FTd2N3gkHjMgYUiAco2v6m1CVtdic549qAgw9qt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"miLf8GzjCmqXfeVrwtYWdxo8CAo7jH7xTF\",\n \"pubkey\": \"tpubDA9GDAntyJu4FT89iaScN5HE5LJNdGdMYRZ1U5jERRadXwcHvSF5qwspSFGcz7irZGd1D9oBRa45Gkj4wDHYYJ7P11ckdYVaZAf3rfVMUzZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mjfMfMEGzJbee11jUJL2tJSBaQBp7LEfnf\",\n \"pubkey\": \"tpubDA9GDAntyJu4kQkVKdUSavxfhBZrupBncybrEu5mfwRuk3wHDWZh8n52ooVChMp9aDJh4pY5uEFhyWFEnmhE88VXvESgbREXQtfzyXBvkne\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mm3CQGb4hTuvVE1J5JoCtEtbgSvnZQiVnE\",\n \"pubkey\": \"tpubDA9GDAntyJu4sDfGqSMVjyWPzppcE1KwwN6zxjxJFzU2c2RcHbbqfeyJYQvMwvLSBvRMZuwuZxC5gr3cKyBNt4kyChyhZss8nKZs7aLtTpz\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mmk7dUxxw7eYRracDfRjFgyB8rbtN9PZZV\",\n \"pubkey\": \"tpubDA9GDAntyJu4wBjf8wJzFkBZfCK3rBZAtcvJCZtm3VihjLyvyqJH62wvjQpBMZ1Y38haLHDKHQQ7g9HhhvgtEWauS21fqHduSFD4edGiq5w\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mmvQCc54QM8ktAnsfR85Gakp82Cv5ieFUz\",\n \"pubkey\": \"tpubDA9GDAntyJu5471xdcwhNGp1538yuv3AN3xPD7u1PxcqxdfdukR2sFyjwLEV7W6tguVqjuUXcphAsYDHHNKKbXj3C3WaRyFYP6VE4tg7UYX\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mnFHXAQjvnuE9SgBWvD72AVbLgR4nUBVm7\",\n \"pubkey\": \"tpubDA9GDAntyJu4N9QQyoJwUnKeZNCu3FBs3MtEfuuaa2b7PLuUK17opWGLzLUmAryRLz4K6jUWkv8wDxFBoXWkLpPvt6qKduSYpBYsX1awQEu\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mncSaTN1WX7zCG7bGhRRKuDsiy6i9vyjnz\",\n \"pubkey\": \"tpubDA9GDAntyJu4zCYE3AgeWnUCEgwf6tcpGrogVkDgE575hoMCB6Q6qrtNnjccT68X1SwHnXaUBe4xpZd6eQdsNSMV1yCS11ThAgiKQj8AvzB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mpJordtg5jPKQJJ7FQNjYdXhNvLqtRf664\",\n \"pubkey\": \"tpubDA9GDAntyJu4QuxKtBFFMgxHHmWoDCvMiQcZc2vEDxNztYR7VWiVYDWZZXu4ovetSu83MvhCLwM8EP5pr84EvipfgEu8vcTB6Kx7d8vic7b\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mpdeuAXNqFKYp2SiGcWaDQkQYfu9fiatKm\",\n \"pubkey\": \"tpubDA9GDAntyJu4aNBjTF8wg2jeHYqoV6U4pE35S76jpv9zM3ZiwuytSTYjSDj7BBuy4Jvkmgvwvc8HkDFr4qiDb7RYZxWpjybdXRZeDRFvF55\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mr84DrpXtnaJfxGNAgD4fWaYwvz5dodfXW\",\n \"pubkey\": \"tpubDA9GDAntyJu4MNCCsvkaVyoEX7bmrwZH5A5KL7U6yswvURApiD1Ajrs5p11VfrSpAWfsapR92uSuGKoytRGiEes5nwmRFYiKVQwmTpmFkL9\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"pubkey\": \"tpubDA9GDAntyJu4Q7w41ViLzSeCd2CFP3BWwHWcirYjqf3pAt2WGjz7caGKceb4h49kRUriYuAnUtpNJago65pZCURJsaW3ur7Y8WUfyS5C2Vw\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mspEbjhFwNC7XCuGCrNvdvKkTxfc8qwRwj\",\n \"pubkey\": \"tpubDA9GDAntyJu4deCA29S2j76D2HZTmFP8BGouzv4MjwqAB7gWXzwxi5qHXuBg9i5RVR6Dp9MFYoqajbkBiktX5wiopdKjKJXYKco4fCD77XN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mwwiToKzdWLwRTUioncBoA6565db9wRZJ6\",\n \"pubkey\": \"tpubDA9GDAntyJu4TtH3yEd6Ly52akmJaiQz3iAy8HBGJJCtvGedNGLpgWEAmi3CC1phMZXUf9nC4eTuykVjuGXqXrDMQTCe569QaJm9cZDHDHb\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mxaxw2cPSFFHBZWWezbcu7zwykRZNK8zRx\",\n \"pubkey\": \"tpubDA9GDAntyJu4m9173VtkVKUVrEuRhs8SiXzKNsjVXgaToLn82sU488ajFd7uRA9zsEYSAVVujpWjgFNzCkSxvP4uNAJZFUSvprx8GMxnkEk\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mzU5SmrVbFHEGEaPvFpF9xWkfDy4FC485T\",\n \"pubkey\": \"tpubDA9GDAntyJu4LYVwuGU5F26ntDQ2GS3FPDmzxktGQqoKeBVmYtBxVyB4q1B8ZUEvwbpPEdepiR7xjTWdHPUtqXhq15DmERdhkjdKsQDRgBT\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mzVwTtAzcQGYqSw79p4XwNt3JiJiX6u7pu\",\n \"pubkey\": \"tpubDA9GDAntyJu4NqdqLgEqPv2HzJGZTVaWhDJgWsbj4s54pJVNZB2nvbqw8Y4G3i8wADypF5M386F1ukPeeNc3pHYPWvHn6yhpfV91RPvV2F7\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 53,\n \"total_pages\": 3\n }\n}" }, { "title": "List addresses in specified account", - "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfYNAfU3cTUGWwy4aG9MLnFaDF8VcceF5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4K6z8Bsi95GPw5FWeyh1MMNxN7WLyhZSHRHAQ1eHWmTur1ULo7Gqa2iS1L9Rc2w2TLCXZsiN6tfX4xfkYhzRboirfSpJygNU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfe2yWquHbZGuzZBcnM1h7ezpDpkXCTySN\",\n \"pubkey\": \"tpubDA9GDAntyJu4EvpC1MceQmRCKi8iYFdMU5pyB2HfXGuyBksrcS5qGhdPRxN5peuYKv77T4g9XePbaEHgbfxkzacfComAjRisbHA8qJgVX1h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mfwN3xEhEbjUTLMRx2sJd1FTmexU1rPu9s\",\n \"pubkey\": \"tpubDA9GDAntyJu4J6SvmJM5env2f124q5Y32CCUMA4KYt249iQJHTz1H4HkY2sLMUqssgBKU7BXPPbc7U2ZQYtXPvosRvzJMstsnnT36R3XS8R\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mhgKgpRQ9B8JhHYN4f77ejB3eJqAEHPYiQ\",\n \"pubkey\": \"tpubDA9GDAntyJu53Buf37KHfs7rKaekLy9QbuZwerEX6irDq1m7ojfxPW2QkJJDVCQYgKRmngv6otY3batqV2h8xQXGMsPeqreJJxdBPTAwUEL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mhqg6NA2M9T8dPwiuQcVuG61sQSBbSp9Ls\",\n \"pubkey\": \"tpubDA9GDAntyJu4NY6xbhXCVj1knLFWfjeNd8xxn5cRY3rzK1kiVJTiHpNztmXukKSf3Pu2Sc28x6WZ6hZrBxawK9njdP1siARKa64AjeEw7XY\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mixdDvkzVtMhHxP455y3U9BxPVUYpVqfGJ\",\n \"pubkey\": \"tpubDA9GDAntyJu4MvKEP6pFaqQgqmjQ4iYq5D6a8SdnScHKpRUXDKWdxXNskP3nd8HrtCBJZPoTSSMvC4RayuvLaqKnqLPgaNukfbr73XARXCn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mkA1WgwFbgchsdEq2BKmYWeaQxL6FjCW45\",\n \"pubkey\": \"tpubDA9GDAntyJu4sc9ziqCDTS54EHH5ki9uJ1YfmjoR7zeJccgXtVm5yQxV2nA1Y6SS9HxFzBtDquSbKK8quyGGGSZWvEK1dQstRfzbGANi3UN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mkvJ8MD3DX7SsBbJVgsVWit7KSxkmNvP4m\",\n \"pubkey\": \"tpubDA9GDAntyJu4pz8ia68bFAEZ3dHR3CYVvtafJbCnpQWsB3SFCPBgfU9VdJQjnh7hkqk81KoQ87VLJyW3HydAfzUzscorstE3Fu3RrL6m8nu\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mnJVfoJKGW5QwTAxAKUogiStGqGMi9HNy5\",\n \"pubkey\": \"tpubDA9GDAntyJu4RBBie6encrd8Y8A68DZ8FWfKVGCj8Be5PVkdVLyfV48vW1p8ee33qTcBtELUPi6g12JFfFbEg1Sw5JF5k8HGAp42w3We18X\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mnUehAF1b4RfdyxmCLXj4jp7VU3DpiEgNb\",\n \"pubkey\": \"tpubDA9GDAntyJu4XHGJptXuRsUTHWwARWHqTbhddU8kA66V8yqs4nywt1HJbhaAySMWRra2nN5Ajmxf1egHqDZo1WRpAySbNh4UPkYshpwsFc8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mpCcvL57WTbWJjFtygEVj3t8G4aphqZvT6\",\n \"pubkey\": \"tpubDA9GDAntyJu4LiJmctWWofyrehLxAM5aQ7TS9W5dufVszQDBejoZHpJVuRV4sdwzxZ2XAeNPafdscD3YfcNE923aexNx6gjCwM2PfQv1fJq\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mqk1FomiNA88HZrxNP7Gc79TJ8D3QoXRfw\",\n \"pubkey\": \"tpubDA9GDAntyJu4GmAPiKBUWoGj6C2EMnmgtV6CbTgpsS9t2BZqVJqqaKvcbPoiSadXghaMddU4NMBzaGqverv2k8Y46ycHBafFzj5rz33ni4z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"ms6a57pGmU4AYCKt47Coy9m8bZ6ANyBbY8\",\n \"pubkey\": \"tpubDA9GDAntyJu55r3BFjh4XXdzUc3AmBxNng6CYLm5H2Ktnq8QuKC4TKmGCrcnFhk9iCShyGXLLMrFHeezunFzRfUDNsrxTAevdojYEp2hDW2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mu56hCrA8M5BWCHhkmQrh7rqWkK7QRs16T\",\n \"pubkey\": \"tpubDA9GDAntyJu4vpqWb4x2iyLRshPjnTsatFwPDuzSnPrQV1uHCHWGNi8jsvRu7jnPcnLWQASh3amX3ezDwxeKX4DdYoXaUYzzpmPGkXb2RGD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"muTpCvgtsoHyckenmY2xomphtAGH5kLEJS\",\n \"pubkey\": \"tpubDA9GDAntyJu4jR3pxJ5zGLzow77PCeNNzaTaFTGfCeQJN4pDqouPWsmagQ6MBUENszEBc8oo4RCRTH8j26Mas7d5p8SBS1sziWjfcx6YkpA\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"muXAwAWJ4ZmhRsce8AfDzLBBsS7Ji8UuHg\",\n \"pubkey\": \"tpubDA9GDAntyJu4UKVpFxLDPz4oLNzAM56fKrBHNjt9tDBgMYGGU9NGTXiMhtDTnuZcS4qaxzeDh1QkqitgX22sjBueJoaqBzXiDX6Da4BdhWa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mwtoiYVnswqRLUz7mmng3f8NPNXSN4AWxW\",\n \"pubkey\": \"tpubDA9GDAntyJu4dYBRhCysuYpELVPDMx3inTvgWpj3bM5jXPz9pRSGUjizWuWKdp2jvLTvpZT3GYnKA5sLewpbcW9WTRNYfk8chc1Zzf9X122\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mxmwkA9ToWHB4rWHnMZdqviJ59hX7MxKYh\",\n \"pubkey\": \"tpubDA9GDAntyJu4RVVRBTYLioBopNt3YKoyK46189QfPjke2NZdx3J5HCU55QF63ZKSSZ6A6xGZdRJo8JF8p8APVKUo7h55nGnM74aNYroc4Yp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzF5DDRUaAuAD1rh7KZkfebqMzW5UVVdi8\",\n \"pubkey\": \"tpubDA9GDAntyJu4aNZnHjQmb8kxZBnTk8vQ17UYzroge1dzK3DJ8Vj9LhNvXe7zdZx2iHphs5yaotuoXmPetXzDrW2WwUsbj3Pr1ktFpyifjNM\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzGNmG58MSH9nq31V6aV66eLjvqCsMmjVa\",\n \"pubkey\": \"tpubDA9GDAntyJu4t8hLK629tzmUEsbQ2uJeBcMJRegzT64k6qhtGp96TEqSzwFXBmH62oQo7LAhfn1aAQkDSMDNhtTaZoHCDwX1MBTJPP9hPNC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzhoyVUrwd85CcE95Pb7qGahSZcuiBZZLm\",\n \"pubkey\": \"tpubDA9GDAntyJu4yu2itQEHfipzkGt9g797BKw96Z7a7tsHfSwcofpLrM7nT91dnZ3rx7XJxyPY6LVS2N8zHmexHsTntwWtsTu2YxWJnqUUicC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"mzz55CJvm8x1pyXNmYp4bLAFrJHH88zyGY\",\n \"pubkey\": \"tpubDA9GDAntyJu4EJaUwRDNzTMZYZyVvb45PzsoNYctHcP18B4kHYqNWuekZ2GMhL2xq5g2JRYHmFQsLGcNw18Dbzp93KAvGuvKDfQ6gcGJZcs\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n1AEgyEzLf9DDd4peeVPoPYsSBvvTL538h\",\n \"pubkey\": \"tpubDA9GDAntyJu4U3w5woFVA5Cc8AvHaTocyzYog8yFnXvqQnjjVawU615EKa4iMsmtyDVMCydJqxbWrNMe21NnmjCSshUcBuUhXMnejtRyJUG\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n2XNiLt1uB2mNCnpCNAnNdYBL1HokSh6WF\",\n \"pubkey\": \"tpubDA9GDAntyJu4miVkWtxkWYaWDhvaUnGPatSnkBkqo4qmjpp6xNU71bfupNwG5jPD3JKdzkw2qMihA9L7B4Yf4JsRQRRGXwayxF9ypsJVypf\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n2ygzYZvNH3GhoFnCCSAyc2aRB8AFasvjF\",\n \"pubkey\": \"tpubDA9GDAntyJu4a9FVGKUJ5eAmfec1CrY4CrYdnCi9SsAvSX9JdTUJhC1QJ6o7mx5zK6SiBjpCoVw3UA7azUFtFnomZjdHLNisrns1JudaJsy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mhEEGvZLKogxRp6mHgbWjfKXmN9eFF7xnV\",\n \"address\": \"n36XJWv8Bg52bC9J6dSUwdrYShPPREHHFV\",\n \"pubkey\": \"tpubDA9GDAntyJu4gDDpgL5hnazqDnc2P2z7La6NSMACpAi1JqK8QxWvxgx2qKrR8p9oN3VByphqjTcrWw8Vr4ssok7ZmSrFaTqQdf3wt82sBcf\",\n \"used_times\": 0\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mgPPU7ADWLC3ipJsmJKuezuxvtBmeE94V6\",\n \"pubkey\": \"tpubDA9GDAntyJu4pkRTi2fFETHtUGidLih3PZJtjgHZGToyN1HJ8XJ3XHprwf1Aeo9YaWiYx6DUr2oPv4uZJA76SLCB8SE8nQYjgF6wJZUjJNp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mhsmABN3PFNfSGJ6mKpsYSxHTmGyDxpvSn\",\n \"pubkey\": \"tpubDA9GDAntyJu4GVzZwauyu3jDcMt5X85RVLrzwUhmaEzuekrSvuxDW5XMqe2BnKrwt3yTN8vB6vRz1cBAF2h2ybFC4CZZ3DT979QjTD5nXpV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mi6wBBzvaRytaontKZJDrRiq5NibL4uJiQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fs1AQouXbSsZM7vxQ15BqahHA6eunNbSPh5mLBP8RpZidcLAJKgaVh92irPvSPKTv8bdMsjvsS7daGwSrEJTPDyuTwuJ9VG\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"miAkRdfxbrnciwB3KVaYJaZaf91cdMtc5t\",\n \"pubkey\": \"tpubDA9GDAntyJu4h2TgBKdEpXTVtrXXEXbHNcZZbHtbRjTAWad33epD22XSW8C8zP6WHPY9FTd2N3gkHjMgYUiAco2v6m1CVtdic549qAgw9qt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"miLf8GzjCmqXfeVrwtYWdxo8CAo7jH7xTF\",\n \"pubkey\": \"tpubDA9GDAntyJu4FT89iaScN5HE5LJNdGdMYRZ1U5jERRadXwcHvSF5qwspSFGcz7irZGd1D9oBRa45Gkj4wDHYYJ7P11ckdYVaZAf3rfVMUzZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mjfMfMEGzJbee11jUJL2tJSBaQBp7LEfnf\",\n \"pubkey\": \"tpubDA9GDAntyJu4kQkVKdUSavxfhBZrupBncybrEu5mfwRuk3wHDWZh8n52ooVChMp9aDJh4pY5uEFhyWFEnmhE88VXvESgbREXQtfzyXBvkne\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mm3CQGb4hTuvVE1J5JoCtEtbgSvnZQiVnE\",\n \"pubkey\": \"tpubDA9GDAntyJu4sDfGqSMVjyWPzppcE1KwwN6zxjxJFzU2c2RcHbbqfeyJYQvMwvLSBvRMZuwuZxC5gr3cKyBNt4kyChyhZss8nKZs7aLtTpz\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mmk7dUxxw7eYRracDfRjFgyB8rbtN9PZZV\",\n \"pubkey\": \"tpubDA9GDAntyJu4wBjf8wJzFkBZfCK3rBZAtcvJCZtm3VihjLyvyqJH62wvjQpBMZ1Y38haLHDKHQQ7g9HhhvgtEWauS21fqHduSFD4edGiq5w\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mmvQCc54QM8ktAnsfR85Gakp82Cv5ieFUz\",\n \"pubkey\": \"tpubDA9GDAntyJu5471xdcwhNGp1538yuv3AN3xPD7u1PxcqxdfdukR2sFyjwLEV7W6tguVqjuUXcphAsYDHHNKKbXj3C3WaRyFYP6VE4tg7UYX\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mnFHXAQjvnuE9SgBWvD72AVbLgR4nUBVm7\",\n \"pubkey\": \"tpubDA9GDAntyJu4N9QQyoJwUnKeZNCu3FBs3MtEfuuaa2b7PLuUK17opWGLzLUmAryRLz4K6jUWkv8wDxFBoXWkLpPvt6qKduSYpBYsX1awQEu\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mncSaTN1WX7zCG7bGhRRKuDsiy6i9vyjnz\",\n \"pubkey\": \"tpubDA9GDAntyJu4zCYE3AgeWnUCEgwf6tcpGrogVkDgE575hoMCB6Q6qrtNnjccT68X1SwHnXaUBe4xpZd6eQdsNSMV1yCS11ThAgiKQj8AvzB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mpJordtg5jPKQJJ7FQNjYdXhNvLqtRf664\",\n \"pubkey\": \"tpubDA9GDAntyJu4QuxKtBFFMgxHHmWoDCvMiQcZc2vEDxNztYR7VWiVYDWZZXu4ovetSu83MvhCLwM8EP5pr84EvipfgEu8vcTB6Kx7d8vic7b\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mpdeuAXNqFKYp2SiGcWaDQkQYfu9fiatKm\",\n \"pubkey\": \"tpubDA9GDAntyJu4aNBjTF8wg2jeHYqoV6U4pE35S76jpv9zM3ZiwuytSTYjSDj7BBuy4Jvkmgvwvc8HkDFr4qiDb7RYZxWpjybdXRZeDRFvF55\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mr84DrpXtnaJfxGNAgD4fWaYwvz5dodfXW\",\n \"pubkey\": \"tpubDA9GDAntyJu4MNCCsvkaVyoEX7bmrwZH5A5KL7U6yswvURApiD1Ajrs5p11VfrSpAWfsapR92uSuGKoytRGiEes5nwmRFYiKVQwmTpmFkL9\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mrp2JaWrz4tZT9bP8QfNxgobHttaHjAk4N\",\n \"pubkey\": \"tpubDA9GDAntyJu4Q7w41ViLzSeCd2CFP3BWwHWcirYjqf3pAt2WGjz7caGKceb4h49kRUriYuAnUtpNJago65pZCURJsaW3ur7Y8WUfyS5C2Vw\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mspEbjhFwNC7XCuGCrNvdvKkTxfc8qwRwj\",\n \"pubkey\": \"tpubDA9GDAntyJu4deCA29S2j76D2HZTmFP8BGouzv4MjwqAB7gWXzwxi5qHXuBg9i5RVR6Dp9MFYoqajbkBiktX5wiopdKjKJXYKco4fCD77XN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mwwiToKzdWLwRTUioncBoA6565db9wRZJ6\",\n \"pubkey\": \"tpubDA9GDAntyJu4TtH3yEd6Ly52akmJaiQz3iAy8HBGJJCtvGedNGLpgWEAmi3CC1phMZXUf9nC4eTuykVjuGXqXrDMQTCe569QaJm9cZDHDHb\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mxaxw2cPSFFHBZWWezbcu7zwykRZNK8zRx\",\n \"pubkey\": \"tpubDA9GDAntyJu4m9173VtkVKUVrEuRhs8SiXzKNsjVXgaToLn82sU488ajFd7uRA9zsEYSAVVujpWjgFNzCkSxvP4uNAJZFUSvprx8GMxnkEk\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mzU5SmrVbFHEGEaPvFpF9xWkfDy4FC485T\",\n \"pubkey\": \"tpubDA9GDAntyJu4LYVwuGU5F26ntDQ2GS3FPDmzxktGQqoKeBVmYtBxVyB4q1B8ZUEvwbpPEdepiR7xjTWdHPUtqXhq15DmERdhkjdKsQDRgBT\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmQtQwUMGRBRHjhmdBBoMR5EnzfuwjkFGn\",\n \"address\": \"mzVwTtAzcQGYqSw79p4XwNt3JiJiX6u7pu\",\n \"pubkey\": \"tpubDA9GDAntyJu4NqdqLgEqPv2HzJGZTVaWhDJgWsbj4s54pJVNZB2nvbqw8Y4G3i8wADypF5M386F1ukPeeNc3pHYPWvHn6yhpfV91RPvV2F7\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 26,\n \"total_pages\": 2\n }\n}" } ] }, @@ -808,7 +820,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\": \"mfyjzur5kkyBg5YDhx4UiAabb2rx2xMsE3\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mrsoe628TYsWSKR8MDqvQ6SoNzr7FFKbJD\"\n}" } ] } @@ -858,10 +870,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete 5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"\n}" } ] }, @@ -920,15 +932,15 @@ "is_required": false }, { - "name": "page_size", + "name": "page", "type": "int", - "description": "results page size", + "description": "page to return during paginating", "is_required": false }, { - "name": "page", + "name": "page_size", "type": "int", - "description": "page of results to return", + "description": "number of items on page during pagination", "is_required": false } ], @@ -939,7 +951,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 \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5\",\n \"776756ff093fa5d222076c94f4b0e167e1f189aaa063deb3700ac4ffcbb5d8f50888f02e32e462115305aa2c48520885\",\n \"e70b50e665ea448a5fd1e082c133528259b653b95c83b896e913ebba66daa0cdc63ffbd686bfe5621a8db21c9c9ff591\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07\",\n \"9ec0f4cac6307e6bee991de8ad301ec0186acedb3486a7a0d6abe1151d92cf90f45a654a7ae6a0360fd1e1b7cf44352b\",\n \"7678712aed66fc9b1ca75833f8cf5fff047aaf0ebfff0fcc1e6a7a32ac1306ad3bcbd75b8e68d59a0d9bac040c95fc59\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1020,10 +1032,10 @@ "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon 2b9f04f6fbbb1aaf58007e3a5167339f789c41d3", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012f48c527618951adc73e1347b06565d97d8a51ee2d169f21ab2ea21f9b763381000000006a473044022010d5d5a0382513e26981376da72e3a69b4c283af61602c9f6b2933e12cd93e5e0220341dd399bdc80cbd94b04f7db6163732a98420d3b18d5ee3181955deb3263d37012102c78c4b466b16d99ec2a0c38c236925b1fa4e73918bb740ba9c2dd17a11742259ffffffff0134b7f505000000001976a9143c2edd73c3f26e301dfe98820974e69aad8812ea88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mm1AyocQcxBmZUm8X4KN7w4yM8m96J9FY2\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"08d10283a51c0c520558b8ebf71f7b85fd1f4e75f9f0a94c7c5cec5101e106a9\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"08d10283a51c0c520558b8ebf71f7b85fd1f4e75f9f0a94c7c5cec5101e106a9\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon ae041f26572695df1a209b3c74c828882f5ce7c8", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000015b2f29b0288d85ae92e4da516a549d8ebcb4697e59352e175509cf8981d1776e000000006a47304402201f07a34fa13cd9effd1bff2a85c98ea2e6c7b0121a5cf956b2f185ecfbb660370220404d97006ec8fd4c07c57ba034632c31be000902a85b16c9dfc7bcbaaa34cbd601210313e17fc09279513929a852bd44416139755f577cd3acb59adb53f056d44fdc47ffffffff0134b7f505000000001976a9141cefe8e2f860584650a75d2b3c4643921a32f71988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mi9xceKxZqWi5wAWYLpaPwunmvXavWoHrZ\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"ab3719ce363c9b6a9fa6c30573cab90e861c186bf98ad1e9fd49d92d923dc838\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"ab3719ce363c9b6a9fa6c30573cab90e861c186bf98ad1e9fd49d92d923dc838\"\n }\n}" } ] }, @@ -1153,14 +1165,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\": \"01000000011c627e57c603b0773da94821755027f31aa215acf00628a34bd61d913e3438e4010000006a4730440220526501acbddf7b8193faf75f58bfd6fa2c5abf4d2e1f4f9c086cb21cc42884c80220383f4d9ed6b43cf8c2b7026359b798b007f9652c508fdd5eef51c7866f06a3890121039d0cd4ef1ba1be927fcf33368be83a3de89ba2039efd987087296da4c1e4e557ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec6d7576a914b149fb8f0354ef198b41d7dc59ed9a4c4065b37988acc462a029000000001976a9146a7a5af2adcb0e498acbc9c1580ba58c8423edf488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4BkgTZV2xNeusnQR7zDz4qNYsqMScMFpN\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238737,\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": null,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqDxVnFJechdp4F4cVHKt5onNecc2dYGQP\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000198a34d1a28a8e799635b53b49c3298385b4d2ca20fb49d6273efec3cda4310bc010000006b483045022100edf916c8d846f4fda3731be2fda2983ec5ed6e0635d50f798d95df583018ed010220557d5fe36f8cef3fc1646cda741edecfe7455552d423179fe39377b1e6dbf0c30121032980e29a46a717b4fbe52b3f361b74504bd051ab2f97e34ee716bf5184b81a9bffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce06d7576a914d95b5784a95ae27ac0e91d3ed5aa372b252825de88acc462a029000000001976a914588b4606dac5b7e014ae58e3653f5abf7603295e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mmPotqNkzNxjvasWVCoUdRncJyWjAM9aUS\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061597,\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": null,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mob8bq7tQUWnrbQDStXDFqmRUVLjzB3pMM\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\"\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\": \"01000000012f48c527618951adc73e1347b06565d97d8a51ee2d169f21ab2ea21f9b763381010000006a4730440220096be41209cf2cf7a326416b44eeb7b90d2ee5e66ce2b6cf23c4c4e88d0bc32a02207f8511af071028d4d1c18b2c8d24da624a601705e103579a08dbe0ac79ffe9ca0121038b4b78c5608ac2c38a87dc75a65583ebec0710d86234047aefd80c58bbc47549ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004913516977130c11c007f3f03b989e285d7819e87ef0081db836ea77f4f6b30ae72e142d489fb0f24dceaed1b512e588de70186df44a0a0b2de895454a57d758f121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9148d669513928185cd6d120aff9f7867d34db8505f88ace221d305000000001976a914e86ef8191aa516e8a21723806345a0cd1d0f2ae888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvnQKeWXrBFsnman3ekbTYfM9M57TD6JnF\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtQcTeVvcERC4MfPcV4uqa5cxVD6wDnKW3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"781d79c6676a8c32f1a29c5841f0772e2c68e11a\",\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#781d79c6676a8c32f1a29c5841f0772e2c68e11a\",\n \"timestamp\": null,\n \"txid\": \"be18fe4749b0225be27839ebb6463fb3c8e42968bbf3f81c7c969c163ab1d0ab\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004913516977130c11c007f3f03b989e285d7819e87ef0081db836ea77f4f6b30ae72e142d489fb0f24dceaed1b512e588de70186df44a0a0b2de895454a57d758f\",\n \"public_key_id\": \"mtmCqZ6buBWvrSybGwujzooVaCb8tNeM5y\",\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\": \"n2hwzq3j937oBARJtLLWCagiq69Vu9ZuGi\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"be18fe4749b0225be27839ebb6463fb3c8e42968bbf3f81c7c969c163ab1d0ab\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"be18fe4749b0225be27839ebb6463fb3c8e42968bbf3f81c7c969c163ab1d0ab\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000015b2f29b0288d85ae92e4da516a549d8ebcb4697e59352e175509cf8981d1776e010000006a473044022018a666ec11663ffa7282babbada7b7f8ec33df92babccc23b39074273bd85b450220709453f00a0ec5ae75cefedfa7a8652e329bbdb5e967abd7e515e195b89885a701210246529f040ca7cc4a2ee5b6715d4f5d378e2ffe5a70ce0083e55d25c582228086ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004d1f4730beecd53cf3e3a5f715f0c2cd170e59e8c1c53aa42a56240d05b8ed78517b67d96c1ffddfa15c854839e879eded40ca180c16d758a5c36f976f24a942c121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a91408d841ba7e00e00769e11f09720c39377578a41388ace221d305000000001976a914915a1cbf9a9c5a961f1945cfa0caf1d5b6f42b6f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvLoJuZZYtDY8iH3S2dSio4SRAtrwGQZPW\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgKimNUzMMtvHGDNuyhMAWMWM2QvmTAxR7\",\n \"amount\": \"1.0\",\n \"claim_id\": \"44bf7ecd0ae66ece46968d0bd6912b43b6246749\",\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#44bf7ecd0ae66ece46968d0bd6912b43b6246749\",\n \"timestamp\": null,\n \"txid\": \"4d99a54dea71ca8b31b2489678b77025d4bb427d68a4a12bcfa5d8bbf1a13a52\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004d1f4730beecd53cf3e3a5f715f0c2cd170e59e8c1c53aa42a56240d05b8ed78517b67d96c1ffddfa15c854839e879eded40ca180c16d758a5c36f976f24a942c\",\n \"public_key_id\": \"ms3ZAUGqp7PJsnYrFip1X9ydChSAeiYthZ\",\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\": \"mtmWDytiMEeZMKgEEKsXLTY8xg8G9xxm4r\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"4d99a54dea71ca8b31b2489678b77025d4bb427d68a4a12bcfa5d8bbf1a13a52\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"4d99a54dea71ca8b31b2489678b77025d4bb427d68a4a12bcfa5d8bbf1a13a52\"\n }\n}" } ] }, @@ -1252,14 +1264,14 @@ "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet channel list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\"\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/", "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\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\"\n },\n \"value_type\": \"channel\"\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\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1416,10 +1428,10 @@ "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"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 2b9f04f6fbbb1aaf58007e3a5167339f789c41d3 --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"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\": \"0100000002207a97258d57b51c955bb16de34d3fd6a88e04df6a6cb6741c8860e40e7a1c99000000006b483045022100ec88dc1cf42bd93120fc907f2bf2c2b1c90d20b29f15ac0da49fd1d94c07623502203f1b2a5f67f486b14c1c3ba06bcc4980c0576b077021ff60765adeb43c23e090012102c78c4b466b16d99ec2a0c38c236925b1fa4e73918bb740ba9c2dd17a11742259ffffffff82c338cc89e50612eabffd2bd367d35a884966281fe4c49945f20a9f0cb29180000000006b4830450221008e3eb18f2c5a2b6b8d9807bd6ac89c59e2d9ee9c98b0ba928bd263aead7570970220255d44758064c69593e1d6677af51aa95901d6438daf1bed21c386a87b5c3a180121020ae5fee00a2ea92d92c92ca8eacea85ea59bbc2fa6adc47a6093f13e23a50b22ffffffff0200e1f50500000000a6b708406368616e6e656c14d3419c789f3367513a7e0058af1abbfbf6049f2b4c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec420b4e6577204368616e6e656c6d6d76a914b149fb8f0354ef198b41d7dc59ed9a4c4065b37988ac6ebeea0b000000001976a914a775da52baa7e417481a5aa7e1765040b973a85288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mhK6L59USiby9g31qP2JpNm2QFjSvzMhU4\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1571238737,\n \"txid\": \"8091b20c9f0af24599c4e41f286649885ad367d32bfdbfea1206e589cc38c382\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": null,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvnQKeWXrBFsnman3ekbTYfM9M57TD6JnF\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"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 ae041f26572695df1a209b3c74c828882f5ce7c8 --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"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\": \"0100000002e4badbb4ab519f9b128a41860af21cac85e68e73e39555c12d38cca997dde3e3000000006a4730440220317a739a622b521c36e3e406cda84b8bc5841f07c7a3bf5f2568e6beefe6e8a902205943e1ef17fdcfc9946eea7e7f74eb2db1d164819e00f5abd0985db54b61422001210313e17fc09279513929a852bd44416139755f577cd3acb59adb53f056d44fdc47ffffffff8a740fa4c554fd37bbcc6c63e5739baf8335ffcae5f5fe519586196078603fb5000000006a47304402201bb36f7366c1374b6306e6b9883953433f546cce980bb49267bf2793c4ea481e02207c82ae22ea5fa9148a2007a58b11f3835d9366f3f437b3231b44418bf7de747f012103674b09d649fb51231602bc89b2486256fb035eeb6e499e3526441fb5ffd0c4cfffffffff0200e1f50500000000a6b708406368616e6e656c14c8e75c2f8828c8743c9b201adf952657261f04ae4c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0420b4e6577204368616e6e656c6d6d76a914d95b5784a95ae27ac0e91d3ed5aa372b252825de88ac6ebeea0b000000001976a914a29e3a0213cb61975a9ac169c847a15ee62b865e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mzfnM69eexBqBeqWxavtBj7GfVWKpYjuE2\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572061597,\n \"txid\": \"b53f60786019869551fef5e5caff3583af9b73e5636cccbb37fd54c5a40f748a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": null,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvLoJuZZYtDY8iH3S2dSio4SRAtrwGQZPW\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\"\n }\n}" } ] } @@ -1464,14 +1476,14 @@ "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet claim list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\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/", "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\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\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}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\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}" } ] }, @@ -1751,14 +1763,14 @@ "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"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\": {\"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 \"items\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2/astream#c\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": 1571238738,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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\": 1571238737,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"short_url\": \"lbry://@channel#2\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#e\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": 1572061598,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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\": 1572061597,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\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\", \"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\", \"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 \"items\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2/astream#c\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": 1571238738,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#2\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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\": 1571238737,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"short_url\": \"lbry://@channel#2\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#e\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": 1572061598,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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\": 1572061597,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\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}" } ] } @@ -1999,9 +2011,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"c011186b47f0499392fdd22d73a2ec5426b8556f\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"e2217d3c0e7b228476c78dd84f8af4520a01c112\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -2108,14 +2120,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": \"0fed669177b7d4889715b0522ad6f103\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01d3419c789f3367513a7e0058af1abbfbf6049f2b9792102b78fcfdc53716733ffce3fca52fdeb3971fd08970bf4d1c0e1c61e1c7409b65f9ae0326773cec1417748ca581c1cbb6ecaf6f892ac84d8350cadce0fe0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ead8d80c803c7eea3c9d6f2575b6734c93af8d6ecbbf7b19458e564d1e7f5463ae71e638d7dfdc9f57e709482bdfec3d\",\n \"stream_name\": \"tmp5h1lifqx\",\n \"streaming_url\": \"http://localhost:5280/stream/04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"suggested_file_name\": \"tmp5h1lifqx\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"9c6953cf591f7a3da181bf219c2320143da4624f\",\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\": \"70db0fefb7af8e5304b321dd53d8c343\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"n1CmdQDFBA3TWqx86QkV18xXkSTVMxXw7a\",\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\": \"1571238714\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpvc8a6jnd.png\",\n \"sd_hash\": \"dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5\",\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\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01d3419c789f3367513a7e0058af1abbfbf6049f2b8d658916a8071989a0988f94d43906186d08f387a2ed6054842cd633eae0c2d53b5008fd900d2a0b754b710b786f3edcc872ccfadabc91ad279bb59fa62f72f00ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d7076633861366a6e642e706e6718632209696d6167652f706e673230dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728bae69ced053222080112196fd7f21fdd96ca7b622fbabaeb1930b734282fa4864708edb5188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"734aa483bb03cbe06ffa1b675030581c1e204f691d563f0129b0a3dfe172712c48e6ac87cc3761e6e5760445c203d61d\",\n \"stream_name\": \"tmpvc8a6jnd.png\",\n \"streaming_url\": \"http://localhost:5280/stream/dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5\",\n \"suggested_file_name\": \"tmpvc8a6jnd.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081\",\n \"written_bytes\": 0\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": \"652f5289389a3fdb2191af148322ae79\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c8e75c2f8828c8743c9b201adf952657261f04aeb2eb4354a6322b6e3b16a2675170aaa646793e7e27e3c504b97676be9196c88e724d5a5048259a3ba2482da99d5a9cbdf7cda532ae7f87dc3164d6a0233fface0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"a3d65262d708527c221c55fc9ae5927a4d0da1930e969d064e0c4c7ba23e38200f3f739890c4700a78d0337ee43291ad\",\n \"stream_name\": \"tmpd9tghh31\",\n \"streaming_url\": \"http://localhost:5280/stream/5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"suggested_file_name\": \"tmpd9tghh31\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"446837f3a248f50ac0d030dcbb49961659e0ca6f\",\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\": \"393dd8b7913d9b48aad055de52d2898d\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miSHRUVbqihRWzLBJnSCj3LPCxWpqQwNu7\",\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\": \"1572061574\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp5a9ak2_8.png\",\n \"sd_hash\": \"d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07\",\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\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c8e75c2f8828c8743c9b201adf952657261f04aef3e35f5f78289ef10ee7d1ef99502d83a1a44f420e65a16e7d1b2fbd627e725b654e7be269b3405e39618df90c7c01c5c493a63342863bdbb2e1e72fa9f407230ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70356139616b325f382e706e6718632209696d6167652f706e673230d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f7267288683cfed053222080112196f200643c672ea3f3f0d8eed5e0d06e5ced824ef56374659e2188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"986bce7cd8478be22a30fd7e3ea3e1bda93a92ae86daee5430ac8a56a604f193cda03c969acc50ada9bb632c98fdec29\",\n \"stream_name\": \"tmp5a9ak2_8.png\",\n \"streaming_url\": \"http://localhost:5280/stream/d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07\",\n \"suggested_file_name\": \"tmp5a9ak2_8.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23\",\n \"written_bytes\": 0\n }\n ]\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"c011186b47f0499392fdd22d73a2ec5426b8556f\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": \"0fed669177b7d4889715b0522ad6f103\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01d3419c789f3367513a7e0058af1abbfbf6049f2b9792102b78fcfdc53716733ffce3fca52fdeb3971fd08970bf4d1c0e1c61e1c7409b65f9ae0326773cec1417748ca581c1cbb6ecaf6f892ac84d8350cadce0fe0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ead8d80c803c7eea3c9d6f2575b6734c93af8d6ecbbf7b19458e564d1e7f5463ae71e638d7dfdc9f57e709482bdfec3d\",\n \"stream_name\": \"tmp5h1lifqx\",\n \"streaming_url\": \"http://localhost:5280/stream/04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"suggested_file_name\": \"tmp5h1lifqx\",\n \"timestamp\": 1571238738,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"written_bytes\": 0\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"e2217d3c0e7b228476c78dd84f8af4520a01c112\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": \"652f5289389a3fdb2191af148322ae79\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c8e75c2f8828c8743c9b201adf952657261f04aeb2eb4354a6322b6e3b16a2675170aaa646793e7e27e3c504b97676be9196c88e724d5a5048259a3ba2482da99d5a9cbdf7cda532ae7f87dc3164d6a0233fface0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"a3d65262d708527c221c55fc9ae5927a4d0da1930e969d064e0c4c7ba23e38200f3f739890c4700a78d0337ee43291ad\",\n \"stream_name\": \"tmpd9tghh31\",\n \"streaming_url\": \"http://localhost:5280/stream/5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"suggested_file_name\": \"tmpd9tghh31\",\n \"timestamp\": 1572061598,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"written_bytes\": 0\n }\n ]\n}" } ] }, @@ -2232,10 +2244,10 @@ "examples": [ { "title": "Save a file to the downloads directory", - "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file save --sd_hash=\"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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\": \"0fed669177b7d4889715b0522ad6f103\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01d3419c789f3367513a7e0058af1abbfbf6049f2b9792102b78fcfdc53716733ffce3fca52fdeb3971fd08970bf4d1c0e1c61e1c7409b65f9ae0326773cec1417748ca581c1cbb6ecaf6f892ac84d8350cadce0fe0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"ead8d80c803c7eea3c9d6f2575b6734c93af8d6ecbbf7b19458e564d1e7f5463ae71e638d7dfdc9f57e709482bdfec3d\",\n \"stream_name\": \"tmp5h1lifqx\",\n \"streaming_url\": \"http://localhost:5280/stream/04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"suggested_file_name\": \"tmp5h1lifqx\",\n \"timestamp\": 1571238738,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"written_bytes\": 0\n }\n}" + "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file save --sd_hash=\"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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\": \"652f5289389a3fdb2191af148322ae79\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01c8e75c2f8828c8743c9b201adf952657261f04aeb2eb4354a6322b6e3b16a2675170aaa646793e7e27e3c504b97676be9196c88e724d5a5048259a3ba2482da99d5a9cbdf7cda532ae7f87dc3164d6a0233fface0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"a3d65262d708527c221c55fc9ae5927a4d0da1930e969d064e0c4c7ba23e38200f3f739890c4700a78d0337ee43291ad\",\n \"stream_name\": \"tmpd9tghh31\",\n \"streaming_url\": \"http://localhost:5280/stream/5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"suggested_file_name\": \"tmpd9tghh31\",\n \"timestamp\": 1572061598,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"written_bytes\": 0\n }\n}" } ] }, @@ -2297,6 +2309,18 @@ "type": "int", "description": "the number of search probes in a row that don't find any new peers before giving up and returning", "is_required": false + }, + { + "name": "page", + "type": "int", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false } ], "returns": "(list) List of contact dictionaries {'address': , 'udp_port': , 'tcp_port': ,\n 'node_id': }", @@ -2392,7 +2416,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/tmppl4ona5o\",\n \"download_dir\": \"/tmp/tmppl4ona5o\",\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/tmppl4ona5o\",\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/tmpusm0qvwm\",\n \"download_dir\": \"/tmp/tmpusm0qvwm\",\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/tmpusm0qvwm\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}" } ] }, @@ -2467,10 +2491,10 @@ "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon c011186b47f0499392fdd22d73a2ec5426b8556f", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001075623db119ddfde5a9a713320144d9e6cb9f6ad22578f6a162c2ff2a82127aa000000006a47304402205a17ce07692e4b2a8eae031e6e760a328a09613b52690351a0fe66a49fd2955402204305ddbc2ca8325a64fb2694ecb5023dcf185ac525ea1f95b30ff6bb4ff8861b0121037754fd75d8dd6527a6e6b63fb433384953c3b777e87d157100f6f524af3bbe10ffffffff0134b7f505000000001976a91493d12c125fe496432dc7878cf1fcbc4b8a6d724e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtzYCnjFV21bDA3fPzqM7pXJF2mTgunyqG\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"34cd040b4dcb8a5c661558247d8e474ee5fc5b46366397bf49b607d79e547094\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"34cd040b4dcb8a5c661558247d8e474ee5fc5b46366397bf49b607d79e547094\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon e2217d3c0e7b228476c78dd84f8af4520a01c112", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012ec32715185d38cbcfdacd9158c28f08868ae8d2dd967936434246f062615ba2000000006b4830450221008685dd857b89db1cccd0ff645f5881389f17873f83e7235d956f48ce50caaef4022014925c50168862e9a35fb8ee85d736c215e34702d6901f6ef78167f6c26566c801210302fa4b7268becf8fdf9b948b1a04eadef7226d3444177a64d62492ed8918c263ffffffff0134b7f505000000001976a914cbb86b0a58bb03bdaf4424727b6f2d2f958d8f5688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mz68PbGduGx9ncTX4BaPhfZSdMLc7QEgoa\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"a9b7d507c83448d2190d29e2b1feb4b91be07cf617ff39f146b3e1d57bb451cb\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"a9b7d507c83448d2190d29e2b1feb4b91be07cf617ff39f146b3e1d57bb451cb\"\n }\n}" } ] }, @@ -2671,17 +2695,17 @@ "examples": [ { "title": "Create a stream claim without metadata", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5h1lifqx\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmp5h1lifqx", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5h1lifqx\", \"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\": \"0100000001207a97258d57b51c955bb16de34d3fd6a88e04df6a6cb6741c8860e40e7a1c99010000006a47304402201f110f1b75e8edf7243c30a0c2db0e48f0b6e2ce8df3f63621eb0400e8cb53f602204da34a81b68aec6f0c290d405ea2faebc517f220357ca76c90fac1bf1fac3e84012103f72a2ba59a45d0a51b41845b2cf0e87a4652b2dc5e753dbcb7cb3b3278ccafebffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b6d7576a914212135387508b03786740b73da22090129803bb188ac38fb9423000000001976a914384d1c3f371fe24d9d8858cbf420dd0241ff062f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqDxVnFJechdp4F4cVHKt5onNecc2dYGQP\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238737,\n \"txid\": \"991c7a0ee460881c74b66c6adf048ea8d63f4de36db15b951cb5578d25977a20\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"timestamp\": null,\n \"txid\": \"2baef9fce2b326e018b0e79edd85adbdf8b8218a0ba30c8dde4a72d572217ac3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkeeWWvvasih8pxvgSEkA1c2rBd49axpTc\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2baef9fce2b326e018b0e79edd85adbdf8b8218a0ba30c8dde4a72d572217ac3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"2baef9fce2b326e018b0e79edd85adbdf8b8218a0ba30c8dde4a72d572217ac3\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpd9tghh31\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpd9tghh31", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpd9tghh31\", \"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\": \"0100000001e4badbb4ab519f9b128a41860af21cac85e68e73e39555c12d38cca997dde3e3010000006a47304402207ae0b975be031e65bca382ae3ce234de4ab0eb8f1e314d691bf605fa5269b942022016b25cfa1a4ab9fccf70daf4bb349a2d106786b5cad7f66ef8b13b60f671f969012102c060b1fcd8cc69690d884d8aecd08838db000652fe83c22659abb3981f990d17ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b6d7576a9143725cfbd7f6d8f1f1c9414a895366b762db275b388ac38fb9423000000001976a91425bd228d43d735e262410ba658ae51d4216cb0e888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mob8bq7tQUWnrbQDStXDFqmRUVLjzB3pMM\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061597,\n \"txid\": \"e3e3dd97a9cc382dc15595e3738ee685ac1cf20a86418a129b9f51abb4dbbae4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"timestamp\": null,\n \"txid\": \"e6cd93e440b908861396e1cd37d5b3e254ae4da24488c27df63015794393821f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mixVsUmzXrCXcUxU9GjtaPNBA1xdaKH6fS\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e6cd93e440b908861396e1cd37d5b3e254ae4da24488c27df63015794393821f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"e6cd93e440b908861396e1cd37d5b3e254ae4da24488c27df63015794393821f\"\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/tmpvc8a6jnd.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\": 1571238714, \"channel_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpvc8a6jnd.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=1571238714 --channel_id=\"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvc8a6jnd.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\": 1571238714, \"channel_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c37a2172d5724ade8d0ca30b8a21b8f8bdad85dd9ee7b018e026b3e2fcf9ae2b010000006b483045022100a33077ec29c33231ac47a049770b75ecee1d78021d6ad54f1e2aad34ee45929002207f7797f5c6dd3951eecf9f96d9e0cf90a98d337fdebb72134071d071fad53bae012102ca6f62237a93eee2192504dec55482e23ffe87699abba1635208bc368ce7d2cfffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101d3419c789f3367513a7e0058af1abbfbf6049f2b8d658916a8071989a0988f94d43906186d08f387a2ed6054842cd633eae0c2d53b5008fd900d2a0b754b710b786f3edcc872ccfadabc91ad279bb59fa62f72f00ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d7076633861366a6e642e706e6718632209696d6167652f706e673230dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728bae69ced053222080112196fd7f21fdd96ca7b622fbabaeb1930b734282fa4864708edb5188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914d7f21fdd96ca7b622fbabaeb1930b734282fa48688acac5e7d1d000000001976a914b5c5cd6a0ea0a56d809d39c65403568beff49ade88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkeeWWvvasih8pxvgSEkA1c2rBd49axpTc\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238738,\n \"txid\": \"2baef9fce2b326e018b0e79edd85adbdf8b8218a0ba30c8dde4a72d572217ac3\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1CmdQDFBA3TWqx86QkV18xXkSTVMxXw7a\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9c6953cf591f7a3da181bf219c2320143da4624f\",\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#9c6953cf591f7a3da181bf219c2320143da4624f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"n1CmdQDFBA3TWqx86QkV18xXkSTVMxXw7a\",\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\": \"1571238714\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpvc8a6jnd.png\",\n \"sd_hash\": \"dc724381cf9fe8f3e0a0a971345dd83ebe7e6e76089bc34c7b94bc3ab00daa23f8de7a7cc35c0f1ade6bbfdb269328d5\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mx65ZKvF4XK8kbychCzHUyTrbHdX3LaRA3\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"6176280180cf3ce74cafbd1d81674ac1e58aadfc01d719af7556d3d745525081\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5a9ak2_8.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\": 1572061574, \"channel_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp5a9ak2_8.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=1572061574 --channel_id=\"ae041f26572695df1a209b3c74c828882f5ce7c8\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp5a9ak2_8.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\": 1572061574, \"channel_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011f829343791530f67dc28844a24dae54e2b3d537cde196138608b940e493cde6010000006b483045022100fdeda8deebcb46038ef3733d21556ab531891511ecf585610e2ef146ac408aa00220677357636654cbea8def7c86c0d7ae19a6e4d23dbca97d355534c78e9a3c9eb2012103fccd537ac52ce4e7a48802807c325783fd2621d7027d7aff5a895fb84159bbc3ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101c8e75c2f8828c8743c9b201adf952657261f04aef3e35f5f78289ef10ee7d1ef99502d83a1a44f420e65a16e7d1b2fbd627e725b654e7be269b3405e39618df90c7c01c5c493a63342863bdbb2e1e72fa9f407230ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70356139616b325f382e706e6718632209696d6167652f706e673230d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f7267288683cfed053222080112196f200643c672ea3f3f0d8eed5e0d06e5ced824ef56374659e2188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914200643c672ea3f3f0d8eed5e0d06e5ced824ef5688acac5e7d1d000000001976a91405b76dc7a77e99d540a49f3a709bfb30b6c00ac588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mixVsUmzXrCXcUxU9GjtaPNBA1xdaKH6fS\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061598,\n \"txid\": \"e6cd93e440b908861396e1cd37d5b3e254ae4da24488c27df63015794393821f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miSHRUVbqihRWzLBJnSCj3LPCxWpqQwNu7\",\n \"amount\": \"1.0\",\n \"claim_id\": \"446837f3a248f50ac0d030dcbb49961659e0ca6f\",\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#446837f3a248f50ac0d030dcbb49961659e0ca6f\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miSHRUVbqihRWzLBJnSCj3LPCxWpqQwNu7\",\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\": \"1572061574\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp5a9ak2_8.png\",\n \"sd_hash\": \"d045422bd815475d7b8b17e9d7338336017687a24ef115819ac342c79be677d1da1fb5614468036c2a99c7bed0b89e07\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mg3BQsWAmHJKRheW1qZBTERCvKrN1ehNe7\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"741097f4befafffea23f573707f0b4c04a30a01c2855528b1f8e4a5b21454f23\"\n }\n}" } ] }, @@ -2721,14 +2745,14 @@ "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet stream list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\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/", "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\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1571238738,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\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 \"items\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572061598,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\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}" } ] }, @@ -2963,10 +2987,10 @@ "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update c011186b47f0499392fdd22d73a2ec5426b8556f --channel_id=\"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\", \"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\": \"0100000002c37a2172d5724ade8d0ca30b8a21b8f8bdad85dd9ee7b018e026b3e2fcf9ae2b000000006a473044022011286199290fc7f2b1dcd0f01a08513931ee81699e22039a2ae051df1743ef9a022049f5fd40b1ff44757899bf7bb4aaaf113e80c6849365db3dae0063181b1cb8530121037754fd75d8dd6527a6e6b63fb433384953c3b777e87d157100f6f524af3bbe10ffffffffabd0b13a169c967c1cf8f3bb6829e4c8b33f46b6eb3978e25b22b04947fe18be010000006a473044022073acb6b65279f15e0b7b8541c76e4f8bd6b16eb4c8cfb32f502dbb11b87fcdb302200aee950778e1d0bf564d2f6dcacbd79d5793bc266980699a80ea37df2514083d01210316bd5e87a8bbf2c7cae024e16b86d3b2015e2ce3429c76db8b8a66d45f64abc5ffffffff0200e1f50500000000fd2301b7076173747265616d146f55b82654eca2732dd2fd929349f0476b1811c04ce801d3419c789f3367513a7e0058af1abbfbf6049f2b9792102b78fcfdc53716733ffce3fca52fdeb3971fd08970bf4d1c0e1c61e1c7409b65f9ae0326773cec1417748ca581c1cbb6ecaf6f892ac84d8350cadce0fe0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703568316c69667178180b22186170706c69636174696f6e2f6f637465742d73747265616d323004e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b6d6d76a914212135387508b03786740b73da22090129803bb188ac32a0d205000000001976a9140de8b7add05eafd06a4af98b30f3ed220fa5ae0a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"timestamp\": 1571238738,\n \"txid\": \"2baef9fce2b326e018b0e79edd85adbdf8b8218a0ba30c8dde4a72d572217ac3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n2hwzq3j937oBARJtLLWCagiq69Vu9ZuGi\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1571238737,\n \"txid\": \"be18fe4749b0225be27839ebb6463fb3c8e42968bbf3f81c7c969c163ab1d0ab\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miY8Ni6D11cwYEDZYYfdcKfyUwp4xCdws8\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c011186b47f0499392fdd22d73a2ec5426b8556f\",\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#c011186b47f0499392fdd22d73a2ec5426b8556f\",\n \"signing_channel\": {\n \"address\": \"mwgNXQtcY3oWpQrtWZWLJRqLeTRCNVVCTe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\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#2b9f04f6fbbb1aaf58007e3a5167339f789c41d3\",\n \"timestamp\": 1571238737,\n \"txid\": \"8133769b1fa22eab219f162dee518a7dd96565b047133ec7ad51896127c5482f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c3c376e28a4da84d03a5cf9d0f5c43a200b156c3835bb8d0ab6a06bcce36540398550b51984b32a1352eee764f9320efce8086d04f628a19ae0eefc80033baec\",\n \"public_key_id\": \"mt1Qr1ftwmkeWG8KVuBiPgDkAzkxAkhvpY\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp5h1lifqx\",\n \"sd_hash\": \"04e9db196a385f94d715879f730bc91851daad43e8d1fdbdd1d98409741b98c19e1700602f2abc1e1c9847cea42d286b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgnVs3SatEAGJzNEAEnWBkUbA5tdNJtU9y\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"aa2721a8f22f2c166a8f5722adf6b96c9e4d142033719a5adedf9d11db235607\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update e2217d3c0e7b228476c78dd84f8af4520a01c112 --channel_id=\"ae041f26572695df1a209b3c74c828882f5ce7c8\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\", \"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\": \"01000000021f829343791530f67dc28844a24dae54e2b3d537cde196138608b940e493cde6000000006a4730440220424a171d53ad304b8fd7c3808f963a8678c9376e90133e633fff79deb5f9419a0220133b3ce4619dba0885bd5b7e02f21b61fdb9a3502d0bc425a6eebfc8f7cea2a101210302fa4b7268becf8fdf9b948b1a04eadef7226d3444177a64d62492ed8918c263ffffffff523aa1f1bbd8a5cf2ba1a4687d42bbd42570b7789648b2318bca71ea4da5994d010000006a47304402201e45eb67160ac8d4d79ff4f1279169b79006cf267d16da865a19344b2e093e37022049d9413a978b1514f989bbf5bd9cb545f98e8e39b6bde47042cbd74f64ad1f6d0121025b4c6cc1bd23d283a979755912707cddeaf22fd5a37087e2da429504cf2632dfffffffff0200e1f50500000000fd2301b7076173747265616d1412c1010a52f48a4fd88dc77684227b0e3c7d21e24ce801c8e75c2f8828c8743c9b201adf952657261f04aeb2eb4354a6322b6e3b16a2675170aaa646793e7e27e3c504b97676be9196c88e724d5a5048259a3ba2482da99d5a9cbdf7cda532ae7f87dc3164d6a0233fface0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706439746768683331180b22186170706c69636174696f6e2f6f637465742d73747265616d32305b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b6d6d76a9143725cfbd7f6d8f1f1c9414a895366b762db275b388ac32a0d205000000001976a914714e7b748643149c34b96446ccdad35dfe79038088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"timestamp\": 1572061598,\n \"txid\": \"e6cd93e440b908861396e1cd37d5b3e254ae4da24488c27df63015794393821f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtmWDytiMEeZMKgEEKsXLTY8xg8G9xxm4r\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572061597,\n \"txid\": \"4d99a54dea71ca8b31b2489678b77025d4bb427d68a4a12bcfa5d8bbf1a13a52\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkYYknw4CLyvXNmfLN2ospfcYZhWTyVRhT\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e2217d3c0e7b228476c78dd84f8af4520a01c112\",\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#e2217d3c0e7b228476c78dd84f8af4520a01c112\",\n \"signing_channel\": {\n \"address\": \"n1LEME2kEX5RUGRE1CsXKvQHRZEkjRngNH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ae041f26572695df1a209b3c74c828882f5ce7c8\",\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#ae041f26572695df1a209b3c74c828882f5ce7c8\",\n \"timestamp\": 1572061597,\n \"txid\": \"6e77d18189cf0955172e35597e69b4bc8e9d546a51dae492ae858d28b0292f5b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004e329a2290776797b395506b29a6d01f62b8a7b0b76433ae0adabe8a6d191d26a72d6598a4e58c83c0b63f54cd1f72003a7979ccefd626c8e7241ea5bf48c2ce0\",\n \"public_key_id\": \"mwvipyHh3Emvwv8DXSbWtcXBTk4o9Wiwa3\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpd9tghh31\",\n \"sd_hash\": \"5b6876c67b1179b45f964a8134113dec36f268ab7abd08b7af47cb034c531281a714bbd31e1979741da7bf3e67b3336b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqr4fmnVuVZ5oxeAuhMGExMz6GphfFWCoy\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"a25b6162f0464243367996ddd2e88a86088fc25891cddacfcb385d181527c32e\"\n }\n}" } ] } @@ -3211,7 +3235,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-10-16 11:12\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1571238737,\n \"txid\": \"e438343e911dd64ba32806f0ac15a21af32750752148a93d77b003c6577e621c\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-10-16 11:12\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1571238736,\n \"txid\": \"9ff0ec015c9fa14166a1895b471bb4d976c67bd36de52634bd076d8e3f4d2d2a\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-10-25 23:46\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1572061597,\n \"txid\": \"bc1043da3cecef73629db40fa22c4d5b3898329cb4535b6399e7a8281a4da398\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-10-25 23:46\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1572061596,\n \"txid\": \"e176398903ddea75200dffa68a89fd40af3205fd2947af2140bc9923118cca32\",\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}" } ] }, @@ -3406,16 +3430,28 @@ "type": "str", "description": "show specific wallet only", "is_required": false + }, + { + "name": "page", + "type": "int", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false } ], - "returns": " [\n {\n \"id\": \"wallet_id\",\n \"name\": \"optional wallet name\"\n }\n ]", + "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 \"id\": \"wallet_id\",\n \"name\": \"optional wallet name\"\n }\n ]\n }", "examples": [ { "title": "List your wallets", "curl": "curl -d'{\"method\": \"wallet_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet wallet list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"wallet_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"id\": \"my_wallet.json\",\n \"name\": \"Wallet\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"id\": \"my_wallet.json\",\n \"name\": \"Wallet\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, diff --git a/lbry/scripts/generate_json_api.py b/lbry/scripts/generate_json_api.py index 75626a5e4..07cf07d98 100644 --- a/lbry/scripts/generate_json_api.py +++ b/lbry/scripts/generate_json_api.py @@ -364,7 +364,7 @@ class Examples(CommandTestCase): await r( 'Delete a blob', - 'blob', 'delete', f"{bloblist[0]}" + 'blob', 'delete', f"{bloblist['items'][0]}" ) # abandon all the things