diff --git a/docs/api.json b/docs/api.json index e9d186fc81..af093c951b 100644 --- a/docs/api.json +++ b/docs/api.json @@ -54,10 +54,10 @@ "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1638473043,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpd_du30j6\",\n \"download_path\": \"/tmp/tmpd_du30j6/tmpj5wn5xs8\",\n \"file_name\": \"tmpj5wn5xs8\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"6f57dcfb5e64cc5172c07929ac8720b6\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad7d593e2e84647ec1122144433db0a4321c77eb6e1276c12b6934064b07547cbfadd7a9aecd5fc53460eb27274cfd8914aad2a302c2c483511e46fc0473c886050a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3c18d82c0c262331785e3e6c45dd05f6fe4f6918bb08fe552772e230fefe2cb079cf171c9ba8255be068fda898119d23\",\n \"stream_name\": \"tmpj5wn5xs8\",\n \"streaming_url\": \"http://localhost:5280/stream/945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"suggested_file_name\": \"tmpj5wn5xs8\",\n \"timestamp\": 1638473068,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#713086e8213eb2e43f8db0168c11fbb670dcff26\"}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#713086e8213eb2e43f8db0168c11fbb670dcff26", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#713086e8213eb2e43f8db0168c11fbb670dcff26\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1651689442,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj\",\n \"download_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj/tmpnta3qbuz\",\n \"file_name\": \"tmpnta3qbuz\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"64a9cfc595fbde1db09cb2aed90ce245\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0169c160a125c90c68a16ce197a382a28ee6999a87fc90c0c968700144f7bfba6be4fee0ace026874ae629a7e6158a7b3b944885072662a3d6392938212f45576f00e76d95ee49d32914a010f536f1b49d17b140bc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"2aa82b8d5212a2e794fd115323f812ba0df03e54814d203c0063badbcda99a04d138e6250d0f7cd210ecf05d6d8d1492\",\n \"stream_name\": \"tmpnta3qbuz\",\n \"streaming_url\": \"http://localhost:5280/stream/43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"suggested_file_name\": \"tmpnta3qbuz\",\n \"timestamp\": 1651689434,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}" } ] }, @@ -77,6 +77,12 @@ "description": "amount to back the claim", "is_required": false }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "file_path", "type": "str", @@ -268,10 +274,10 @@ "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpm_ue2xqj\", \"validate_file\": false, \"optimize_file\": false, \"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/tmpm_ue2xqj", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpm_ue2xqj\", \"validate_file\": false, \"optimize_file\": false, \"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\": \"010000000141c20275b977773f8dcfa1dfd119b5ac7c7f505cd46105176089fcea5e35396a010000006b483045022100ac5957cdb6c737dd710f772f7b067661ef71f6c2c06f53612c45355be690459e022055a277e73c432b971c784ab0160cd07c0cea7f0d1e68fa550203351aee924c35012102f6383203e8b47a2fb7770538b3ff9f1c09311a63550d5e6d439f64d056cd2132ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706d5f75653278716a180b22186170706c69636174696f6e2f6f637465742d73747265616d32305215cc76e174cf861023113e476a5d30003dca680b41a38ac5cc5479740ac271c2ed44d692270c4a56c07f9c240d48456d7576a914e0e67df181a2b2995c4d12044a81de25f95da67688ac54826311000000001976a9148ad256c1d7946dd3070879dcbb4817ab49bb86e288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2GSzoTb1HBSkeDzaF1g8TGZtvSqsFCxKF\",\n \"amount\": \"3.941448\",\n \"confirmations\": 3,\n \"height\": 217,\n \"nout\": 1,\n \"timestamp\": 1638473068,\n \"txid\": \"6a39355eeafc8960170561d45c507f7cacb519d1dfa1cf8d3f7777b97502c241\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n227mtNq6cMKGJEE2ojp8XqYzhp3X9fNbE\",\n \"amount\": \"1.0\",\n \"claim_id\": \"4a7102a7df73e74c0c662b79fb28a811341be3d4\",\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#4a7102a7df73e74c0c662b79fb28a811341be3d4\",\n \"timestamp\": null,\n \"txid\": \"89dc960e1af78d16a446410fdc79f93b812cfad73ac91d2f4f1c2c3876015af3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpm_ue2xqj\",\n \"sd_hash\": \"5215cc76e174cf861023113e476a5d30003dca680b41a38ac5cc5479740ac271c2ed44d692270c4a56c07f9c240d4845\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtAyX8T8pZa87mxGLbyPt2Q8YoWcW27zKh\",\n \"amount\": \"2.917341\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"89dc960e1af78d16a446410fdc79f93b812cfad73ac91d2f4f1c2c3876015af3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"3.941448\",\n \"total_output\": \"3.917341\",\n \"txid\": \"89dc960e1af78d16a446410fdc79f93b812cfad73ac91d2f4f1c2c3876015af3\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpiqoqucie\", \"validate_file\": false, \"optimize_file\": false, \"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=/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpiqoqucie", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpiqoqucie\", \"validate_file\": false, \"optimize_file\": false, \"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\": \"0100000001f436288b6d1f49f644172f9d722bf8581ea3c61b89b752981f0377fb81ede97d010000006b483045022100e188a4cb9f262370e39c63357e08b3406bdba6678114961a86da08ed77884c3302202a74b3018dcbf8219a56adfc8abee85b719f8898870eb23143a237c1e4bca1cf012102ef71bd06b1d8ccdf58a5a957c2f0a5dcbe7f2db361cef25ca28f4eb0f94105ffffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7069716f7175636965180b22186170706c69636174696f6e2f6f637465742d73747265616d3230c667ad5a29eb8dfd34c3f410cfb5d0ee3bbf6e469e5f328b48008cf19a75fa60cb4180b7594f3607c886a4952975007b6d7576a914ab7315386ea869ad4a6ce7d0f869821906e9f50a88ac54826311000000001976a914a8733291f9303465327b7234cba669be981bbd6a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msdpPYfmDx2gdcxXoxabcivvRpKUdvRNem\",\n \"amount\": \"3.941448\",\n \"confirmations\": 3,\n \"height\": 217,\n \"nout\": 1,\n \"timestamp\": 1651689441,\n \"txid\": \"7de9ed81fb77031f9852b7891bc6a31e58f82b729d2f1744f6491f6d8b2836f4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mw9VhxS8fuTysjckkJvT6J6iRVj49VFGDn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"6918be02fa1a86c389087e29a697f70f134aee03\",\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#6918be02fa1a86c389087e29a697f70f134aee03\",\n \"timestamp\": null,\n \"txid\": \"62bf211652e7f417c34b39ecbeeb87dfa1bddd9ec5c107406637ae74c204f9be\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpiqoqucie\",\n \"sd_hash\": \"c667ad5a29eb8dfd34c3f410cfb5d0ee3bbf6e469e5f328b48008cf19a75fa60cb4180b7594f3607c886a4952975007b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvsdpM5JUjaoBTxzzbebBNmJnaPViQq7H5\",\n \"amount\": \"2.917341\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"62bf211652e7f417c34b39ecbeeb87dfa1bddd9ec5c107406637ae74c204f9be\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"3.941448\",\n \"total_output\": \"3.917341\",\n \"txid\": \"62bf211652e7f417c34b39ecbeeb87dfa1bddd9ec5c107406637ae74c204f9be\"\n }\n}" } ] }, @@ -332,10 +338,10 @@ "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\": {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#f\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1638473068,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1638473067,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#713086e8213eb2e43f8db0168c11fbb670dcff26\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#713086e8213eb2e43f8db0168c11fbb670dcff26", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#713086e8213eb2e43f8db0168c11fbb670dcff26\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#713086e8213eb2e43f8db0168c11fbb670dcff26\": {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8/astream#7\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1651689432,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1651689431,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"short_url\": \"lbry://@channel#8\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" } ] }, @@ -343,7 +349,7 @@ "name": "routing_table_get", "description": "Get DHT routing information", "arguments": [], - "returns": "(dict) dictionary containing routing and peer information\n {\n \"buckets\": {\n : [\n {\n \"address\": (str) peer address,\n \"udp_port\": (int) peer udp port,\n \"tcp_port\": (int) peer tcp port,\n \"node_id\": (str) peer node id,\n }\n ]\n },\n \"node_id\": (str) the local dht node id\n }", + "returns": "(dict) dictionary containing routing and peer information\n {\n \"buckets\": {\n : [\n {\n \"address\": (str) peer address,\n \"udp_port\": (int) peer udp port,\n \"tcp_port\": (int) peer tcp port,\n \"node_id\": (str) peer node id,\n }\n ]\n },\n \"node_id\": (str) the local dht node id\n \"prefix_neighbors_count\": (int) the amount of peers sharing the same byte prefix of the local node id\n }", "examples": [] }, { @@ -357,7 +363,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 \"background_downloader\": {\n \"available_free_space_mb\": null,\n \"ongoing_download\": false,\n \"running\": false\n },\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 \"disk_space\": {\n \"content_blobs_storage_used_mb\": 0,\n \"published_blobs_storage_used_mb\": 0,\n \"running\": true,\n \"seed_blobs_storage_used_mb\": 0,\n \"total_used_mb\": 0\n },\n \"ffmpeg_status\": {\n \"analyze_audio_volume\": true,\n \"available\": true,\n \"which\": \"/usr/bin/ffmpeg\"\n },\n \"file_manager\": {\n \"managed_files\": 0\n },\n \"installation_id\": \"8NS7BSLdxv6fx5wVHLt3r6y7ncyWmQBakPrQjJPXWKADjNnU19Vu3719zFUQUfdbd2\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"startup_status\": {\n \"background_downloader\": true,\n \"blob_manager\": true,\n \"database\": true,\n \"disk_space\": true,\n \"exchange_rate_manager\": true,\n \"file_manager\": true,\n \"wallet\": true,\n \"wallet_server_payments\": true\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"1d169da3f63ef171c5fda2deef043b7b0bbaee9f1dd50eb2e78642053de32a52\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"localhost:50002\",\n \"connected_features\": {\n \"daily_fee\": \"0\",\n \"description\": \"\",\n \"donation_address\": \"\",\n \"genesis_hash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"hash_function\": \"sha256\",\n \"hosts\": {},\n \"payment_address\": \"\",\n \"protocol_max\": \"0.199.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.105.0\",\n \"trending_algorithm\": \"fast_ar\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 0,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.002393823000602424,\n \"port\": 50002\n }\n ]\n },\n \"wallet_server_payments\": {\n \"max_fee\": \"0.0\",\n \"running\": false\n }\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"background_downloader\": {\n \"available_free_space_mb\": null,\n \"ongoing_download\": false,\n \"running\": false\n },\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 \"disk_space\": {\n \"content_blobs_storage_used_mb\": 0,\n \"published_blobs_storage_used_mb\": 0,\n \"running\": true,\n \"seed_blobs_storage_used_mb\": 0,\n \"total_used_mb\": 0\n },\n \"ffmpeg_status\": {\n \"analyze_audio_volume\": true,\n \"available\": false,\n \"which\": null\n },\n \"file_manager\": {\n \"managed_files\": 0\n },\n \"installation_id\": \"5sNkuSUhic8Fbi979cMEczEj4i9NwwaoftxE5mKR3fh69ipLbfcTw4xuQ15uDLLmsD\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"startup_status\": {\n \"background_downloader\": true,\n \"blob_manager\": true,\n \"database\": true,\n \"disk_space\": true,\n \"exchange_rate_manager\": true,\n \"file_manager\": true,\n \"wallet\": true,\n \"wallet_server_payments\": true\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"0f21c4fd13f11c84c697c75909d8ce21aa0c629e3e3302157f27730a92db3563\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"localhost:50002\",\n \"connected_features\": {\n \"daily_fee\": \"0\",\n \"description\": \"\",\n \"donation_address\": \"\",\n \"genesis_hash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"hash_function\": \"sha256\",\n \"hosts\": {},\n \"payment_address\": \"\",\n \"protocol_max\": \"0.199.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.107.0\",\n \"trending_algorithm\": \"fast_ar\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 0,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.015062666999998697,\n \"port\": 50002\n }\n ]\n },\n \"wallet_server_payments\": {\n \"max_fee\": \"0.0\",\n \"running\": false\n }\n }\n}" } ] }, @@ -379,7 +385,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\": \"ubuntu:GNOME\",\n \"distro\": {\n \"codename\": \"bionic\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"18.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"18\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.105.0\",\n \"os_release\": \"4.15.15-041515-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.15.15-041515-generic-x86_64-with-debian-buster-sid\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.5\",\n \"version\": \"0.105.0\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"lbrynet_version\": \"0.108.0\",\n \"os_release\": \"21.4.0\",\n \"os_system\": \"Darwin\",\n \"platform\": \"Darwin-21.4.0-x86_64-i386-64bit\",\n \"processor\": \"i386\",\n \"python_version\": \"3.7.13\",\n \"version\": \"0.108.0\"\n }\n}" } ] } @@ -433,10 +439,10 @@ "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\", \"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\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1638473034,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf3EwVBH3vG4NWPJQk4xBTC1qi1uU45s7PREzdMBdyytxxgNA5kYXmgZiTDL3TgWTU3mEgGnzncSTqJGiMZCH7J9wGo8HftD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YWGjNpweKfiV5QpLuQ962VcczXwmUMfWDuVmFk1EAUWq8pywR7wShpYF5eX3uQx1XmwZYVrmRVHDRS4yTuCHe76BCgvMSCo\",\n \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"menu double angry basic speed such ethics slide shed zebra lizard naive\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\", \"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\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1651689420,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdwRD3uYBKxn47pmYuEXVk2t1wymSJBsBEwqHKPKHKySw6jXmNqJhzU6CZb931diR4GAC1xNxueb37sakkbDYStD2EhftLEZ\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XQSzwZCmjNSAgrHV4ZiQKLUoEVojiTfa5S63wn8sWU4oGrmQMQd9PdG349CDNRUBCKGHzFULDb1mZ65hZLfXkxp2eUVmrE5\",\n \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\"\n }\n}" } ] }, @@ -474,9 +480,9 @@ }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}).json()", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"2.0\"\n }\n}" } ] @@ -511,10 +517,66 @@ "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\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1638473033,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf3EwVBH3vG4NWPJQk4xBTC1qi1uU45s7PREzdMBdyytxxgNA5kYXmgZiTDL3TgWTU3mEgGnzncSTqJGiMZCH7J9wGo8HftD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YWGjNpweKfiV5QpLuQ962VcczXwmUMfWDuVmFk1EAUWq8pywR7wShpYF5eX3uQx1XmwZYVrmRVHDRS4yTuCHe76BCgvMSCo\",\n \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\"\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\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1651689419,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdwRD3uYBKxn47pmYuEXVk2t1wymSJBsBEwqHKPKHKySw6jXmNqJhzU6CZb931diR4GAC1xNxueb37sakkbDYStD2EhftLEZ\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XQSzwZCmjNSAgrHV4ZiQKLUoEVojiTfa5S63wn8sWU4oGrmQMQd9PdG349CDNRUBCKGHzFULDb1mZ65hZLfXkxp2eUVmrE5\",\n \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\"\n }\n}" } ] }, + { + "name": "account_deposit", + "description": "Spend a time locked transaction into your account.", + "arguments": [ + { + "name": "txid", + "type": "str", + "description": "id of the transaction", + "is_required": false + }, + { + "name": "nout", + "type": "int", + "description": "output number in the transaction", + "is_required": false + }, + { + "name": "redeem_script", + "type": "str", + "description": "redeem script for output", + "is_required": false + }, + { + "name": "private_key", + "type": "str", + "description": "private key to sign transaction", + "is_required": false + }, + { + "name": "to_account", + "type": "str", + "description": "deposit to this account", + "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "limit operation to specific wallet.", + "is_required": false + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until tx has synced", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_received\": \"true if txo was sent from external account to this account\",\n \"is_spent\": \"true if txo is spent\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_received\": \"true if txo was sent from external account to this account\",\n \"is_spent\": \"true if txo is spent\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + }, { "name": "account_fund", "description": "Transfer some amount (or --everything) to an account from another\naccount (can be the same account). Amounts are interpreted as LBC.\nYou can also spread the transfer across a number of --outputs (cannot\nbe used together with --everything).", @@ -533,7 +595,7 @@ }, { "name": "amount", - "type": "str", + "type": "decimal", "description": "the amount to transfer lbc", "is_required": true }, @@ -566,24 +628,24 @@ "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e2409fc033c8e4eef31ddac623a6fb6c8ac8f4db7a39f79a7f5c07faf56a82f2000000006a47304402203ec7fb9df09ad9e575d310faab27de22a7a5ea0307634788d93110c49201638102207edf41c6d08d4d32d5d7a3e44593a14356011df3d8960df16fdd97d5cae9ae7e0121027d1ee838ec7dcc202b034b1bcd42fc9ed0efec566738deafb821129d040a8555ffffffff0200c2eb0b000000001976a9144f133b74f3816a25a45a60f09d0c74668e001f7c88ac90d7ae2f000000001976a914eab374eb4afab8ccbcf995fad162a24311041ad688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miwFf1Qr89v15UsiXTxtrt8VGMxBDNd499\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 0,\n \"timestamp\": 1638473066,\n \"txid\": \"f2826af5fa075c7f9af7397adbf4c88a6cfba623c6da1df3eee4c833c09f40e2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnj4iVKHASwtxy6qUAmyRiqwxSKxynUGJQ\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n2uwPp8uTPdEmHw43mp8Tq6AG7dNFKo7cW\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000018210d9351186994be0216d214311bb938bdd3be6fcbadf429b081bb02a147def010000006b483045022100fa64304647fa5a2b910f81d81b0261b5f9b21270b7da7e3bfdd376735d5c79de02204279646540f67cfeee5de266f7a84772b20adba5ebd9bd1e32c3e73a7170188401210356f76624a0e43db8317226bed0983e81991d75a0c37010a854b576e2df34f81effffffff0200c2eb0b000000001976a914111e990ac6c707da88bf6195b1e79ad6f506a26788ac90d7ae2f000000001976a91436526557e14d5f50dfc00d5058c98a38480363ab88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"myBdfgpt8KVmhfRmGZ97miPpLccRFNRWoG\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 1,\n \"timestamp\": 1651689430,\n \"txid\": \"ef7d142ab01b089b42dfbafce63bdd8b93bb1143216d21e04b99861135d91082\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mh5USHiR8FYTt1LK61LS6JcwDea9ufutQw\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkUBVNuHid7HKuBpSGVrYuRSTAa6w13fTb\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"from_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\" --from_account=\"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"from_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000136a1463298ebedc65ef6132a9dfb8bc9fc5834ea8d6d47ffea9fec4786dcd80c000000006a4730440220581b33fa9c9d67c0cd5604ea8ff32565b15899d7da49bd88b457716d3b6c85a502204be916e91f179c9f996c553da58e642c4058b499cdb9f5ee1a25fa5d0542f00e0121021cf780f862be746f90b57d02736e5ee4dbaf68fb4c29148ba75b15f835e382aaffffffff03c0687804000000001976a914b7e494ed2996f0a66616a6bc93d4fdd6a140f9bb88acc0687804000000001976a914b7e494ed2996f0a66616a6bc93d4fdd6a140f9bb88ac6cb9fa02000000001976a914abb7390236f51358e2dc1a9c783d597ae1df3db688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mnj4iVKHASwtxy6qUAmyRiqwxSKxynUGJQ\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1638473067,\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxHHnJBJ7SJUbobnUYJdzqCCtPkwpmL3ZN\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxHHnJBJ7SJUbobnUYJdzqCCtPkwpmL3ZN\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mwAuLPjKkuuQdb5sg68mfXDuZJbTTAXR2r\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"from_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\" --from_account=\"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"from_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001bec7f161b7c1e10eecdbbe619f37df76b0e805748c0a39000e23b7cab2468661000000006a47304402204b8e36eb39a07b439ef659e5b1f731399b37602961fb88701f5808da9ffb70ad022066fc3b4c823f6f39fc94879f33002e7a2af5bf2a15d1a98da7b76ea7b469e73c0121022d590fe5df695889ba15a8f0fdfe6e08215ebf28e6d5456e6d54d2a78719a946ffffffff03c0687804000000001976a9140e533a5270e439c834bcdc0f60962541555698bd88acc0687804000000001976a9140e533a5270e439c834bcdc0f60962541555698bd88ac6cb9fa02000000001976a914c9c0afc27efc9e37aa02091189157447c0d7fd0988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mh5USHiR8FYTt1LK61LS6JcwDea9ufutQw\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1651689431,\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgphTWXrvscnLwqBLSUZUeuwceSLBzuwkK\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mgphTWXrvscnLwqBLSUZUeuwceSLBzuwkK\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"myuiwi58CcW3H32yJiGiWcopRxZgzNjJza\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000031a4879d551d07dc602c4e87c192543229d3c39d9b15a255258950bd5acd350d6000000006b483045022100875a47f6c221070c7107920daf1402cd791b77d485c51451b5f1a7d69c8814a702203328d78760a89ea0fe0dba4e6a700c2137e509141df6dbde2bca5b58ad8ad4690121038f2d1a26b70adc8afc0c28d07b35047a51510bd184ae5a94112aad1ac6a1ecaeffffffff1a4879d551d07dc602c4e87c192543229d3c39d9b15a255258950bd5acd350d6010000006a47304402204c488a265278e751fb1cb7d83c7126c097353164cc26b23c05db9663aebf51640220455e397266ac194e426b9b26eb99de4f882a35b09a8bff8c221ba0951f3c94480121038f2d1a26b70adc8afc0c28d07b35047a51510bd184ae5a94112aad1ac6a1ecaeffffffff1a4879d551d07dc602c4e87c192543229d3c39d9b15a255258950bd5acd350d6020000006b483045022100d40c26c6741b1df67a5495298149fb8429bff099c54821edce7737f454ecad0c02202d6ee6ce2f9ee9246e2fac87d4bb48d453326e4eff0df66369bb1ff22a87351a0121025ed0607c4daabfa78b94bfe67a951c888a272a42c91e7b35b68af84dafcb87b6ffffffff015027eb0b000000001976a914b48e2be7f09002ccf6177f7bf559a3f237d368e088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxHHnJBJ7SJUbobnUYJdzqCCtPkwpmL3ZN\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1638473067,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxHHnJBJ7SJUbobnUYJdzqCCtPkwpmL3ZN\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1638473067,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mwAuLPjKkuuQdb5sg68mfXDuZJbTTAXR2r\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1638473067,\n \"txid\": \"d650d3acd50b955852255ab1d9393c9d224325197ce8c402c67dd051d579481a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwyeEqGbtNjYDsoibvztKzDjkLRtAvLkFQ\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"eaa29eb1921b0c9055aae9cf445a5181a182a7168eb76c6db3395640f76e2e55\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"eaa29eb1921b0c9055aae9cf445a5181a182a7168eb76c6db3395640f76e2e55\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000033f2a45c89eb37812f788b4191254a24a0fc28d8d5ee5208833f71d03e53812d0000000006a47304402202e405854ad76924ece762623ba5a6f3735539345faa746e089640bf60e81614502206fd8f2cae20356fd6b6a423f06354e401832f34c98c3bf9d74fc2f81f47bf5ad01210317f1563062fefdaad9f6d8203dd1dc23c1a3c890fb06e0a3ba5dd918f2852848ffffffff3f2a45c89eb37812f788b4191254a24a0fc28d8d5ee5208833f71d03e53812d0010000006b483045022100d0fc955cd65ccc5dae64bd3b23604bf71887d0fe15ebda378bccb8c7ae47885a022003346025160f0fad9c84c7aac00e2e1a981668b3f43485d78f65d3ee6bf2063501210317f1563062fefdaad9f6d8203dd1dc23c1a3c890fb06e0a3ba5dd918f2852848ffffffff3f2a45c89eb37812f788b4191254a24a0fc28d8d5ee5208833f71d03e53812d0020000006b483045022100926449cc39e233197c1d1efebb4ec1b5a024425c041c255c6036b9e1e5c1840a022058a6a5566a35bb36ef1df454ac533b9510444a06ed56f2ad79ab6ab30f7afdee01210223bcd05e9bf38da0571caab5d3715c51177017fbb656e13784d0df14f720ca1cffffffff015027eb0b000000001976a914d9760cf904ed0e65da666eb6b3c3f2b6bb6bd75c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgphTWXrvscnLwqBLSUZUeuwceSLBzuwkK\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1651689431,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mgphTWXrvscnLwqBLSUZUeuwceSLBzuwkK\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1651689431,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"myuiwi58CcW3H32yJiGiWcopRxZgzNjJza\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1651689431,\n \"txid\": \"d01238e5031df7338820e55e8d8dc20f4aa2541219b488f71278b39ec8452a3f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1LnLz8pJ6yqfxX8DyNiTkZYBBvFHePLmm\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"ea6796278165553c9f04d121b967e74bbc848998ae6f00954ac6b459aa0da060\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"ea6796278165553c9f04d121b967e74bbc848998ae6f00954ac6b459aa0da060\"\n }\n}" } ] }, @@ -641,7 +703,7 @@ "curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mnSNxHg6EKYaDap8u5yrAaWXQem4Qnu1ib\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mnSNxHg6EKYaDap8u5yrAaWXQem4Qnu1ib\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WXNvaRftN5mgapBrqY2EQocEqoPrkBQMyzfCirS7hmZsRr5mAReK8hdNBc8SJBjRbbCBvjNnNzCKT3SbpCMjjmvT28c5ZEe\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YLSK14HANvtrjPvTB1vYbZF6n7dwdDGzRtxdvsc2uboKvfjLybiiZ7YW2Ca4h5Ldp25pPFMpz7WdNV1xZWdrjq5i4WzJ2c5\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -686,10 +748,10 @@ "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}).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\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1638473033,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf3EwVBH3vG4NWPJQk4xBTC1qi1uU45s7PREzdMBdyytxxgNA5kYXmgZiTDL3TgWTU3mEgGnzncSTqJGiMZCH7J9wGo8HftD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YWGjNpweKfiV5QpLuQ962VcczXwmUMfWDuVmFk1EAUWq8pywR7wShpYF5eX3uQx1XmwZYVrmRVHDRS4yTuCHe76BCgvMSCo\",\n \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}).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\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1651689419,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdwRD3uYBKxn47pmYuEXVk2t1wymSJBsBEwqHKPKHKySw6jXmNqJhzU6CZb931diR4GAC1xNxueb37sakkbDYStD2EhftLEZ\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XQSzwZCmjNSAgrHV4ZiQKLUoEVojiTfa5S63wn8sWU4oGrmQMQd9PdG349CDNRUBCKGHzFULDb1mZ65hZLfXkxp2eUVmrE5\",\n \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\"\n }\n}" } ] }, @@ -697,6 +759,18 @@ "name": "account_send", "description": "Send the same number of credits to multiple addresses from a specific account (or default account).", "arguments": [ + { + "name": "amount", + "type": "decimal", + "description": "the amount to transfer lbc", + "is_required": true + }, + { + "name": "amount_everything", + "type": "bool", + "description": "send everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "account_id", "type": "str", @@ -782,10 +856,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8 --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\", \"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\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1638473034,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPf3EwVBH3vG4NWPJQk4xBTC1qi1uU45s7PREzdMBdyytxxgNA5kYXmgZiTDL3TgWTU3mEgGnzncSTqJGiMZCH7J9wGo8HftD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YWGjNpweKfiV5QpLuQ962VcczXwmUMfWDuVmFk1EAUWq8pywR7wShpYF5eX3uQx1XmwZYVrmRVHDRS4yTuCHe76BCgvMSCo\",\n \"seed\": \"diary laptop impose focus electric expose regret thrive liquid polar cable bunker\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\", \"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\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1651689421,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdwRD3uYBKxn47pmYuEXVk2t1wymSJBsBEwqHKPKHKySw6jXmNqJhzU6CZb931diR4GAC1xNxueb37sakkbDYStD2EhftLEZ\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XQSzwZCmjNSAgrHV4ZiQKLUoEVojiTfa5S63wn8sWU4oGrmQMQd9PdG349CDNRUBCKGHzFULDb1mZ65hZLfXkxp2eUVmrE5\",\n \"seed\": \"menu double angry basic speed such ethics slide shed zebra lizard naive\"\n }\n}" } ] } @@ -821,9 +895,9 @@ "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxCb2mjmyDRXYdPGkC6QRqjMwpTL2wVoVe\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine mxCb2mjmyDRXYdPGkC6QRqjMwpTL2wVoVe", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxCb2mjmyDRXYdPGkC6QRqjMwpTL2wVoVe\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -870,14 +944,14 @@ "curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mjxKPXWKSqWQTQv4QbgvQPo2m9wPhU5G6Y\",\n \"pubkey\": \"tpubDA9GDAntyJu4rZckAEC4cdKx1eh3gDTibq6fopttFzKL5aKCSJDtpy57Reorz3hPpwo82SAKqe5MsCAYEcNHauYYkVu2GgsSPMf1zhwXSAq\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mmB886XDoMKhDP3pJjHSxDrLRPBLt6mV2z\",\n \"pubkey\": \"tpubDA9GDAntyJu51RvEnZAbK4MEtNWwaZkZd2Pv2p6mUKMxNe2VML4VAKXaDn9iraqVq5jqifRCUchR8Pm67Ed9s4gTkPqx7qQkBW7KkYuNYD6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mnj4iVKHASwtxy6qUAmyRiqwxSKxynUGJQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4V5EGwwiJBBox3x6kb8KAaNNTssGLoz44FZa9uGv4FMWTDTwtCeyZ39oMroYcjezLNHpgFYVBZJzmFWCKkFDBNuaVHDRtPFK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mp11uhp7Vz8Bu7f1aKEpqgbCDbC2E2CnUb\",\n \"pubkey\": \"tpubDA9GDAntyJu4QKLhMF3B95svxszCGDxDgTs8bqarKuCi3Nc4kHtyPPNnPNMGmdChcxrsgysVEDoRjaaqtrM6rEjcymuBVbNbaWuV5MdjJg8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mpxiTmDnNyS8c2NMSoGQPYAV58xfVfpg5d\",\n \"pubkey\": \"tpubDA9GDAntyJu4F2Vq72YjhKMwF6eX8Wj1ooGrWpppB9o4bocmt1EeJnqEaXn6dkSyK4htWdpg3qMaGUwuVXZQnvV7saqsNvyHRFU5WT3cZ6V\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mr9cjjxLw5UWVw2jwMb9EgeuFz7FZNCbf7\",\n \"pubkey\": \"tpubDA9GDAntyJu4TXVJxR6X2RQHjMP9DHdcXSphSm2EUyWya7YHvnW1ngxekGpxjbUtziutLLkaU5dzqQwu2ageBeUFY98JdBHu4m7gB733kD3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mrWNQ76XWtvLpLbzGQVRvG8FnkvpDtuBrA\",\n \"pubkey\": \"tpubDA9GDAntyJu4SDpyPC9h7En973t1quyHW1VHvs5pGWoJcfU7ptBVNGiGKzMgKsVciPZzJRup3uEV6CudYz1q66RCHM65GdJ4SsC8U46YJ2k\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mripohwfVX5zGnCbKsp33UGA6jXZs22pFH\",\n \"pubkey\": \"tpubDA9GDAntyJu4FACueo7iyccfqVeSv9j9AA8YqPamTtdRxLehktt54AoUnoJCUJpaDbseRxeWJCHuEG3QzYUzRzKW3uGq8B6PfsdsoTNyGrv\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"msN8mF4SZg8RLMbCi7Cv7pCrwbCf4UzHWu\",\n \"pubkey\": \"tpubDA9GDAntyJu4Yy1qHhSkxApF2hjAmciCFBf2xnLjRVU7RQi5n52ooLUBsb57KzVNHsL3kkCbprSYMEfYeaY3vFpPyiT2mQDcQR87yhx9Bki\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mu2uaYhYVgJd4MAnrJYNGaordd4jS8Xi75\",\n \"pubkey\": \"tpubDA9GDAntyJu4wQxzSnZW4hpPBDSHwhw5sHWmb2VkJikneQSe5uCE8pt9MVEeobhDjXrhYD8PnK4zsrCB261MrCMAjjhLUdbSpH3hKZ3T968\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"muCFBDAvsiwtU7pexhyEWQ9i5X3YYBw23B\",\n \"pubkey\": \"tpubDA9GDAntyJu4P5Wgtcb8Y6rhV9vzQAGz53xVnhiNTTbHaYtz2cwhCg22imZRseSi142zJDPRwNSgGFRoX9zNGbj4aF6grTHXMS9dKCzFPpD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mumBiAeEpD5DCQLK5d7DVDfk4e1WKubqCn\",\n \"pubkey\": \"tpubDA9GDAntyJu4gqdai4msczjecaVjDAeb29rrjNC8MhxTQJi3BNbpfADCYTDScTrUG9ueK1BpdLcxNmzkjmNhEKCqmEHm4kJfhaWo5tsrH9n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mvznsgPmwuASzqyvYwh5oHrjr4t9oreYHL\",\n \"pubkey\": \"tpubDA9GDAntyJu4NWr1nKP6BUzBT9k18xVgLU4FuJdzggfwpDVGqMvmVHg7cxA1BA77eDJHr7EM6x7bi4yQsFt2ooa2xNTz7AhZyGzWr8wi7dj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mw4SSRZZmd1Kr1MsVU2Xd9oKHD6Qr8kmNA\",\n \"pubkey\": \"tpubDA9GDAntyJu53BcFJxfpooZLsTVE6LqdmAjNBBxfFxR1w7DoWnpoRBLc8GwyYvHyxqnbMu4Pex4QjhFp1nb5DJ6YtDEUXgDqkG2c3iZz7aU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mwAuLPjKkuuQdb5sg68mfXDuZJbTTAXR2r\",\n \"pubkey\": \"tpubDA9GDAntyJu4L2fZrseWCbANymwo1Qy5FqsJc1FHExd1jWfL53vZM8HX7gtay7dEV5kXCtzUi2bKU1i1WZJGoByzKequDuo5FdcPoxbxVH3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mwBmCkK9zT4RZ9K5Uz1VJVRTrAS4dgQ1DE\",\n \"pubkey\": \"tpubDA9GDAntyJu4miZVyhuCGTi5VzywDRZ336pKQTK8ZbZuN3kPB3hdrFbBm4bQBsobgBUE3bXenWJisbYF8RSeuKD1uT2YCcubbqrKVJKqPKp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mxbvGw8ZFsEYeATfmwEzUDrG1bDqDEyjGg\",\n \"pubkey\": \"tpubDA9GDAntyJu55wkdVcXCGEmKwE7b5winp2oLhmVrnafFshgoxCsLBYoVXiS4PmkNgqP4daPAeNG34HFVi9qg58cCFkMskKK7sNjpqCwCwkL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mxxRCBftrJcJBcs3QSEWVM67xAAkH1GrVY\",\n \"pubkey\": \"tpubDA9GDAntyJu4J83j6k9TuQfeW5z5xhoApoXtc6rk2zXh49Cb1PXWmUfwCqm2Nns8C1wcqwfTG1LxKXDywzUpa8QJzVeDCnRJ5P9Xmp7Cp5h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mzcBppPSyoeXoBmu8MznDf2e1xrTkVfjPr\",\n \"pubkey\": \"tpubDA9GDAntyJu4XXSz7XEp5dAZwLsSnyCWoSRCPrmmkwpDmFJrioZiRoky57dgaUJiZjmfAYC4ugge8eoWRm8fJ4rUHXzoR49Sf2eX7RTgmVU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"n1xMW42iYenYv22xDgQiGTBPJ4aFsdgYVL\",\n \"pubkey\": \"tpubDA9GDAntyJu4uCaYtmTm5quhumCp8dEsKooyZiafBuibg6tdVGuZE6XGXZgjpeBbwHJnwiiH8ipDjWPYw7TejSShh828z3TjGRwHyek97u8\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 53,\n \"total_pages\": 3\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mgvm4xqEf7evKhnhFE3SYGwRo2E4JLcTXf\",\n \"pubkey\": \"tpubDA9GDAntyJu4J5xCtGT6WfuLXzkV2mf35S53gwDU8p4BdKrVwaQcQvJdKBtDxyBBHonYZee2YguG1QKmiMCkjPBpKtFMsM6hESiH84GEgSp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"miZz2J7V5HPc9hqkHNYoDHBNpJZzUt8BTU\",\n \"pubkey\": \"tpubDA9GDAntyJu4QwNCe56oHgr4MeLs6vAbFWBxUXgNZK4PKTWMU25UcZy3Cx7ckZBNFRThfHpmseArBPRmRW6s2dAihTaEmYWF6nEps8EqrFF\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mip4B1iHXiMYzpnfpcbHDHG3EiJ1BEESfk\",\n \"pubkey\": \"tpubDA9GDAntyJu4ypnzFmpWLzEKmEkKztjqXPhtcfvp5noDt68vx8wDArBR69inpmahXjBDu9i3HZ74yy7ppqbceW7QDGaChLSqKeA2USY3FJV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mj4coh8w2AfG2euEgq8na7dJV9GXXVmDiZ\",\n \"pubkey\": \"tpubDA9GDAntyJu4b6GMvGUrYMGZgRN6W2drr5pNVwxCAvoS6KvuKcDDovQtmYBLeadFk1Kp1a1HucL3McxjzcY79izFgndgHPN6Jn35F6vsjom\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mj5QmtV3zW3mqn8hbbWxMKsN9LA1iP6eeY\",\n \"pubkey\": \"tpubDA9GDAntyJu4T5mULFzJ8as2wQ3r2XaYA5aNngX5LT9Kd8To49wE3pyMne78LP1G9CmAJSLDpcKUi5RJP1XywyGF6RC6DvxjFNfEzuvXL5N\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mjQgcyUXB7jwbJ2bU6EtjqJFSe7KehWUNV\",\n \"pubkey\": \"tpubDA9GDAntyJu54rY7e5s9uTFbqPwvU7CXUuZBUcubPFqLid6kWWs96xTEUwxEN8MPjJQRJj4PvRntUgGMnseb9Tqmg8GXGA6bz5zFmMEz6om\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mkUBVNuHid7HKuBpSGVrYuRSTAa6w13fTb\",\n \"pubkey\": \"tpubDA9GDAntyJu4FE86HM41f2g1n8QunqHozUB8MXx8Ewjdx4BTnDAC9udYrJrm3ErVVVKh9xaVX1NNngvRtLz8NyYkbFijCkKaDoAqiqoVokA\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mmKMgDrUXnHTrKN8MgPNSY52MfXhRi1f1c\",\n \"pubkey\": \"tpubDA9GDAntyJu4Mp1eoXDiQsP3caH9Xx2iztkAmMwi8StyNat9DQvNSBtufnYCeHsR5HPWdcEcTMSuTKGk3xjBgLPSm2mAv2mRFwVVaGmLeZo\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mosSjQ2YU52ZjtFJAzQVv42oKtZdNH7pwK\",\n \"pubkey\": \"tpubDA9GDAntyJu4Wg9K2jApMk4b5n4fDLYupufD9RFSX5Jy65BN1fap1akHDDgKBcuybMHrkZmFWNih5vd7ojJj3faZx4VPcwoGN6JWX6CRrE8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mq8JifgNH2TktWhb8KfnzPwBe91HCcARko\",\n \"pubkey\": \"tpubDA9GDAntyJu4MQTykjsywNVgurR6GSAKunNgt95yHRfUNJHL2FUJAfgFdyo6jKBMqz9mEU9k64Bva3ycGnr2ez79HbwrEHuT5mQTFDaa1rB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mqWRKzh5mZoPvVdgdhapa846wxNVeXsKN7\",\n \"pubkey\": \"tpubDA9GDAntyJu57bgLb5LjMWZ57sYveyVbzKHZ3sh4vr3FJpu9Hiez7tieU4dumWPFoPGXHEwMzCsL7azakyiG89xQUUrp45bv7P5m38QMxXM\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mstwfY2JBQXxDQCCHm8kX2w3mizmmLH7Hy\",\n \"pubkey\": \"tpubDA9GDAntyJu4koALK7BHbxeQ4FJUPqTiGWcMJvgKqx28b7QsnX1Ua1BqTKCZERQYU3s6wZgyBJoHsbEVzQCua453i7JSAP3iV8gTmexN1Mp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\",\n \"pubkey\": \"tpubDA9GDAntyJu4NyeWRqyw97RF8BEJcAxcNugyE3R78m31n3mDYeDSAEuwvDBqo5adoAotCsiUSPyfFBpHAPN7mJW2GcdzgCrQfrhUFbESK4S\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"muxSw648FruEA2UTuAa2MtEnTpjJV7pxsy\",\n \"pubkey\": \"tpubDA9GDAntyJu4uFmpXzvoTwMGhm8BKJWrSGuoiEXca6enFqod4WVWBnAMQ1DM3R4XVy8kVTjsXnEnTjgRmqCPHfQ7hyXZ89wgsBh5dvn7uN1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"pubkey\": \"tpubDA9GDAntyJu4SBgGiSwb1j4BhSroZnfiWwpg1S7zRbdEgHQiuD7wQ8p1DXu3YX5vtaKLH63XKCPjJSuWWj34F6A1GuaxLx7188e3VHvnyKn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mw9VhxS8fuTysjckkJvT6J6iRVj49VFGDn\",\n \"pubkey\": \"tpubDA9GDAntyJu4oVdyc359NjXJ1Fwory64qA7RxadKQke9vRiVrewYgkAdHGoXJ3P6N3FAzmybjqszHzFP7n3wsmnaHdqR3osoHo7XFMywqSE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mwDSaaLtkryNwecdtbnPtcZGPzRWPMa7BN\",\n \"pubkey\": \"tpubDA9GDAntyJu4LK7ex7QzFu5V4D76s3oe1NDGaFfKyjeBAMt59HM2gfGRkNZC3qNgmn9jCRqmnXShezFXWi3Y6Nn79Ahyzy3FR8CPR6CkCBn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"myBdfgpt8KVmhfRmGZ97miPpLccRFNRWoG\",\n \"pubkey\": \"tpubDA9GDAntyJu4FjoCpCKHeFLC4kf9L8uHpvSimsji6RfwFT1B6Sn39i7cigE3fkCgrnyYNueLGyrXbPXJxdPL7MGnVdqGf9HXksaWJgwBW5W\",\n \"used_times\": 1\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"myFDWM3dTfBuTnKAm4QTBcCiTSvdKcPBhG\",\n \"pubkey\": \"tpubDA9GDAntyJu4w94dE8oNnhPZF3uQ7XSsFQGAQWGnQiy7hPk8FY7Lw6vopngkYvQ9tjgzcMPEhTxUCfNRcKwS1FVvooAzRDr9c41egdCXTDE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mzoWrLgkbfSc2QhS7j7p1UY1FZnjVgftut\",\n \"address\": \"mzWDJudg68FxE2KWfgQ87aei5ugh1AEjDW\",\n \"pubkey\": \"tpubDA9GDAntyJu4ercpvr1VUWJhRm3FxnBMZuheF5pBAbDSkjZ5BqmWU4qhGyrujmwkJJf4CAKDAqu6cKb9tenPSiPcf4ZTBNRTNZ6GcPB56n1\",\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\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mjxKPXWKSqWQTQv4QbgvQPo2m9wPhU5G6Y\",\n \"pubkey\": \"tpubDA9GDAntyJu4rZckAEC4cdKx1eh3gDTibq6fopttFzKL5aKCSJDtpy57Reorz3hPpwo82SAKqe5MsCAYEcNHauYYkVu2GgsSPMf1zhwXSAq\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mmB886XDoMKhDP3pJjHSxDrLRPBLt6mV2z\",\n \"pubkey\": \"tpubDA9GDAntyJu51RvEnZAbK4MEtNWwaZkZd2Pv2p6mUKMxNe2VML4VAKXaDn9iraqVq5jqifRCUchR8Pm67Ed9s4gTkPqx7qQkBW7KkYuNYD6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mnj4iVKHASwtxy6qUAmyRiqwxSKxynUGJQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4V5EGwwiJBBox3x6kb8KAaNNTssGLoz44FZa9uGv4FMWTDTwtCeyZ39oMroYcjezLNHpgFYVBZJzmFWCKkFDBNuaVHDRtPFK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mp11uhp7Vz8Bu7f1aKEpqgbCDbC2E2CnUb\",\n \"pubkey\": \"tpubDA9GDAntyJu4QKLhMF3B95svxszCGDxDgTs8bqarKuCi3Nc4kHtyPPNnPNMGmdChcxrsgysVEDoRjaaqtrM6rEjcymuBVbNbaWuV5MdjJg8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mpxiTmDnNyS8c2NMSoGQPYAV58xfVfpg5d\",\n \"pubkey\": \"tpubDA9GDAntyJu4F2Vq72YjhKMwF6eX8Wj1ooGrWpppB9o4bocmt1EeJnqEaXn6dkSyK4htWdpg3qMaGUwuVXZQnvV7saqsNvyHRFU5WT3cZ6V\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mr9cjjxLw5UWVw2jwMb9EgeuFz7FZNCbf7\",\n \"pubkey\": \"tpubDA9GDAntyJu4TXVJxR6X2RQHjMP9DHdcXSphSm2EUyWya7YHvnW1ngxekGpxjbUtziutLLkaU5dzqQwu2ageBeUFY98JdBHu4m7gB733kD3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mrWNQ76XWtvLpLbzGQVRvG8FnkvpDtuBrA\",\n \"pubkey\": \"tpubDA9GDAntyJu4SDpyPC9h7En973t1quyHW1VHvs5pGWoJcfU7ptBVNGiGKzMgKsVciPZzJRup3uEV6CudYz1q66RCHM65GdJ4SsC8U46YJ2k\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mripohwfVX5zGnCbKsp33UGA6jXZs22pFH\",\n \"pubkey\": \"tpubDA9GDAntyJu4FACueo7iyccfqVeSv9j9AA8YqPamTtdRxLehktt54AoUnoJCUJpaDbseRxeWJCHuEG3QzYUzRzKW3uGq8B6PfsdsoTNyGrv\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"msN8mF4SZg8RLMbCi7Cv7pCrwbCf4UzHWu\",\n \"pubkey\": \"tpubDA9GDAntyJu4Yy1qHhSkxApF2hjAmciCFBf2xnLjRVU7RQi5n52ooLUBsb57KzVNHsL3kkCbprSYMEfYeaY3vFpPyiT2mQDcQR87yhx9Bki\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mu2uaYhYVgJd4MAnrJYNGaordd4jS8Xi75\",\n \"pubkey\": \"tpubDA9GDAntyJu4wQxzSnZW4hpPBDSHwhw5sHWmb2VkJikneQSe5uCE8pt9MVEeobhDjXrhYD8PnK4zsrCB261MrCMAjjhLUdbSpH3hKZ3T968\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"muCFBDAvsiwtU7pexhyEWQ9i5X3YYBw23B\",\n \"pubkey\": \"tpubDA9GDAntyJu4P5Wgtcb8Y6rhV9vzQAGz53xVnhiNTTbHaYtz2cwhCg22imZRseSi142zJDPRwNSgGFRoX9zNGbj4aF6grTHXMS9dKCzFPpD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mumBiAeEpD5DCQLK5d7DVDfk4e1WKubqCn\",\n \"pubkey\": \"tpubDA9GDAntyJu4gqdai4msczjecaVjDAeb29rrjNC8MhxTQJi3BNbpfADCYTDScTrUG9ueK1BpdLcxNmzkjmNhEKCqmEHm4kJfhaWo5tsrH9n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mvznsgPmwuASzqyvYwh5oHrjr4t9oreYHL\",\n \"pubkey\": \"tpubDA9GDAntyJu4NWr1nKP6BUzBT9k18xVgLU4FuJdzggfwpDVGqMvmVHg7cxA1BA77eDJHr7EM6x7bi4yQsFt2ooa2xNTz7AhZyGzWr8wi7dj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mw4SSRZZmd1Kr1MsVU2Xd9oKHD6Qr8kmNA\",\n \"pubkey\": \"tpubDA9GDAntyJu53BcFJxfpooZLsTVE6LqdmAjNBBxfFxR1w7DoWnpoRBLc8GwyYvHyxqnbMu4Pex4QjhFp1nb5DJ6YtDEUXgDqkG2c3iZz7aU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mwAuLPjKkuuQdb5sg68mfXDuZJbTTAXR2r\",\n \"pubkey\": \"tpubDA9GDAntyJu4L2fZrseWCbANymwo1Qy5FqsJc1FHExd1jWfL53vZM8HX7gtay7dEV5kXCtzUi2bKU1i1WZJGoByzKequDuo5FdcPoxbxVH3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mwBmCkK9zT4RZ9K5Uz1VJVRTrAS4dgQ1DE\",\n \"pubkey\": \"tpubDA9GDAntyJu4miZVyhuCGTi5VzywDRZ336pKQTK8ZbZuN3kPB3hdrFbBm4bQBsobgBUE3bXenWJisbYF8RSeuKD1uT2YCcubbqrKVJKqPKp\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mxbvGw8ZFsEYeATfmwEzUDrG1bDqDEyjGg\",\n \"pubkey\": \"tpubDA9GDAntyJu55wkdVcXCGEmKwE7b5winp2oLhmVrnafFshgoxCsLBYoVXiS4PmkNgqP4daPAeNG34HFVi9qg58cCFkMskKK7sNjpqCwCwkL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mxxRCBftrJcJBcs3QSEWVM67xAAkH1GrVY\",\n \"pubkey\": \"tpubDA9GDAntyJu4J83j6k9TuQfeW5z5xhoApoXtc6rk2zXh49Cb1PXWmUfwCqm2Nns8C1wcqwfTG1LxKXDywzUpa8QJzVeDCnRJ5P9Xmp7Cp5h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"mzcBppPSyoeXoBmu8MznDf2e1xrTkVfjPr\",\n \"pubkey\": \"tpubDA9GDAntyJu4XXSz7XEp5dAZwLsSnyCWoSRCPrmmkwpDmFJrioZiRoky57dgaUJiZjmfAYC4ugge8eoWRm8fJ4rUHXzoR49Sf2eX7RTgmVU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mfaeim8b36T4j9wsYdyyui3ZpvfRaBvUo8\",\n \"address\": \"n1xMW42iYenYv22xDgQiGTBPJ4aFsdgYVL\",\n \"pubkey\": \"tpubDA9GDAntyJu4uCaYtmTm5quhumCp8dEsKooyZiafBuibg6tdVGuZE6XGXZgjpeBbwHJnwiiH8ipDjWPYw7TejSShh828z3TjGRwHyek97u8\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 26,\n \"total_pages\": 2\n }\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mfrmSakAMY28yfYoCdhngarvxR7aiyC164\",\n \"pubkey\": \"tpubDA9GDAntyJu4JxnyTtNECHCTrHwyikUehKWpWncZE8AckMhnzyVbZhRzVJchdzMTMfFyWphhaG6sZznpkP7MkBR4PPpKN8WNXHoVxMuiz5h\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mgphTWXrvscnLwqBLSUZUeuwceSLBzuwkK\",\n \"pubkey\": \"tpubDA9GDAntyJu4UJfmSrx5oXCHZQcKTRBbNjYLzj6CWbi9PV91JXs7QNkHy3SJ2apkYGMTr4zJuZ5bRGFkt1f6eYweteJ4pETYaURcuXkUD8j\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mgu4i1bVwky4H3FbNzR6vUdzWJ9FWc1jgj\",\n \"pubkey\": \"tpubDA9GDAntyJu4YE4bJUFDzmUAVuptHDY3G1qW2qFVHwtJqBTHEvoJP9WXFu2Kq76ygot5QGjHZS2eWjwkMvrCa6vQpi99AXoMH4Ey2VicXpu\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mh5USHiR8FYTt1LK61LS6JcwDea9ufutQw\",\n \"pubkey\": \"tpubDA9GDAntyJu4EUUeMK7egQQL9j7po23NyQzhsuMu49iiQskQBddMnStoCVNrb288fbeV74EfYE162owf3SExBeNyUVpLxfnS3fhoD43XYtq\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mhJWptexKtGpMPqac4pMBSk8js9mw1Cfso\",\n \"pubkey\": \"tpubDA9GDAntyJu4Lo6ZzKLdpZeJPU2Q2nkLKy3ifnfM1ysYaLeVoiLcnwyN2NK2VPL3jHRctJ4a5RrGxrrouHnVFMrDwLZD5FAaxQ6FN88gm1V\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mhtEBbqY9kg1re5ZdMtzVNV4bzRp6y6Stq\",\n \"pubkey\": \"tpubDA9GDAntyJu4zqXy28xHTgfFAAvG4RnsWr6cdNXorkF9TeAAuqymtJBs64rRu6CgsYMzFiA2SFngN1WegAC7imJpFUZijK88tyjWV4U1UBq\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mi2Ly9EMXveGSL42ChRByfuuXGrSes1TEp\",\n \"pubkey\": \"tpubDA9GDAntyJu4rJRk5sJwTmozXYeNeAEaFACC6kUFR7vG8bvc9fpiBSk1X1XdNhExst5SRj2j64RcGj4ep2eRrpKh8yqGgTt4m6cme7yWU87\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"miiftyibNeFcGYq5ycQMcRtBqrBjjoFUZe\",\n \"pubkey\": \"tpubDA9GDAntyJu52pFZR29WbUdX7ZWk7WnnyWchms3a4Jb8n93HVLsyn3vP8hTGeZiaTEiyz6wCqFcdbo7Qm4rS6jCYZ8czizsBDrkpNRJ58ZT\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mjSTVqBxKjj3AuRpYdMuGibzoHvU6Ztep8\",\n \"pubkey\": \"tpubDA9GDAntyJu4uNvETxRJT1gDSakuHYCB77vvX2A4nJkJN4XLXzJHfJGXvDBT8B9NZiZmUjMExTnuDwSDADEbhpZSVd92rkvr7jVHuv4gFAS\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mkH3Kd7odqLwNf8eEgraT4DozgSegRCK6b\",\n \"pubkey\": \"tpubDA9GDAntyJu4wYqjpAi6q1NqguD42DJei5T5iA8mUb1oLrQcEse8McLS4WEvZcwQ3kTeMCFAqEFizY5z3pDrdf93SEdYg8f5u5eGz8ZC9C6\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mkn7MTC2DKDDXt7Fy8TVVC5sZWKAjqkBZB\",\n \"pubkey\": \"tpubDA9GDAntyJu4per9uw4UKDvLj9NZcte2i2gvA8fe1hWRZ2baoeHeHnyX3ouK2UWiPEz1PJWSMkSzprhTATyd8QAVjbDnuNGS3J9croWAVpG\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mm4H4EFT1TaJGWNSgcgHDe8TvdzMTccVtk\",\n \"pubkey\": \"tpubDA9GDAntyJu4Rm3aJpTDtdb1paT3kdmyrZcAPTJu1LsnjXrzJJUMNcTPaVXDUTGEMSUCrWQE9zYCydbUMKiM1U3yXz915FtKPm3oMkhD6rq\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mn9dmT63bbjbNhWxqtuMTiePeAXxYbRKiE\",\n \"pubkey\": \"tpubDA9GDAntyJu4VsgcuAsT5EtZWktK2pYhQ8LCUc8hm3fwX1hVHY2oqACSFKV7hjeVyNn6byNMCwNQKnrnZA84Y1S3p9VYS4Q5zgoqKg9ptY5\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mo5HqpjCQLJLDPmXEKpmkk5BWcufWQQ1Vc\",\n \"pubkey\": \"tpubDA9GDAntyJu4P1Y4i8HMog2W71TwXQWiQ9ZQDpH3CtjWah3Z3yKMpNVrC3jjpwamGSruSU35joSJQdHPKGf6uNqCnqnRVPEKYM7cEKC2BjZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mpSVrJ8YH1T3gnVG2KsiRrwzokk4tEEjcg\",\n \"pubkey\": \"tpubDA9GDAntyJu4iPga1TXWJaTjXmdv4qrMxanXV7XmK4nuCHFs92KVHMV4NEVkbfMaWqgkTkGo5bpZs8kLaUN9CGJmStqwehrfoUKuk6H3tom\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mqfVM4SJShegvndb9nAQDggCYXwdbcSQta\",\n \"pubkey\": \"tpubDA9GDAntyJu4La72DfffNt4cpBK7JKMcc3WK1LSk6KsCEnSjnfFGXE8oFMZZ4xjgapWPRW5yVaZPK1w9aTRR6xYSPJSCqaYnSeqm3WQA4Ap\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mqqPG7mDajXULL96t2yEvNmVvgkG4gTiss\",\n \"pubkey\": \"tpubDA9GDAntyJu4Tg4GDaC5KMjQLWqPQu12zFjrsuZUtSNVij25B12Mc4NTzbkM8cVGVk2VUpY3BUuEbvpPTjmEGMXZfrYH1eNGVgife2HbZKd\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mtaH7w29Cmg1mTtwCw7n15hynpdT5m6CWE\",\n \"pubkey\": \"tpubDA9GDAntyJu4ePJoihgn97F2pqKLn6iRRydKyFg3Bue9QNLseYh3718xSffkp3VgRvxTBM7yuSb32drNhRmLEc4uh5oSRztw4egef96uL9v\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"muWTYNcvFWsYa6GvbQg5B7x19U2ETnUrjs\",\n \"pubkey\": \"tpubDA9GDAntyJu4HvGuy4L4vFhSZnaQNR496Mvrz7HQ2ctfWg5M8anqjaPC1UwzHvVd6yUYTc3MWCKtauB5HC5XS2notN1PtWaLD1kR7Z2tqzK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n21p92W2irz7LUAGfmnpvnB1ich7jf8gzc\",\n \"address\": \"mub639UcTt9NFTftmq9spEaFYrztr8Xb6n\",\n \"pubkey\": \"tpubDA9GDAntyJu4hNyrauFrLPj5rGChHYTPUkYVxioryvHga8UCjcvN6124sw8o7tH9wZXVkydTHt9yYgzTT2A79fBatZ92K4kFQFh37wArBsX\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 26,\n \"total_pages\": 2\n }\n}" } ] }, @@ -905,7 +979,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\": \"mxCb2mjmyDRXYdPGkC6QRqjMwpTL2wVoVe\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\"\n}" } ] } @@ -962,10 +1036,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d5d30e1338ef47b3bdd46ddefdf1e305e18b55e3679499533ea173efb3b4250ac3cbd87977574ed1d288a3d9bdf9e679\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete d5d30e1338ef47b3bdd46ddefdf1e305e18b55e3679499533ea173efb3b4250ac3cbd87977574ed1d288a3d9bdf9e679", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d5d30e1338ef47b3bdd46ddefdf1e305e18b55e3679499533ea173efb3b4250ac3cbd87977574ed1d288a3d9bdf9e679\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted d5d30e1338ef47b3bdd46ddefdf1e305e18b55e3679499533ea173efb3b4250ac3cbd87977574ed1d288a3d9bdf9e679\"\n}" } ] }, @@ -1043,7 +1117,7 @@ "curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/", "lbrynet": "lbrynet blob list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd\",\n \"53cbd9f603b635030a1149ef44563eb98b9c0b271c936fea628c170865b0528a57dcbada4679f6172d52a40900300ed5\",\n \"9f2c47c94a956cbe0eab3bb615c5c24ed2286144c492df6da2da800452fdb4f907a4b47fce59c56a78cce79795178314\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"d5d30e1338ef47b3bdd46ddefdf1e305e18b55e3679499533ea173efb3b4250ac3cbd87977574ed1d288a3d9bdf9e679\",\n \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"06fac97e3581754a511a6d73c1ad279a521e34884fabaaf29f807b35ea5a8c859c69b1843268097014f86fcc22b96c7f\",\n \"79f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1124,10 +1198,10 @@ "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon add76735eb99e808dae24cbdfa6ceb12029ee794", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001637fb47c4b1a1704e8f2e0681677096a3bdf3d5aeb15914621196ab7f3145005000000006b483045022100ffaf0dcf5d5149bf5df0d97df996ca5795db41597f07c239159abae03e6c4150022036aa8c21df3aa04c27376003f1cb1448e640f709c11cdc28e273d666f9ccde1b0121029f23db06243144e274a1a8ec56416f061822d83bb8585a513e267930965d93ddffffffff0134b7f505000000001976a91494dbecc78e652d751522b3dca65177b288b2d00a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 9,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mu63m6Y3WBLHWzfAwwRVftiWrHXWbGVcD8\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"feb1fe447f95e1a74cde3fa2b7e3518c75dfd9549d097052767da8da1685080c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"feb1fe447f95e1a74cde3fa2b7e3518c75dfd9549d097052767da8da1685080c\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon 879a99e68ea282a397e16ca1680cc925a160c169", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001dd7837f494570fca1e66ebd64f2bce580888deeac3446d8c578ef2069e5538d1000000006a47304402207615e76f47834ed7c2cfc93b2ee278b65f32fc34586672cc93fb4be2f70ba24602200e37244db881d3739a881b28b987fb985d062a28b53368d8ff27a7fdc624036f012102ef5464c9bf949c4770e6ba1e61bf56b9bec340e2ac86f6d55956748b5d291582ffffffff0134b7f505000000001976a9149533493c01adbd4dadcc58361bef2cde402c052a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 9,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mu7rR4Ax65xHUHkZjdCKjv3JqSAdC1T9qS\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"0c90386513881e428197586a70f976c4b211f4de047dbbf4ea09d3396574bb1c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"0c90386513881e428197586a70f976c4b211f4de047dbbf4ea09d3396574bb1c\"\n }\n}" } ] }, @@ -1147,6 +1221,12 @@ "description": "amount to back the claim", "is_required": true }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "allow_duplicate_name", "type": "bool", @@ -1254,17 +1334,17 @@ "examples": [ { "title": "Create a channel claim without metadata", - "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/", + "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"bid_everything\": false, \"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\": \"010000000136a1463298ebedc65ef6132a9dfb8bc9fc5834ea8d6d47ffea9fec4786dcd80c010000006b483045022100878a45a883405cccc4f24eed6738a0685337c4297d3edadd85e48157523b51a10220668f0910a62d6b9f11c14a285acfde714031b1a8d4ee58b2f2d05d844636de9b012103572708b3d775cd7b6ef4a95f590df566844a5a740b0805f02426716ddb5a7b2affffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb6d7576a91426fa5a194fef6f82c18a1cc935c7561360ae015088acc462a029000000001976a9144cd145e27e059f57eec811b883a53955fc0cb14388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2uwPp8uTPdEmHw43mp8Tq6AG7dNFKo7cW\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1638473067,\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\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#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": null,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mnX8MB7dEGJLLf4Jh84v3bsTDnjEqPSdwV\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\"\n }\n}" + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"bid_everything\": false, \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001bec7f161b7c1e10eecdbbe619f37df76b0e805748c0a39000e23b7cab2468661010000006b483045022100b12f8d327288b7e4ba943092dc992ed402c893350e2f2eb1ec6821523ecfb63502201b3399f4fa192f235ec2b3f493af08ce1c2a14cea8e635b68fdf891a85ce29b4012102192579a2bfc6018efea6fa4197b42f9a47b37f4b5aead6230fa898d9c20cdd0effffffff0200e1f505000000004cb508406368616e6e656c260012230a2103a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f7096d7576a9149ecd8961673460542f461f981763971f0513c5a688acc462a029000000001976a914217b116580237994c741c77df3e0163933a4491288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkUBVNuHid7HKuBpSGVrYuRSTAa6w13fTb\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1651689431,\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\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#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": null,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"miZz2J7V5HPc9hqkHNYoDHBNpJZzUt8BTU\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\"\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/", + "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"bid_everything\": false, \"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\": \"0100000001637fb47c4b1a1704e8f2e0681677096a3bdf3d5aeb15914621196ab7f3145005010000006a473044022021b23a2cf8030e39ef2d8847a874f50d53906bffa59438eb88acfaa43f7e1ba10220395c3972127ab70df1812c52be956fbd0cacef4fb1cf53b96301c49719561801012103b3fab7b529fd5adecf1209f972a98583fa58b86684f8483922747117922eb0cfffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a0342000437854772feff0a7bb63d16ca28faec3885cc4a5c476e98866b8379459e87d314e9b3de6102331d379cfe4f6fd6d6582d78f18d4a910a5d0159012e0dbf03bea8121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914d78b04afb55c235821b4ff94cae1aa934e4ff32f88ace221d305000000001976a9149383f722802f5012db922ac0b9b8df1f07a3fd8d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgZ9kB7PNhMPYkypE2wUbyCJtMPQVSNeRJ\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n1Ae7TZg6rQ6xqTdfQKLZuuvxvMjKdyUPV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0fa5da8d6fc28fc5a02b41f3512fe17ad100417d\",\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#0fa5da8d6fc28fc5a02b41f3512fe17ad100417d\",\n \"timestamp\": null,\n \"txid\": \"d99b3109b955d271bb5c813399fe0ab1657e74db938b0f1b78db115283af0f2a\",\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\": \"3056301006072a8648ce3d020106052b8104000a0342000437854772feff0a7bb63d16ca28faec3885cc4a5c476e98866b8379459e87d314e9b3de6102331d379cfe4f6fd6d6582d78f18d4a910a5d0159012e0dbf03bea8\",\n \"public_key_id\": \"mpg5H8VZcxkLN8bCMxkJnnhjA5NWxVZ8Ev\",\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\": \"mtxwiNHPpjCLsCRvXgQGbhAz4zf4tC8CNk\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d99b3109b955d271bb5c813399fe0ab1657e74db938b0f1b78db115283af0f2a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"d99b3109b955d271bb5c813399fe0ab1657e74db938b0f1b78db115283af0f2a\"\n }\n}" + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"bid_everything\": false, \"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\": \"0100000001dd7837f494570fca1e66ebd64f2bce580888deeac3446d8c578ef2069e5538d1010000006b483045022100facf3da4be69071f7b31d000e6cf83ccd9496299152d2dd90b14d57cf4ec6ed002203f9a7f28d1d47be658574cc95ac1cacb01d05f38a4b28a52ffe447042c8b303a012102452a9e36a78eee28ae7f7ce98f8c23dac13f1b92141a3c47bca96e56d3c3c7e8ffffffff0200e1f50500000000fd1701b50b406269676368616e6e656c4ced0012740a210382b3efda3b44a0935681695a8e457d5569b6ce5f2c5f4b5f4984211d15046758121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9145ba11040a83c031a7567856c69eb52b5c7958cab88acd22cd305000000001976a9143ee122fc9d88fb2f5081726f0a218232f42d5a9b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3qAPYkzxVBWURGCDVpPey2v68CiXaQiGS\",\n \"amount\": \"1.9993635\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mosSjQ2YU52ZjtFJAzQVv42oKtZdNH7pwK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9ce786f2548d5128675471b8e87142f0b7d50c93\",\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#9ce786f2548d5128675471b8e87142f0b7d50c93\",\n \"timestamp\": null,\n \"txid\": \"86f2157440e086342e7f85f55c9e75ba35f1aeb2f00ceba51f56e42cce488388\",\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\": \"0382b3efda3b44a0935681695a8e457d5569b6ce5f2c5f4b5f4984211d15046758\",\n \"public_key_id\": \"mt2nVC5RhPUCzza8818d1hSxgwmaghbMY8\",\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\": \"mmFRtiZVsNfptLsqm5RybET7SckysLdvin\",\n \"amount\": \"0.9772565\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"86f2157440e086342e7f85f55c9e75ba35f1aeb2f00ceba51f56e42cce488388\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993635\",\n \"total_output\": \"1.9772565\",\n \"txid\": \"86f2157440e086342e7f85f55c9e75ba35f1aeb2f00ceba51f56e42cce488388\"\n }\n}" } ] }, @@ -1386,14 +1466,14 @@ "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/", "lbrynet": "lbrynet channel list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\"\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\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\"\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\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/", "lbrynet": "lbrynet channel list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\"\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\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1451,6 +1531,12 @@ "description": "amount to back the claim", "is_required": false }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "title", "type": "str", @@ -1588,10 +1674,10 @@ "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"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 add76735eb99e808dae24cbdfa6ceb12029ee794 --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"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\": \"0100000002a40b84b1e68fb5c0217f4cd4a176aa508e251c794f04958d34f39387f9773dc0000000006a47304402205a720860e3b4435dfb34dda65fec36b6a6a4f9851e701f3b67ddd8711483f0a0022057a5acb8ce95a58c454a1e03aa6980b37c51fcecf36f4c679185d8fab421a9000121029f23db06243144e274a1a8ec56416f061822d83bb8585a513e267930965d93ddffffffff552e6ef7405639b36d6cb78e16a782a181515a44cfe9aa55900c1b92b19ea2ea000000006a47304402207ffbe1053cb966cd1f23c9bb5cf6152d6a58705633ac7251678b96a6b087bd3c0220361c675caff27ad4aa0533ceb1f53fdf9709ae7c4e64e166dedc4e613a9e27f40121029aa3a7eee76ca1ae759e573f693c5d0b10157484d7b81f064c8e34e9ea4c258cffffffff0200e1f50500000000a6b708406368616e6e656c1494e79e0212eb6cfabd4ce2da08e899eb3567d7ad4c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb420b4e6577204368616e6e656c6d6d76a91426fa5a194fef6f82c18a1cc935c7561360ae015088ac6ebeea0b000000001976a9140b628417e87d2e9cca5c7f8651c5da466d1c35a388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mwyeEqGbtNjYDsoibvztKzDjkLRtAvLkFQ\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1638473067,\n \"txid\": \"eaa29eb1921b0c9055aae9cf445a5181a182a7168eb76c6db3395640f76e2e55\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\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#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": null,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mgZ9kB7PNhMPYkypE2wUbyCJtMPQVSNeRJ\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"bid_everything\": false, \"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 879a99e68ea282a397e16ca1680cc925a160c169 --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"bid_everything\": false, \"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\": \"01000000023dd5050d9cca3e72bfe24e6a36d68caf88d139983908534439704157c6e9384c000000006a47304402200654fbde058bf7272cd4cd9de5315760e57165f3aa5462fdfd674cb57eec0df5022054649b819d3c8367c5d16db77a4c35327932a0740739c8a5827d18f87ed89efc012102ef5464c9bf949c4770e6ba1e61bf56b9bec340e2ac86f6d55956748b5d291582ffffffff60a00daa59b4c64a95006fae988984bc4be767b921d1049f3c556581279667ea000000006a47304402202cea1e2dcdf12468f9b55cd95abce412d2646d70f8c873abf17d917bcfe1bbd002204760c886536105f8fa4be3d2cfd6181b618921889a1b0b5c38d0db5a92e11c98012103fb77d532fd2f0dfdb8d19d6d9a6b318ba96f7ec00f231dcc9f83f4ed2a56c658ffffffff0200e1f505000000006eb708406368616e6e656c1469c160a125c90c68a16ce197a382a28ee6999a87330012230a2103a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709420b4e6577204368616e6e656c6d6d76a9149ecd8961673460542f461f981763971f0513c5a688ac5ec9ea0b000000001976a914f4c459c94af9b7a64d22493d1136ffa5ec788ac288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n1LnLz8pJ6yqfxX8DyNiTkZYBBvFHePLmm\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1651689431,\n \"txid\": \"ea6796278165553c9f04d121b967e74bbc848998ae6f00954ac6b459aa0da060\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\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#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": null,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n3qAPYkzxVBWURGCDVpPey2v68CiXaQiGS\",\n \"amount\": \"1.9993635\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002405\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993635\",\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\"\n }\n}" } ] } @@ -1702,20 +1788,20 @@ "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"has_source\": false, \"has_no_source\": false, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"has_source\": false, \"has_no_source\": false, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\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\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\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\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"has_source\": false, \"has_no_source\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"has_source\": false, \"has_no_source\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\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\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\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}" } ] }, { "name": "claim_search", - "description": "Search for stream and channel claims on the blockchain.\n\nArguments marked with \"supports equality constraints\" allow prepending the\nvalue with an equality constraint such as '>', '>=', '<' and '<='\neg. --height=\">400000\" would limit results to only claims above 400k block height.", + "description": "Search for stream and channel claims on the blockchain.\n\nArguments marked with \"supports equality constraints\" allow prepending the\nvalue with an equality constraint such as '>', '>=', '<' and '<='\neg. --height=\">400000\" would limit results to only claims above 400k block height.\n\nThey also support multiple constraints passed as a list of the args described above.\neg. --release_time=[\">1000000\", \"<2000000\"]", "arguments": [ { "name": "name", @@ -2053,6 +2139,12 @@ "description": "find claims containing a source field", "is_required": false }, + { + "name": "sd_hash", + "type": "str", + "description": "find claims where the source stream descriptor hash matches (partially or completely) the given hexadecimal string", + "is_required": false + }, { "name": "has_no_source", "type": "bool", @@ -2073,14 +2165,14 @@ "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"remove_duplicates\": false, \"has_source\": false, \"has_no_source\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --channel=@channel", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"remove_duplicates\": false, \"has_source\": false, \"has_no_source\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#f\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1638473068,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1638473067,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8/astream#7\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1651689432,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1651689431,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"short_url\": \"lbry://@channel#8\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" }, { "title": "Search for claims matching a name", "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"remove_duplicates\": false, \"has_source\": false, \"has_no_source\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --name=\"astream\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"remove_duplicates\": false, \"has_source\": false, \"has_no_source\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#f\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1638473068,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1638473067,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8/astream#7\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1651689432,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1651689431,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"short_url\": \"lbry://@channel#8\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\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}" } ] } @@ -2155,6 +2247,12 @@ "description": "amount to back the claim", "is_required": true }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "claims", "type": "list", @@ -2268,10 +2366,10 @@ "examples": [ { "title": "Create a collection of one stream", - "curl": "curl -d'{\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet collection create --name=tom --bid=1.0 --channel_id=add76735eb99e808dae24cbdfa6ceb12029ee794 --claims=f6d2070225511eeb8a1c33f1d4bdb76e22716547", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001d691c54b384f56d01fa9432be257bc153bb9e303f31695ac0953834483cce310010000006b483045022100a48cf3fdf47f6ae1588826d44468b860cfebc8a85b7c12da7a3771ed10c5672b0220246345b3f22fbb6fdcb3fd1bfdfc97ce98f9147ecebf28163404cb3296c2ec48012102bc70b5c31d2dcefac29faf37d185bc4edca649625110e2cb6b64845eb64ff7a9ffffffff0200e1f5050000000091b503746f6d4c6f0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad110f2d85972d77b9502f4fd44a7d54041245238f7f6db7a46bf03b7407b4c1906cf9db06596d6799387fe97e36e7690422ddd603abf5656cf71735023933d9d61a1812160a14476571226eb7bdd4f1331c8aeb1e51250207d2f66d7576a9146ac84980e3ce8595bb0d48441af6b93e58c6339c88ac202c7e17000000001976a914e39c5c993cdfaa76059dd7181aa7f5b0e006cf4b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1TjmPqMddpvhVYt2zwL47GeVkdVdsnX61\",\n \"amount\": \"4.947555\",\n \"confirmations\": 2,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1638473068,\n \"txid\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqFZrafoJXcwUnUpNVzRxQZZszBxo798ot\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ec48c448d010dc817a8b6ac9d85ff3e0f97e55a3\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"tom\",\n \"normalized_name\": \"tom\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://tom#ec48c448d010dc817a8b6ac9d85ff3e0f97e55a3\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"6a39355eeafc8960170561d45c507f7cacb519d1dfa1cf8d3f7777b97502c241\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"\n ]\n },\n \"value_type\": \"collection\"\n },\n {\n \"address\": \"n2GSzoTb1HBSkeDzaF1g8TGZtvSqsFCxKF\",\n \"amount\": \"3.941448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6a39355eeafc8960170561d45c507f7cacb519d1dfa1cf8d3f7777b97502c241\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.006107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.941448\",\n \"txid\": \"6a39355eeafc8960170561d45c507f7cacb519d1dfa1cf8d3f7777b97502c241\"\n }\n}" + "curl": "curl -d'{\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"bid_everything\": false, \"claims\": [\"713086e8213eb2e43f8db0168c11fbb670dcff26\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet collection create --name=tom --bid=1.0 --channel_id=879a99e68ea282a397e16ca1680cc925a160c169 --claims=713086e8213eb2e43f8db0168c11fbb670dcff26", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"bid_everything\": false, \"claims\": [\"713086e8213eb2e43f8db0168c11fbb670dcff26\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000013d3f6dc3ca37ebd960b3e5895ada48fd5ac77181f4556c148a017b579a255fd6010000006b483045022100887b92b7bf34b997159170c4fc01d3e25be502ceddaff8aefaafc0da320971e602201fc5bf2ca236fe404f42a3f2f9e9f2b9aae620ee17fccdec91a3bff6eb8e77cc0121022156e7ee26c6e37b5fc872116e3d104d911c72519fb50b019cc78ed57458f365ffffffff0200e1f5050000000091b503746f6d4c6f0169c160a125c90c68a16ce197a382a28ee6999a878b3e18a46db2480e9d8ed5d580c548af5a10db26a415932d99a8be6957565076559f595716841006238c11704e9cdef576f1613e9b31d30317b2028ddafd957b1a1812160a1426ffdc70b6fb118c16b08d3fe4b23e21e88630716d7576a914d1c66f3f463025c6d22aa14f9f98f8697bcf0db088ac202c7e17000000001976a91484edd27705afcc1fb509854392d27aa2813a448a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzqQkh7ocP5jpPnXno3UvdvYLgQZHyvyEz\",\n \"amount\": \"4.947555\",\n \"confirmations\": 2,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1651689438,\n \"txid\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mze9EczryosaZVREWmm5BBwTAwnbs3wSn2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"af778cf08c1debf04cf98e7e815a03a0b4db21b4\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"tom\",\n \"normalized_name\": \"tom\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://tom#af778cf08c1debf04cf98e7e815a03a0b4db21b4\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"7de9ed81fb77031f9852b7891bc6a31e58f82b729d2f1744f6491f6d8b2836f4\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"713086e8213eb2e43f8db0168c11fbb670dcff26\"\n ]\n },\n \"value_type\": \"collection\"\n },\n {\n \"address\": \"msdpPYfmDx2gdcxXoxabcivvRpKUdvRNem\",\n \"amount\": \"3.941448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7de9ed81fb77031f9852b7891bc6a31e58f82b729d2f1744f6491f6d8b2836f4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.006107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.941448\",\n \"txid\": \"7de9ed81fb77031f9852b7891bc6a31e58f82b729d2f1744f6491f6d8b2836f4\"\n }\n}" } ] }, @@ -2323,7 +2421,7 @@ "curl": "curl -d'{\"method\": \"collection_list\", \"params\": {\"resolve_claims\": 1, \"resolve\": true}}' http://localhost:5279/", "lbrynet": "lbrynet collection list --resolve --resolve_claims=1", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_list\", \"params\": {\"resolve_claims\": 1, \"resolve\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mqFZrafoJXcwUnUpNVzRxQZZszBxo798ot\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/tom#e\",\n \"claim_id\": \"ec48c448d010dc817a8b6ac9d85ff3e0f97e55a3\",\n \"claim_op\": \"create\",\n \"claims\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a/astream#f\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1638473068,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#a\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1638473067,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"short_url\": \"lbry://@channel#a\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"confirmations\": 1,\n \"height\": 217,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 217,\n \"creation_height\": 217,\n \"creation_timestamp\": 1638473068,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 717,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 217\n },\n \"name\": \"tom\",\n \"normalized_name\": \"tom\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://tom#ec48c448d010dc817a8b6ac9d85ff3e0f97e55a3\",\n \"short_url\": \"lbry://tom#e\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"6a39355eeafc8960170561d45c507f7cacb519d1dfa1cf8d3f7777b97502c241\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"\n ]\n },\n \"value_type\": \"collection\"\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\": \"mze9EczryosaZVREWmm5BBwTAwnbs3wSn2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8/tom#a\",\n \"claim_id\": \"af778cf08c1debf04cf98e7e815a03a0b4db21b4\",\n \"claim_op\": \"create\",\n \"claims\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8/astream#7\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 214,\n \"creation_height\": 213,\n \"creation_timestamp\": 1651689432,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 714,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#8\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 210,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1651689431,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 710,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"short_url\": \"lbry://@channel#8\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"confirmations\": 1,\n \"height\": 217,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 217,\n \"creation_height\": 217,\n \"creation_timestamp\": 1651689441,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 717,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 217\n },\n \"name\": \"tom\",\n \"normalized_name\": \"tom\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://tom#af778cf08c1debf04cf98e7e815a03a0b4db21b4\",\n \"short_url\": \"lbry://tom#a\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689441,\n \"txid\": \"7de9ed81fb77031f9852b7891bc6a31e58f82b729d2f1744f6491f6d8b2836f4\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"713086e8213eb2e43f8db0168c11fbb670dcff26\"\n ]\n },\n \"value_type\": \"collection\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -2381,6 +2479,12 @@ "description": "amount to back the claim", "is_required": false }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "claims", "type": "list", @@ -2579,9 +2683,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"713086e8213eb2e43f8db0168c11fbb670dcff26\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -2742,14 +2846,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\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 \"is_fully_reflected\": true,\n \"key\": \"6f57dcfb5e64cc5172c07929ac8720b6\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad7d593e2e84647ec1122144433db0a4321c77eb6e1276c12b6934064b07547cbfadd7a9aecd5fc53460eb27274cfd8914aad2a302c2c483511e46fc0473c886050a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3c18d82c0c262331785e3e6c45dd05f6fe4f6918bb08fe552772e230fefe2cb079cf171c9ba8255be068fda898119d23\",\n \"stream_name\": \"tmpj5wn5xs8\",\n \"streaming_url\": \"http://localhost:5280/stream/945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"suggested_file_name\": \"tmpj5wn5xs8\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"9fc7dfa2c958d662a1f5599440701dc1a2651581\",\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 \"is_fully_reflected\": true,\n \"key\": \"011089e17ff836aa6434e3926f5d0f67\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mxGqo1Ps9zX3v2RwFJQWw9qtGDVHsTZUL3\",\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\": \"1638473040\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpy4uy2zdj.png\",\n \"sd_hash\": \"b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd\",\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\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad3efd7f997a6102834b4c7faf79435f7f8c33b760fd0854503a8ff71fcc088d28d76165b649cd284326e4103a35e5f7b8a87766c08406cf881855268d37d0f4390ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d7079347579327a646a2e706e6718632209696d6167652f706e673230b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728d0baa48d063222080112196fb7cee3654d70cef1c8eb5aeb77c708509a9a2b94ae8ba0fc188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"4270f3a29dba8dfd55e94a320dc00f12e30bac5b2486a57db259f7156c4ed099339ff2e6a3b429504a6fa499f7e550d4\",\n \"stream_name\": \"tmpy4uy2zdj.png\",\n \"streaming_url\": \"http://localhost:5280/stream/b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd\",\n \"suggested_file_name\": \"tmpy4uy2zdj.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\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 \"is_fully_reflected\": true,\n \"key\": \"64a9cfc595fbde1db09cb2aed90ce245\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0169c160a125c90c68a16ce197a382a28ee6999a87fc90c0c968700144f7bfba6be4fee0ace026874ae629a7e6158a7b3b944885072662a3d6392938212f45576f00e76d95ee49d32914a010f536f1b49d17b140bc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"2aa82b8d5212a2e794fd115323f812ba0df03e54814d203c0063badbcda99a04d138e6250d0f7cd210ecf05d6d8d1492\",\n \"stream_name\": \"tmpnta3qbuz\",\n \"streaming_url\": \"http://localhost:5280/stream/43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"suggested_file_name\": \"tmpnta3qbuz\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"69fd0928b532a51be321a0b92d3066497df9b620\",\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 \"is_fully_reflected\": true,\n \"key\": \"f051f779f3934e0507e14707b0acaead\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\",\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\": \"1651689437\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp72t0waoz.png\",\n \"sd_hash\": \"79f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149\",\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\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0169c160a125c90c68a16ce197a382a28ee6999a8716cf80142b054137adf103a01f556c21d64df0b443d7b0af8352786e75d66fe50914812ea789985dd7ebaa83cb0816504c463ab571a721f9df5eb2db259e87470ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d703732743077616f7a2e706e6718632209696d6167652f706e67323079f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728dd8fcb93063222080112196f87de9a3129fb3deee4853f620631d1f576eba27b57bf2710188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"79f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3eb42505e96541f70f9d09f44b6676005f8a366951c1c8c634fb34adc9f2b44a50ddc1c1049111bbdc3a1a5b5ecbf51d\",\n \"stream_name\": \"tmp72t0waoz.png\",\n \"streaming_url\": \"http://localhost:5280/stream/79f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149\",\n \"suggested_file_name\": \"tmp72t0waoz.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"f6d2070225511eeb8a1c33f1d4bdb76e22716547\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"is_fully_reflected\": true,\n \"key\": \"6f57dcfb5e64cc5172c07929ac8720b6\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad7d593e2e84647ec1122144433db0a4321c77eb6e1276c12b6934064b07547cbfadd7a9aecd5fc53460eb27274cfd8914aad2a302c2c483511e46fc0473c886050a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3c18d82c0c262331785e3e6c45dd05f6fe4f6918bb08fe552772e230fefe2cb079cf171c9ba8255be068fda898119d23\",\n \"stream_name\": \"tmpj5wn5xs8\",\n \"streaming_url\": \"http://localhost:5280/stream/945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"suggested_file_name\": \"tmpj5wn5xs8\",\n \"timestamp\": 1638473068,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"713086e8213eb2e43f8db0168c11fbb670dcff26\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"is_fully_reflected\": true,\n \"key\": \"64a9cfc595fbde1db09cb2aed90ce245\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0169c160a125c90c68a16ce197a382a28ee6999a87fc90c0c968700144f7bfba6be4fee0ace026874ae629a7e6158a7b3b944885072662a3d6392938212f45576f00e76d95ee49d32914a010f536f1b49d17b140bc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"2aa82b8d5212a2e794fd115323f812ba0df03e54814d203c0063badbcda99a04d138e6250d0f7cd210ecf05d6d8d1492\",\n \"stream_name\": \"tmpnta3qbuz\",\n \"streaming_url\": \"http://localhost:5280/stream/43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"suggested_file_name\": \"tmpnta3qbuz\",\n \"timestamp\": 1651689434,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -2866,10 +2970,10 @@ "examples": [ { "title": "Save a file to the downloads directory", - "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file save --sd_hash=\"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1638473043,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpd_du30j6\",\n \"download_path\": \"/tmp/tmpd_du30j6/tmpj5wn5xs8_1\",\n \"file_name\": \"tmpj5wn5xs8_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"6f57dcfb5e64cc5172c07929ac8720b6\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0194e79e0212eb6cfabd4ce2da08e899eb3567d7ad7d593e2e84647ec1122144433db0a4321c77eb6e1276c12b6934064b07547cbfadd7a9aecd5fc53460eb27274cfd8914aad2a302c2c483511e46fc0473c886050a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3c18d82c0c262331785e3e6c45dd05f6fe4f6918bb08fe552772e230fefe2cb079cf171c9ba8255be068fda898119d23\",\n \"stream_name\": \"tmpj5wn5xs8\",\n \"streaming_url\": \"http://localhost:5280/stream/945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"suggested_file_name\": \"tmpj5wn5xs8\",\n \"timestamp\": 1638473068,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file save --sd_hash=\"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1651689442,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj\",\n \"download_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj/tmpnta3qbuz_1\",\n \"file_name\": \"tmpnta3qbuz_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"64a9cfc595fbde1db09cb2aed90ce245\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0169c160a125c90c68a16ce197a382a28ee6999a87fc90c0c968700144f7bfba6be4fee0ace026874ae629a7e6158a7b3b944885072662a3d6392938212f45576f00e76d95ee49d32914a010f536f1b49d17b140bc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"2aa82b8d5212a2e794fd115323f812ba0df03e54814d203c0063badbcda99a04d138e6250d0f7cd210ecf05d6d8d1492\",\n \"stream_name\": \"tmpnta3qbuz\",\n \"streaming_url\": \"http://localhost:5280/stream/43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"suggested_file_name\": \"tmpnta3qbuz\",\n \"timestamp\": 1651689434,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}" } ] }, @@ -2926,12 +3030,6 @@ "description": "find available peers for this blob hash", "is_required": true }, - { - "name": "search_bottom_out_limit", - "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", @@ -3150,7 +3248,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 \"allowed_origin\": \"\",\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"audio_encoder\": \"aac -b:a 160k\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blob_storage_limit\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"standard\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_hub_requests\": 32,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/tmp/tmpbb_x1g3t/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpd_du30j6\",\n \"download_dir\": \"/tmp/tmpd_du30j6\",\n \"download_timeout\": 30.0,\n \"ffmpeg_path\": \"\",\n \"fixed_peer_delay\": 2.0,\n \"fixed_peers\": [\n [\n \"127.0.0.1\",\n 5567\n ]\n ],\n \"hub_timeout\": 30.0,\n \"jurisdiction\": null,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"localhost\",\n 50002\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"network_storage_limit\": 0,\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"save_blobs\": true,\n \"save_files\": true,\n \"save_resolved_claims\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 4444,\n \"track_bandwidth\": true,\n \"transaction_cache_size\": 10000,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"video_bitrate_maximum\": 5000000,\n \"video_encoder\": \"libx264 -crf 24 -preset faster -pix_fmt yuv420p\",\n \"video_scaler\": \"-vf \\\"scale=if(gte(iw\\\\,ih)\\\\,min(1920\\\\,iw)\\\\,-2):if(lt(iw\\\\,ih)\\\\,min(1920\\\\,ih)\\\\,-2)\\\" -maxrate 5500K -bufsize 5000K\",\n \"volume_analysis_time\": 240,\n \"volume_filter\": \"\",\n \"wallet_dir\": \"/tmp/tmpd_du30j6\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"allowed_origin\": \"\",\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"audio_encoder\": \"aac -b:a 160k\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blob_storage_limit\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"prefer_confirmed\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_hub_requests\": 32,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpettwqqfq/daemon_settings.yml\",\n \"data_dir\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj\",\n \"download_dir\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj\",\n \"download_timeout\": 30.0,\n \"ffmpeg_path\": \"\",\n \"fixed_peer_delay\": 2.0,\n \"fixed_peers\": [\n [\n \"127.0.0.1\",\n 5567\n ]\n ],\n \"hub_timeout\": 30.0,\n \"jurisdiction\": null,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"localhost\",\n 50002\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"network_storage_limit\": 0,\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"save_blobs\": true,\n \"save_files\": true,\n \"save_resolved_claims\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 2,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 4444,\n \"track_bandwidth\": true,\n \"transaction_cache_size\": 10000,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"video_bitrate_maximum\": 5000000,\n \"video_encoder\": \"libx264 -crf 24 -preset faster -pix_fmt yuv420p\",\n \"video_scaler\": \"-vf \\\"scale=if(gte(iw\\\\,ih)\\\\,min(1920\\\\,iw)\\\\,-2):if(lt(iw\\\\,ih)\\\\,min(1920\\\\,ih)\\\\,-2)\\\" -maxrate 5500K -bufsize 5000K\",\n \"volume_analysis_time\": 240,\n \"volume_filter\": \"\",\n \"wallet_dir\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpu6mdpzjj\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}" } ] }, @@ -3225,10 +3323,10 @@ "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon f6d2070225511eeb8a1c33f1d4bdb76e22716547", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019aa49a19233261481023a4a919d6138ed9394377f2559f57c63e115fb6708606000000006b483045022100c287a54d5267662668ad5e8d386883cd776d8701533eea97e7b192f1fb1360eb0220257199938cce2d9e614dafd4ab658da781b613bbfd76c49ef690b8ac19f76b05012102b7ca42cfacdebcea518ff9d5025aef29b0710d47615d06bdbdda793c2599fdc6ffffffff0134b7f505000000001976a914010161196aef2c978630c17d49bf4ec2e6236a1088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfcGd5eMKvrbyQy4BQZnfGD9VZe5G7CoG9\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"c76720b1968703759af2c3def26449c7e922d6513a874faff720bcb5b79b5e26\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"c76720b1968703759af2c3def26449c7e922d6513a874faff720bcb5b79b5e26\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon 713086e8213eb2e43f8db0168c11fbb670dcff26", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001f52e99d9f671d2af315e1ea0788deae74ef37f204e711bc5c784bf98d84cec21000000006a473044022048ba94c9441b67504dfa80692a87f4cc08efd46d9dbe261ef10042d2fadf732a022027c216a2f0f5e2be578b51b7099b85c5152be09767583f240a8eae2f68fcc31d0121024a081e16d8c1a057d4d4d726889a37ee6a74b5fccfe8522bdabd42992fa60280ffffffff0134b7f505000000001976a9140f78bcf5b8bc4cd806d82310f0e157e2de7b5c2388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgvm4xqEf7evKhnhFE3SYGwRo2E4JLcTXf\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"5815cb11aa04246cff1bb6e55c6c5e38683dd0dcec16c770dbf02a99d4145f62\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"5815cb11aa04246cff1bb6e55c6c5e38683dd0dcec16c770dbf02a99d4145f62\"\n }\n}" } ] }, @@ -3262,6 +3360,12 @@ "description": "amount to back the claim", "is_required": true }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "file_path", "type": "str", @@ -3459,17 +3563,17 @@ "examples": [ { "title": "Create a stream claim without metadata", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpj5wn5xs8\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpj5wn5xs8", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpj5wn5xs8\", \"validate_file\": false, \"optimize_file\": false, \"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\": \"0100000001a40b84b1e68fb5c0217f4cd4a176aa508e251c794f04958d34f39387f9773dc0010000006a473044022038bdaf4255d0ec50d9fb97f192a43a3ea7a8565493b0dcc4453607b888f63776022048ec2ffc0443d46d4500b4da735a96a513e9e66187c6e5431bb7db234fb7cf340121027d111c377cd319149d0131739916c850f5b185302fe22b3fc359526d312beec5ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb6d7576a914f8d4a3682f66393ade07c62f149410d454125e8288ac38fb9423000000001976a91456c1787d450f02cfc09fe27d266a2ebe4bfd176388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mnX8MB7dEGJLLf4Jh84v3bsTDnjEqPSdwV\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1638473067,\n \"txid\": \"c03d77f98793f3348d95044f791c258e50aa76a1d44c7f21c0b58fe6b1840ba4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\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#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"timestamp\": null,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"moRgB8R4kZYFM3ewT4jKXoZhX3mkAPqY3a\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpnta3qbuz\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpnta3qbuz", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmpnta3qbuz\", \"validate_file\": false, \"optimize_file\": false, \"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\": \"01000000013dd5050d9cca3e72bfe24e6a36d68caf88d139983908534439704157c6e9384c010000006b4830450221008e15bff3ccb992b34d58f9e9ed13c8faa30e653c7ed769e04bceeea7c50dd0d90220290cc942ca332d2909fa28615d5940768ac58f7d24630078ff14d5ab49075359012103044a9d4ebfb165ee57bd18a81f9f9992e854df48203ad5c5e2275e0dea0224e2ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b36d7576a914e20f790a0b5f23f1bd4d6dc996f6696e145070ab88ac38fb9423000000001976a91479e552dbcbc47896e55b624544e76c95cd04ab5a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miZz2J7V5HPc9hqkHNYoDHBNpJZzUt8BTU\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1651689431,\n \"txid\": \"4c38e9c657417039445308399839d188af8cd6366a4ee2bf723eca9c0d05d53d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\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#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"timestamp\": null,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mrdUmxEjMZo591MiaXL2FXgxEdc5pjGq5P\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\"\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/tmpy4uy2zdj.png\", \"validate_file\": false, \"optimize_file\": false, \"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\": 1638473040, \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpy4uy2zdj.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=1638473040 --channel_id=\"add76735eb99e808dae24cbdfa6ceb12029ee794\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpy4uy2zdj.png\", \"validate_file\": false, \"optimize_file\": false, \"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\": 1638473040, \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000013e0c691705e692b7b6882158b63f021e3643a6d3393ee6efaabd53fa628ba77a010000006b4830450221009729e174e46570b3c035fb94e90b772b2018ac8e48821f6750ffd8fa0c5154050220778ca1e135f3590fd71282011ab0a6c8037b5b5d465ed06fd3c833a19408644f012102dbac7323952c2bd76538e94dac55dcf4b8d68febac90c0c0d00082718a0c46d2ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010194e79e0212eb6cfabd4ce2da08e899eb3567d7ad3efd7f997a6102834b4c7faf79435f7f8c33b760fd0854503a8ff71fcc088d28d76165b649cd284326e4103a35e5f7b8a87766c08406cf881855268d37d0f4390ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d7079347579327a646a2e706e6718632209696d6167652f706e673230b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728d0baa48d063222080112196fb7cee3654d70cef1c8eb5aeb77c708509a9a2b94ae8ba0fc188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914b7cee3654d70cef1c8eb5aeb77c708509a9a2b9488acac5e7d1d000000001976a914dac6cf36e2894a1158283c2323709d5ad3a51dab88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"moRgB8R4kZYFM3ewT4jKXoZhX3mkAPqY3a\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1638473068,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxGqo1Ps9zX3v2RwFJQWw9qtGDVHsTZUL3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9fc7dfa2c958d662a1f5599440701dc1a2651581\",\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#9fc7dfa2c958d662a1f5599440701dc1a2651581\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mxGqo1Ps9zX3v2RwFJQWw9qtGDVHsTZUL3\",\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\": \"1638473040\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpy4uy2zdj.png\",\n \"sd_hash\": \"b4ee14ed36a23aaf499a5ea0b06c8fd8876be8613e19323fc109c7f06768c7cc6b979ecebf8fae6a145ac1e5583409dd\",\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\": \"n1TjmPqMddpvhVYt2zwL47GeVkdVdsnX61\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"10e3cc8344835309ac9516f303e3b93b15bc57e22b43a91fd0564f384bc591d6\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmp72t0waoz.png\", \"validate_file\": false, \"optimize_file\": false, \"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\": 1651689437, \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmp72t0waoz.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=1651689437 --channel_id=\"879a99e68ea282a397e16ca1680cc925a160c169\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"bid_everything\": false, \"file_path\": \"/var/folders/46/44w2zhrx16b8gsvff9dxtr640000gq/T/tmp72t0waoz.png\", \"validate_file\": false, \"optimize_file\": false, \"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\": 1651689437, \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c9e727026a7b6b431e669406f21e73aab96d1b7f69e6cf4a6e9c92138a7bf5de010000006b483045022100a91b8eb490d2ae0782a3e79ffd3f2b9576dd0165906b02be65f221dffa9a27d40220728d8fd069978136771af179d0b44eeb913267485e7ea0ee410a6f4b86996e8401210275402cfaf4b3d0c407721895ec3955739c2dcb1f8c9bdb5aca56b2a05cbc63c0ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010169c160a125c90c68a16ce197a382a28ee6999a8716cf80142b054137adf103a01f556c21d64df0b443d7b0af8352786e75d66fe50914812ea789985dd7ebaa83cb0816504c463ab571a721f9df5eb2db259e87470ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d703732743077616f7a2e706e6718632209696d6167652f706e67323079f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728dd8fcb93063222080112196f87de9a3129fb3deee4853f620631d1f576eba27b57bf2710188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a91487de9a3129fb3deee4853f620631d1f576eba27b88acac5e7d1d000000001976a914d3e7f6dc7eb04a4aa691ce6c65aeb063d0ec85e288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrdUmxEjMZo591MiaXL2FXgxEdc5pjGq5P\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1651689432,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"69fd0928b532a51be321a0b92d3066497df9b620\",\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#69fd0928b532a51be321a0b92d3066497df9b620\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"msuNBdYovFPqvQfaCuks8LUJRxwaw1BqD9\",\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\": \"1651689437\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp72t0waoz.png\",\n \"sd_hash\": \"79f6d865d02048e795dd50b30f6349a2e6a55b524f4e721a35593b6a98270c79ecb606e88c69ee9615b20af7c0841149\",\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\": \"mzqQkh7ocP5jpPnXno3UvdvYLgQZHyvyEz\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"d65f259a577b018a146c55f48171c75afd48da5a89e5b360d9eb37cac36d3f3d\"\n }\n}" } ] }, @@ -3539,14 +3643,14 @@ "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/", "lbrynet": "lbrynet stream list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"timestamp\": 1638473068,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\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\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"timestamp\": 1651689432,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\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\": 2,\n \"total_pages\": 1\n }\n}" }, { "title": "Paginate your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/", "lbrynet": "lbrynet stream list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1638473068,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"timestamp\": 1638473068,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\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\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1651689434,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"timestamp\": 1651689432,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\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\": 2,\n \"total_pages\": 1\n }\n}" } ] }, @@ -3566,6 +3670,12 @@ "description": "amount to back the claim", "is_required": true }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "claim_id", "type": "str", @@ -3652,6 +3762,12 @@ "description": "amount to back the claim", "is_required": false }, + { + "name": "bid_everything", + "type": "bool", + "description": "bid everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "file_path", "type": "str", @@ -3885,10 +4001,10 @@ "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update f6d2070225511eeb8a1c33f1d4bdb76e22716547 --channel_id=\"add76735eb99e808dae24cbdfa6ceb12029ee794\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\", \"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\": \"01000000023e0c691705e692b7b6882158b63f021e3643a6d3393ee6efaabd53fa628ba77a000000006b483045022100fe93a500d582fbb93ac2b4b0c9a19c03f785c0b6be0e3b3074a663959aeaa39702207ecbaf8bdd81b0a95033c91028fe0255cf036b2f95c1ada51fb69e36ad70f931012102b7ca42cfacdebcea518ff9d5025aef29b0710d47615d06bdbdda793c2599fdc6ffffffff2a0faf835211db781b0f8b93db747e65b10afe9933815cbb71d255b909319bd9010000006a47304402200aee2e4aef0083a74d0881d9df424d2e00959a10c6701a8f4d8382bf670dc0ea022072c9e84a2912ad2b6b76d272113bfefdbf6849f87b3eb84f65b1e43d91c0fbe80121038fcc29f05e2d2c72efbf9845bac77c11f60e0a1dde067538b8b9a75c4e1073a2ffffffff0200e1f50500000000fd2301b7076173747265616d14476571226eb7bdd4f1331c8aeb1e51250207d2f64ce80194e79e0212eb6cfabd4ce2da08e899eb3567d7ad7d593e2e84647ec1122144433db0a4321c77eb6e1276c12b6934064b07547cbfadd7a9aecd5fc53460eb27274cfd8914aad2a302c2c483511e46fc0473c886050a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706a35776e35787338180b22186170706c69636174696f6e2f6f637465742d73747265616d3230945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb6d6d76a914f8d4a3682f66393ade07c62f149410d454125e8288ac32a0d205000000001976a914c265c0c4da4081e880cd5e151f17fdc61e45807b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"timestamp\": 1638473068,\n \"txid\": \"7aa78b62fa53bdaaefe63e39d3a643361e023fb6582188b6b792e60517690c3e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtxwiNHPpjCLsCRvXgQGbhAz4zf4tC8CNk\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1638473067,\n \"txid\": \"d99b3109b955d271bb5c813399fe0ab1657e74db938b0f1b78db115283af0f2a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4CebzkzEW2CKUMKZhMhzFuEEDRKcesPLh\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\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#f6d2070225511eeb8a1c33f1d4bdb76e22716547\",\n \"signing_channel\": {\n \"address\": \"mj53t6s8aEjq9zSoRe8XGxkVoVf4qBEYwC\",\n \"amount\": \"1.0\",\n \"claim_id\": \"add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#add76735eb99e808dae24cbdfa6ceb12029ee794\",\n \"timestamp\": 1638473067,\n \"txid\": \"055014f3b76a1921469115eb5a3ddf3b6a09771668e0f2e804171a4b7cb47f63\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000460ce4a80d624b65a5790576572ff76fdada28f7a414af45e2e10215c457f838e6b80088d0cb029cedb0b6872235a5497d0cb330445a779b7bb7e67fc153f2acb\",\n \"public_key_id\": \"mqdnuka4BhqJKtdnNbVnwyoWCGabAw4Fs1\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpj5wn5xs8\",\n \"sd_hash\": \"945bfb89aee0053cd5ab346afa7a3ea673c4bd68b440e91727a2212887eaeca6e7d52f29533217edaa3991b073392fcb\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"myEqHC5MTrfpWeLcyNQeUVsnF22rXLvDg7\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"068670b65f113ec6579f55f2774339d98e13d619a9a4231048613223199aa49a\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"bid_everything\": false, \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update 713086e8213eb2e43f8db0168c11fbb670dcff26 --channel_id=\"879a99e68ea282a397e16ca1680cc925a160c169\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\", \"bid_everything\": false, \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\", \"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\": \"0100000002c9e727026a7b6b431e669406f21e73aab96d1b7f69e6cf4a6e9c92138a7bf5de000000006a4730440220609b040242e1fdf4dd27fa0fc21afc39a63b4d0f78c67e99cb2b34e8a8c6b93702200471db0206edb61b3286712a5e15f40998d9ac4f030f1139da698ef475ca69740121024a081e16d8c1a057d4d4d726889a37ee6a74b5fccfe8522bdabd42992fa60280ffffffff888348ce2ce4561fa5eb0cf0b2aef135ba759e5cf5857f2e3486e0407415f286010000006b483045022100ea1b942da91de17a2eeea1308b48d1400da5b0aefa8fdf8ce5cf58efb248391d0220651d7a861b7e57af0503f736f4e42b1bebf33fdcb4b768413c6a31ccbba9fa980121033ed512722b0efb766e38ae455734bf6921ff2e8382361e290e890f3544bc4695ffffffff0200e1f50500000000fd2301b7076173747265616d1426ffdc70b6fb118c16b08d3fe4b23e21e88630714ce80169c160a125c90c68a16ce197a382a28ee6999a87fc90c0c968700144f7bfba6be4fee0ace026874ae629a7e6158a7b3b944885072662a3d6392938212f45576f00e76d95ee49d32914a010f536f1b49d17b140bc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e7461337162757a180b22186170706c69636174696f6e2f6f637465742d73747265616d323043f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b36d6d76a914e20f790a0b5f23f1bd4d6dc996f6696e145070ab88ac22abd205000000001976a914db3e582552f0c360916cc5a0bf97b34bfb8aac0d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"timestamp\": 1651689432,\n \"txid\": \"def57b8a13929c6e4acfe6697f1b6db9aa731ef20694661e436b7b6a0227e7c9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mmFRtiZVsNfptLsqm5RybET7SckysLdvin\",\n \"amount\": \"0.9772565\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1651689431,\n \"txid\": \"86f2157440e086342e7f85f55c9e75ba35f1aeb2f00ceba51f56e42cce488388\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n28FYUe42shoUtuxDH9BKaTsn3rvf2JCV2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"713086e8213eb2e43f8db0168c11fbb670dcff26\",\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#713086e8213eb2e43f8db0168c11fbb670dcff26\",\n \"signing_channel\": {\n \"address\": \"muzdHJKogaaC3Ds78NpkokbiC7iFgPSsAV\",\n \"amount\": \"1.0\",\n \"claim_id\": \"879a99e68ea282a397e16ca1680cc925a160c169\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#879a99e68ea282a397e16ca1680cc925a160c169\",\n \"timestamp\": 1651689431,\n \"txid\": \"d138559e06f28e578c6d44c3eade880858ce2b4fd6eb661eca0f5794f43778dd\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"03a86afb9501a658856e07f248ff6899e536ae21f0d3c9badae5d886e67166f709\",\n \"public_key_id\": \"moTBSdaQFDE93Msck3HAdJme9WLVeP89qw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnta3qbuz\",\n \"sd_hash\": \"43f902adfff33fefc1efe5507186d308f8c562fbd24b633eb6535171f9de73b34bfc877da4694bde7ea51996a1fe80b3\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1WCxpkg2rW2hofBmkk6MFF5nzaFSSsEPy\",\n \"amount\": \"0.9769245\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772565\",\n \"total_output\": \"1.9769245\",\n \"txid\": \"21ec4cd898bf84c7c51b714e207ff34ee7ea8d78a01e5e31afd271f6d9992ef5\"\n }\n}" } ] } @@ -3969,6 +4085,12 @@ "description": "amount of support", "is_required": true }, + { + "name": "amount_everything", + "type": "bool", + "description": "send everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "tip", "type": "bool", @@ -4270,7 +4392,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2021-12-02 14:24\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1638473067,\n \"txid\": \"0cd8dc8647ec9feaff476d8dea3458fcc98bfb9d2a13f65ec6edeb983246a136\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2021-12-02 14:24\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1638473066,\n \"txid\": \"f2826af5fa075c7f9af7397adbf4c88a6cfba623c6da1df3eee4c833c09f40e2\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2022-05-04 14:37\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1651689431,\n \"txid\": \"618646b2cab7230e00390a8c7405e8b076df379f61bedbec0ee1c1b761f1c7be\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2022-05-04 14:37\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1651689430,\n \"txid\": \"ef7d142ab01b089b42dfbafce63bdd8b93bb1143216d21e04b99861135d91082\",\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}" } ] }, @@ -4998,6 +5120,18 @@ "name": "wallet_send", "description": "Send the same number of credits to multiple addresses using all accounts in wallet to\nfund the transaction and the default account to receive any change.", "arguments": [ + { + "name": "amount", + "type": "decimal", + "description": "the amount to transfer lbc", + "is_required": true + }, + { + "name": "amount_everything", + "type": "bool", + "description": "send everything from funding accounts (excluding claims), default: false.", + "is_required": false + }, { "name": "wallet_id", "type": "str", diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 6e8d5adccf..64e7f84b26 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -11,7 +11,7 @@ import tracemalloc from decimal import Decimal from urllib.parse import urlencode, quote -from typing import Callable, Optional, List +from typing import Callable, Optional, List, Union from binascii import hexlify, unhexlify from traceback import format_exc from functools import wraps, partial @@ -25,7 +25,7 @@ Wallet, ENCRYPT_ON_DISK, SingleKey, HierarchicalDeterministic, Transaction, Output, Input, Account, database ) -from lbry.wallet.dewies import dewies_to_lbc, lbc_to_dewies, dict_values_to_lbc +from lbry.wallet.dewies import dewies_to_lbc, lbc_to_dewies, dict_values_to_lbc, AMOUNT_EVERYTHING from lbry.wallet.constants import TXO_TYPES, CLAIM_TYPE_NAMES from lbry.wallet.bip32 import PrivateKey from lbry.crypto.base58 import Base58 @@ -39,7 +39,7 @@ DownloadSDTimeoutError, ComponentsNotStartedError, ComponentStartConditionNotMetError, CommandDoesNotExistError, BaseError, WalletNotFoundError, WalletAlreadyLoadedError, WalletAlreadyExistsError, ConflictingInputValueError, AlreadyPurchasedError, PrivateKeyNotFoundError, InputStringIsBlankError, - InputValueError + InputValueError, InputValueIsNoneError ) from lbry.extras import system_info from lbry.extras.daemon import analytics @@ -1539,18 +1539,23 @@ def jsonrpc_wallet_encrypt(self, new_password, wallet_id=None): @requires(WALLET_COMPONENT) async def jsonrpc_wallet_send( - self, amount, addresses, wallet_id=None, - change_account_id=None, funding_account_ids=None, preview=False, blocking=True): + self, amount=None, addresses=None, wallet_id=None, + change_account_id=None, funding_account_ids=None, + preview=False, blocking=True, amount_everything=False): """ Send the same number of credits to multiple addresses using all accounts in wallet to fund the transaction and the default account to receive any change. Usage: - wallet_send ... [--wallet_id=] [--preview] + wallet_send ( | --amount= | --amount_everything) ... + [--wallet_id=] [--preview] [--change_account_id=None] [--funding_account_ids=...] [--blocking] Options: + --amount= : (decimal) the amount to transfer lbc + --amount_everything : (bool) send everything from funding accounts (excluding claims), + default: false. --wallet_id= : (str) restrict operation to specific wallet --change_account_id= : (str) account where change will go --funding_account_ids= : (str) accounts to fund the transaction @@ -1564,32 +1569,17 @@ async def jsonrpc_wallet_send( account = wallet.get_account_or_default(change_account_id) accounts = wallet.get_accounts_or_all(funding_account_ids) - amount = self.get_dewies_or_error("amount", amount) + amount = self.get_amount_or_error('amount', amount, everything=amount_everything) + if addresses is None: + raise InputValueIsNoneError('addresses') if addresses and not isinstance(addresses, list): addresses = [addresses] - outputs = [] for address in addresses: self.valid_address_or_error(address, allow_script_address=True) - if self.ledger.is_pubkey_address(address): - outputs.append( - Output.pay_pubkey_hash( - amount, self.ledger.address_to_hash160(address) - ) - ) - elif self.ledger.is_script_address(address): - outputs.append( - Output.pay_script_hash( - amount, self.ledger.address_to_hash160(address) - ) - ) - else: - raise ValueError(f"Unsupported address: '{address}'") # TODO: use error from lbry.error - tx = await Transaction.create( - [], outputs, accounts, account - ) + tx = await Transaction.pay(amount, addresses, accounts, account) if not preview: await self.broadcast_or_release(tx, blocking) self.component_manager.loop.create_task(self.analytics_manager.send_credits_sent()) @@ -1832,7 +1822,7 @@ def jsonrpc_account_max_address_gap(self, account_id, wallet_id=None): return wallet.get_account_or_error(account_id).get_max_gap() @requires("wallet") - def jsonrpc_account_fund(self, to_account=None, from_account=None, amount='0.0', + def jsonrpc_account_fund(self, to_account=None, from_account=None, amount=None, everything=False, outputs=1, broadcast=False, wallet_id=None): """ Transfer some amount (or --everything) to an account from another @@ -1850,7 +1840,7 @@ def jsonrpc_account_fund(self, to_account=None, from_account=None, amount='0.0', Options: --to_account= : (str) send to this account --from_account= : (str) spend from this account - --amount= : (str) the amount to transfer lbc + --amount= : (decimal) the amount to transfer lbc --everything : (bool) transfer everything (excluding claims), default: false. --outputs= : (int) split payment across many outputs, default: 1. --wallet_id= : (str) limit operation to specific wallet. @@ -1861,7 +1851,8 @@ def jsonrpc_account_fund(self, to_account=None, from_account=None, amount='0.0', wallet = self.wallet_manager.get_wallet_or_default(wallet_id) to_account = wallet.get_account_or_default(to_account) from_account = wallet.get_account_or_default(from_account) - amount = self.get_dewies_or_error('amount', amount) if amount else None + amount = self.get_amount_or_error('amount', amount, everything=everything, + default_value=0, argument_everything='everything') if not isinstance(outputs, int): # TODO: use error from lbry.error raise ValueError("--outputs must be an integer.") @@ -1869,8 +1860,7 @@ def jsonrpc_account_fund(self, to_account=None, from_account=None, amount='0.0', # TODO: use error from lbry.error raise ValueError("Using --everything along with --outputs is not supported.") return from_account.fund( - to_account=to_account, amount=amount, everything=everything, - outputs=outputs, broadcast=broadcast + to_account=to_account, amount=amount, outputs=outputs, broadcast=broadcast ) @requires("wallet") @@ -1916,15 +1906,20 @@ async def jsonrpc_account_deposit( return tx @requires(WALLET_COMPONENT) - def jsonrpc_account_send(self, amount, addresses, account_id=None, wallet_id=None, preview=False, blocking=False): + def jsonrpc_account_send(self, amount=None, addresses=None, account_id=None, wallet_id=None, + preview=False, blocking=False, amount_everything=False): """ Send the same number of credits to multiple addresses from a specific account (or default account). Usage: - account_send ... [--account_id=] [--wallet_id=] [--preview] - [--blocking] + account_send ( | --amount= | --amount_everything) ... + [--account_id=] [--wallet_id=] [--preview] + [--blocking] Options: + --amount= : (decimal) the amount to transfer lbc + --amount_everything : (bool) send everything from funding accounts (excluding claims), + default: false. --account_id= : (str) account to fund the transaction --wallet_id= : (str) restrict operation to specific wallet --preview : (bool) do not broadcast the transaction @@ -1935,7 +1930,7 @@ def jsonrpc_account_send(self, amount, addresses, account_id=None, wallet_id=Non return self.jsonrpc_wallet_send( amount=amount, addresses=addresses, wallet_id=wallet_id, change_account_id=account_id, funding_account_ids=[account_id] if account_id else [], - preview=preview, blocking=blocking + preview=preview, blocking=blocking, amount_everything=amount_everything ) SYNC_DOC = """ @@ -2671,13 +2666,15 @@ def jsonrpc_channel_new(self): @requires(WALLET_COMPONENT) async def jsonrpc_channel_create( - self, name, bid, allow_duplicate_name=False, account_id=None, wallet_id=None, - claim_address=None, funding_account_ids=None, preview=False, blocking=False, **kwargs): + self, name, bid=None, allow_duplicate_name=False, account_id=None, wallet_id=None, + claim_address=None, funding_account_ids=None, + preview=False, blocking=False, bid_everything=False, + **kwargs): """ Create a new channel by generating a channel private key and establishing an '@' prefixed claim. Usage: - channel_create ( | --name=) ( | --bid=) + channel_create ( | --name=) ( | --bid= | --bid_everything) [--allow_duplicate_name=] [--title=] [--description=<description>] [--email=<email>] [--website_url=<website_url>] [--featured=<featured>...] @@ -2690,6 +2687,8 @@ async def jsonrpc_channel_create( Options: --name=<name> : (str) name of the channel prefixed with '@' --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --allow_duplicate_name=<allow_duplicate_name> : (bool) create new channel even if one already exists with given name. default: false. --title=<title> : (str) title of the publication @@ -2753,7 +2752,7 @@ async def jsonrpc_channel_create( account = wallet.get_account_or_default(account_id) funding_accounts = wallet.get_accounts_or_all(funding_account_ids) self.valid_channel_name_or_error(name) - amount = self.get_dewies_or_error('bid', bid, positive_value=True) + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything) claim_address = await self.get_receiving_address(claim_address, account) existing_channels = await self.ledger.get_channels(accounts=wallet.accounts, claim_name=name) @@ -2781,7 +2780,7 @@ async def jsonrpc_channel_create( wallet.save() await self.broadcast_or_release(tx, blocking) self.component_manager.loop.create_task(self.storage.save_claims([self._old_get_temp_claim_info( - tx, txo, claim_address, claim, name, dewies_to_lbc(amount) + tx, txo, claim_address, claim, name )])) self.component_manager.loop.create_task(self.analytics_manager.send_new_channel()) else: @@ -2793,12 +2792,13 @@ async def jsonrpc_channel_create( async def jsonrpc_channel_update( self, claim_id, bid=None, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, new_signing_key=False, preview=False, - blocking=False, replace=False, **kwargs): + blocking=False, replace=False, bid_everything=False, + **kwargs): """ Update an existing channel claim. Usage: - channel_update (<claim_id> | --claim_id=<claim_id>) [<bid> | --bid=<bid>] + channel_update (<claim_id> | --claim_id=<claim_id>) [<bid> | --bid=<bid> | --bid_everything] [--title=<title>] [--description=<description>] [--email=<email>] [--website_url=<website_url>] [--featured=<featured>...] [--clear_featured] @@ -2814,6 +2814,8 @@ async def jsonrpc_channel_update( Options: --claim_id=<claim_id> : (str) claim_id of the channel to update --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --title=<title> : (str) title of the publication --description=<description> : (str) description of the publication --email=<email> : (str) email of channel owner @@ -2904,10 +2906,8 @@ async def jsonrpc_channel_update( f"A claim with id '{claim_id}' was found but it is not a channel." ) - if bid is not None: - amount = self.get_dewies_or_error('bid', bid, positive_value=True) - else: - amount = old_txo.amount + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything, + default_value=old_txo.amount) if claim_address is not None: self.valid_address_or_error(claim_address) @@ -2940,7 +2940,7 @@ async def jsonrpc_channel_update( wallet.save() await self.broadcast_or_release(tx, blocking) self.component_manager.loop.create_task(self.storage.save_claims([self._old_get_temp_claim_info( - tx, new_txo, claim_address, new_txo.claim, new_txo.claim_name, dewies_to_lbc(amount) + tx, new_txo, claim_address, new_txo.claim, new_txo.claim_name )])) self.component_manager.loop.create_task(self.analytics_manager.send_new_channel()) else: @@ -3181,7 +3181,7 @@ async def jsonrpc_publish(self, name, **kwargs): Create or replace a stream claim at a given name (use 'stream create/update' for more control). Usage: - publish (<name> | --name=<name>) [--bid=<bid>] [--file_path=<file_path>] + publish (<name> | --name=<name>) [--bid=<bid> | --bid_everything] [--file_path=<file_path>] [--file_name=<file_name>] [--file_hash=<file_hash>] [--validate_file] [--optimize_file] [--fee_currency=<fee_currency>] [--fee_amount=<fee_amount>] [--fee_address=<fee_address>] [--title=<title>] [--description=<description>] [--author=<author>] @@ -3197,6 +3197,8 @@ async def jsonrpc_publish(self, name, **kwargs): Options: --name=<name> : (str) name of the content (can only consist of a-z A-Z 0-9 and -(dash)) --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --file_path=<file_path> : (str) path to file to be associated with name. --file_name=<file_name> : (str) name of file to be associated with stream. --file_hash=<file_hash> : (str) hash of file to be associated with stream. @@ -3287,9 +3289,6 @@ async def jsonrpc_publish(self, name, **kwargs): wallet=wallet, accounts=accounts, claim_name=name ) if len(claims) == 0: - if 'bid' not in kwargs: - # TODO: use error from lbry.error - raise Exception("'bid' is a required argument for new publishes.") return await self.jsonrpc_stream_create(name, **kwargs) elif len(claims) == 1: assert claims[0].claim.is_stream, f"Claim at name '{name}' is not a stream claim." @@ -3302,14 +3301,16 @@ async def jsonrpc_publish(self, name, **kwargs): @requires(WALLET_COMPONENT, FILE_MANAGER_COMPONENT, BLOB_COMPONENT, DATABASE_COMPONENT) async def jsonrpc_stream_repost( - self, name, bid, claim_id, allow_duplicate_name=False, channel_id=None, + self, name, bid=None, claim_id=None, allow_duplicate_name=False, channel_id=None, channel_name=None, channel_account_id=None, account_id=None, wallet_id=None, - claim_address=None, funding_account_ids=None, preview=False, blocking=False, **kwargs): + claim_address=None, funding_account_ids=None, preview=False, blocking=False, + bid_everything=False, **kwargs): """ Creates a claim that references an existing stream by its claim id. Usage: - stream_repost (<name> | --name=<name>) (<bid> | --bid=<bid>) (<claim_id> | --claim_id=<claim_id>) + stream_repost (<name> | --name=<name>) (<bid> | --bid=<bid> | --bid_everything) + (<claim_id> | --claim_id=<claim_id>) [--allow_duplicate_name=<allow_duplicate_name>] [--title=<title>] [--description=<description>] [--tags=<tags>...] [--channel_id=<channel_id> | --channel_name=<channel_name>] @@ -3321,6 +3322,8 @@ async def jsonrpc_stream_repost( Options: --name=<name> : (str) name of the content (can only consist of a-z A-Z 0-9 and -(dash)) --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --claim_id=<claim_id> : (str) id of the claim being reposted --allow_duplicate_name=<allow_duplicate_name> : (bool) create new claim even if one already exists with given name. default: false. @@ -3346,7 +3349,7 @@ async def jsonrpc_stream_repost( account = wallet.get_account_or_default(account_id) funding_accounts = wallet.get_accounts_or_all(funding_account_ids) channel = await self.get_channel_or_none(wallet, channel_account_id, channel_id, channel_name, for_signing=True) - amount = self.get_dewies_or_error('bid', bid, positive_value=True) + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything) claim_address = await self.get_receiving_address(claim_address, account) claims = await account.get_claims(claim_name=name) if len(claims) > 0: @@ -3356,6 +3359,8 @@ async def jsonrpc_stream_repost( f"You already have a stream claim published under the name '{name}'. " f"Use --allow-duplicate-name flag to override." ) + if claim_id is None: + raise InputValueIsNoneError('claim_id') if not VALID_FULL_CLAIM_ID.fullmatch(claim_id): # TODO: use error from lbry.error raise Exception('Invalid claim id. It is expected to be a 40 characters long hexadecimal string.') @@ -3382,15 +3387,17 @@ async def jsonrpc_stream_repost( @requires(WALLET_COMPONENT, FILE_MANAGER_COMPONENT, BLOB_COMPONENT, DATABASE_COMPONENT) async def jsonrpc_stream_create( - self, name, bid, file_path=None, allow_duplicate_name=False, + self, name, bid=None, file_path=None, allow_duplicate_name=False, channel_id=None, channel_name=None, channel_account_id=None, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, - preview=False, blocking=False, validate_file=False, optimize_file=False, **kwargs): + preview=False, blocking=False, validate_file=False, optimize_file=False, bid_everything=False, + **kwargs): """ Make a new stream claim and announce the associated file to lbrynet. Usage: - stream_create (<name> | --name=<name>) (<bid> | --bid=<bid>) [<file_path> | --file_path=<file_path>] + stream_create (<name> | --name=<name>) (<bid> | --bid=<bid> | --bid_everything) + [<file_path> | --file_path=<file_path>] [--file_name=<file_name>] [--file_hash=<file_hash>] [--validate_file] [--optimize_file] [--allow_duplicate_name=<allow_duplicate_name>] [--fee_currency=<fee_currency>] [--fee_amount=<fee_amount>] [--fee_address=<fee_address>] @@ -3407,6 +3414,8 @@ async def jsonrpc_stream_create( Options: --name=<name> : (str) name of the content (can only consist of a-z A-Z 0-9 and -(dash)) --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --file_path=<file_path> : (str) path to file to be associated with name. --file_name=<file_name> : (str) name of file to be associated with stream. --file_hash=<file_hash> : (str) hash of file to be associated with stream. @@ -3495,7 +3504,7 @@ async def jsonrpc_stream_create( account = wallet.get_account_or_default(account_id) funding_accounts = wallet.get_accounts_or_all(funding_account_ids) channel = await self.get_channel_or_none(wallet, channel_account_id, channel_id, channel_name, for_signing=True) - amount = self.get_dewies_or_error('bid', bid, positive_value=True) + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything) claim_address = await self.get_receiving_address(claim_address, account) kwargs['fee_address'] = self.get_fee_address(kwargs, claim_address) @@ -3539,7 +3548,7 @@ async def jsonrpc_stream_create( async def save_claims(): await self.storage.save_claims([self._old_get_temp_claim_info( - tx, new_txo, claim_address, claim, name, dewies_to_lbc(amount) + tx, new_txo, claim_address, claim, name )]) if file_path is not None: await self.storage.save_content_claim(file_stream.stream_hash, new_txo.id) @@ -3556,12 +3565,15 @@ async def jsonrpc_stream_update( self, claim_id, bid=None, file_path=None, channel_id=None, channel_name=None, channel_account_id=None, clear_channel=False, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, - preview=False, blocking=False, replace=False, validate_file=False, optimize_file=False, **kwargs): + preview=False, blocking=False, replace=False, validate_file=False, optimize_file=False, + bid_everything=False, + **kwargs): """ Update an existing stream claim and if a new file is provided announce it to lbrynet. Usage: - stream_update (<claim_id> | --claim_id=<claim_id>) [--bid=<bid>] [--file_path=<file_path>] + stream_update (<claim_id> | --claim_id=<claim_id>) [--bid=<bid> | --bid_everything] + [--file_path=<file_path>] [--validate_file] [--optimize_file] [--file_name=<file_name>] [--file_size=<file_size>] [--file_hash=<file_hash>] [--fee_currency=<fee_currency>] [--fee_amount=<fee_amount>] @@ -3581,6 +3593,8 @@ async def jsonrpc_stream_update( Options: --claim_id=<claim_id> : (str) id of the stream claim to update --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --file_path=<file_path> : (str) path to file to be associated with name. --validate_file : (bool) validate that the video container and encodings match common web browser support or that optimization succeeds if specified. @@ -3699,10 +3713,8 @@ async def jsonrpc_stream_update( f"A claim with id '{claim_id}' was found but it is not a stream or repost claim." ) - if bid is not None: - amount = self.get_dewies_or_error('bid', bid, positive_value=True) - else: - amount = old_txo.amount + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything, + default_value=old_txo.amount) if claim_address is not None: self.valid_address_or_error(claim_address) @@ -3776,7 +3788,7 @@ async def jsonrpc_stream_update( async def save_claims(): await self.storage.save_claims([self._old_get_temp_claim_info( - tx, new_txo, claim_address, new_txo.claim, new_txo.claim_name, dewies_to_lbc(amount) + tx, new_txo, claim_address, new_txo.claim, new_txo.claim_name )]) if stream_hash: await self.storage.save_content_claim(stream_hash, new_txo.id) @@ -3902,15 +3914,16 @@ def jsonrpc_stream_cost_estimate(self, uri): @requires(WALLET_COMPONENT) async def jsonrpc_collection_create( - self, name, bid, claims, allow_duplicate_name=False, + self, name, bid=None, claims=None, allow_duplicate_name=False, channel_id=None, channel_name=None, channel_account_id=None, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, - preview=False, blocking=False, **kwargs): + preview=False, blocking=False, bid_everything=False, + **kwargs): """ Create a new collection. Usage: - collection_create (<name> | --name=<name>) (<bid> | --bid=<bid>) + collection_create (<name> | --name=<name>) (<bid> | --bid=<bid> | --bid_everything) (--claims=<claims>...) [--allow_duplicate_name] [--title=<title>] [--description=<description>] @@ -3925,6 +3938,8 @@ async def jsonrpc_collection_create( Options: --name=<name> : (str) name of the collection --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --claims=<claims> : (list) claim ids to be included in the collection --allow_duplicate_name : (bool) create new collection even if one already exists with given name. default: false. @@ -3990,7 +4005,8 @@ async def jsonrpc_collection_create( funding_accounts = wallet.get_accounts_or_all(funding_account_ids) self.valid_collection_name_or_error(name) channel = await self.get_channel_or_none(wallet, channel_account_id, channel_id, channel_name, for_signing=True) - amount = self.get_dewies_or_error('bid', bid, positive_value=True) + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything) + claim_address = await self.get_receiving_address(claim_address, account) existing_collections = await self.ledger.get_collections(accounts=wallet.accounts, claim_name=name) @@ -4002,6 +4018,8 @@ async def jsonrpc_collection_create( f"Use --allow-duplicate-name flag to override." ) + if claims is None: + raise InputValueIsNoneError('claims') claim = Claim() claim.collection.update(claims=claims, **kwargs) tx = await Transaction.claim_create( @@ -4026,12 +4044,13 @@ async def jsonrpc_collection_update( self, claim_id, bid=None, channel_id=None, channel_name=None, channel_account_id=None, clear_channel=False, account_id=None, wallet_id=None, claim_address=None, funding_account_ids=None, - preview=False, blocking=False, replace=False, **kwargs): + preview=False, blocking=False, replace=False, bid_everything=False, + **kwargs): """ Update an existing collection claim. Usage: - collection_update (<claim_id> | --claim_id=<claim_id>) [--bid=<bid>] + collection_update (<claim_id> | --claim_id=<claim_id>) [--bid=<bid> | --bid_everything] [--claims=<claims>...] [--clear_claims] [--title=<title>] [--description=<description>] [--tags=<tags>...] [--clear_tags] @@ -4046,6 +4065,8 @@ async def jsonrpc_collection_update( Options: --claim_id=<claim_id> : (str) claim_id of the collection to update --bid=<bid> : (decimal) amount to back the claim + --bid_everything : (bool) bid everything from funding accounts (excluding claims), + default: false. --claims=<claims> : (list) claim ids --clear_claims : (bool) clear existing claim references (prior to adding new ones) --title=<title> : (str) title of the collection @@ -4131,10 +4152,8 @@ async def jsonrpc_collection_update( f"A claim with id '{claim_id}' was found but it is not a collection." ) - if bid is not None: - amount = self.get_dewies_or_error('bid', bid, positive_value=True) - else: - amount = old_txo.amount + amount = self.get_amount_or_error('bid', bid, positive_value=True, everything=bid_everything, + default_value=old_txo.amount) if claim_address is not None: self.valid_address_or_error(claim_address) @@ -4281,15 +4300,15 @@ async def jsonrpc_collection_resolve( @requires(WALLET_COMPONENT) async def jsonrpc_support_create( - self, claim_id, amount, tip=False, + self, claim_id, amount=None, tip=False, channel_id=None, channel_name=None, channel_account_id=None, account_id=None, wallet_id=None, funding_account_ids=None, - comment=None, preview=False, blocking=False): + comment=None, preview=False, blocking=False, amount_everything=False): """ Create a support or a tip for name claim. Usage: - support_create (<claim_id> | --claim_id=<claim_id>) (<amount> | --amount=<amount>) + support_create (<claim_id> | --claim_id=<claim_id>) (<amount> | --amount=<amount> | --amount_everything) [--tip] [--account_id=<account_id>] [--wallet_id=<wallet_id>] [--channel_id=<channel_id> | --channel_name=<channel_name>] [--channel_account_id=<channel_account_id>...] [--comment=<comment>] @@ -4298,6 +4317,8 @@ async def jsonrpc_support_create( Options: --claim_id=<claim_id> : (str) claim_id of the claim to support --amount=<amount> : (decimal) amount of support + --amount_everything : (bool) send everything from funding accounts (excluding claims), + default: false. --tip : (bool) send support to claim owner, default: false. --channel_id=<channel_id> : (str) claim id of the supporters identity channel --channel_name=<channel_name> : (str) name of the supporters identity channel @@ -4316,7 +4337,8 @@ async def jsonrpc_support_create( assert not wallet.is_locked, "Cannot spend funds with locked wallet, unlock first." funding_accounts = wallet.get_accounts_or_all(funding_account_ids) channel = await self.get_channel_or_none(wallet, channel_account_id, channel_id, channel_name, for_signing=True) - amount = self.get_dewies_or_error("amount", amount) + amount = self.get_amount_or_error('amount', amount, everything=amount_everything) + claim = await self.ledger.get_claim_by_claim_id(claim_id) claim_address = claim.get_address(self.ledger) if not tip: @@ -4340,7 +4362,7 @@ async def jsonrpc_support_create( 'nout': tx.position, 'address': claim_address, 'claim_id': claim_id, - 'amount': dewies_to_lbc(amount) + 'amount': dewies_to_lbc(new_txo.amount) }]}) self.component_manager.loop.create_task(self.analytics_manager.send_claim_action('new_support')) else: @@ -5446,7 +5468,7 @@ async def get_channel_or_error( raise ValueError(f"Couldn't find channel with channel_{key} '{value}'.") @staticmethod - def get_dewies_or_error(argument: str, lbc: str, positive_value=False): + def get_dewies_or_error(argument: str, lbc: str, positive_value: bool = False) -> int: try: dewies = lbc_to_dewies(lbc) if positive_value and dewies <= 0: @@ -5457,6 +5479,23 @@ def get_dewies_or_error(argument: str, lbc: str, positive_value=False): # TODO: use error from lbry.error raise ValueError(f"Invalid value for '{argument}': {e.args[0]}") + @staticmethod + def get_amount_or_error(argument: str, lbc: Optional[str], + positive_value: bool = False, everything: bool = False, + default_value: Optional[int] = None, + argument_everything: Optional[str] = None) -> Union[int, str]: + if everything: + if lbc is not None: + argument_everything = argument_everything or argument + '_everything' + raise ConflictingInputValueError(argument, argument_everything) + return AMOUNT_EVERYTHING + elif lbc is not None: + return Daemon.get_dewies_or_error(argument, lbc, positive_value=positive_value) + elif default_value is not None: + return default_value + else: + raise InputValueIsNoneError(argument) + async def resolve(self, accounts, urls, **kwargs): results = await self.ledger.resolve(accounts, urls, **kwargs) if self.conf.save_resolved_claims and results: @@ -5470,11 +5509,11 @@ async def resolve(self, accounts, urls, **kwargs): return results @staticmethod - def _old_get_temp_claim_info(tx, txo, address, claim_dict, name, bid): + def _old_get_temp_claim_info(tx, txo, address, claim_dict, name): return { "claim_id": txo.claim_id, "name": name, - "amount": bid, + "amount": dewies_to_lbc(txo.amount), "address": address, "txid": tx.id, "nout": txo.position, diff --git a/lbry/wallet/account.py b/lbry/wallet/account.py index c939d7ee91..490c91ef06 100644 --- a/lbry/wallet/account.py +++ b/lbry/wallet/account.py @@ -7,10 +7,11 @@ import random from hashlib import sha256 from string import hexdigits -from typing import Type, Dict, Tuple, Optional, Any, List +from typing import Type, Dict, Tuple, Optional, Any, List, Union from lbry.error import InvalidPasswordError from lbry.crypto.crypt import aes_encrypt, aes_decrypt +from lbry.wallet.dewies import amount_to_dewies from .bip32 import PrivateKey, PublicKey, KeyPath, from_extended_key_string from .mnemonic import Mnemonic @@ -526,9 +527,10 @@ def get_transactions(self, **constraints): def get_transaction_count(self, **constraints): return self.ledger.get_transaction_count(wallet=self.wallet, accounts=[self], **constraints) - async def fund(self, to_account, amount=None, everything=False, + async def fund(self, to_account, amount: Union[int, str], outputs=1, broadcast=False, **constraints): assert self.ledger == to_account.ledger, 'Can only transfer between accounts of the same ledger.' + dewies, everything = amount_to_dewies(amount) if everything: utxos = await self.get_utxos(**constraints) await self.ledger.reserve_outputs(utxos) @@ -538,13 +540,13 @@ async def fund(self, to_account, amount=None, everything=False, funding_accounts=[self], change_account=to_account ) - elif amount > 0: + elif dewies > 0: to_address = await to_account.change.get_or_create_usable_address() to_hash160 = to_account.ledger.address_to_hash160(to_address) tx = await Transaction.create( inputs=[], outputs=[ - Output.pay_pubkey_hash(amount//outputs, to_hash160) + Output.pay_pubkey_hash(dewies//outputs, to_hash160) for _ in range(outputs) ], funding_accounts=[self], diff --git a/lbry/wallet/dewies.py b/lbry/wallet/dewies.py index 8244712b5d..0861713da6 100644 --- a/lbry/wallet/dewies.py +++ b/lbry/wallet/dewies.py @@ -1,6 +1,24 @@ import textwrap +from typing import Tuple, Union from .util import coins_to_satoshis, satoshis_to_coins +# Symbolic amount EVERYTHING +AMOUNT_EVERYTHING = "EVERYTHING" + +def amount_is_everything(amount: Union[int, str]) -> bool: + if isinstance(amount, str): + if amount != AMOUNT_EVERYTHING: + raise ValueError(f"The value '{amount}' for argument 'amount' is invalid.") + return True + elif isinstance(amount, int): + return False + else: + raise ValueError(f"The value '{amount}' for argument 'amount' is invalid.") + +def amount_to_dewies(amount: Union[int, str]) -> Tuple[int, bool]: + everything = amount_is_everything(amount) + dewies = 0 if everything else amount + return dewies, everything def lbc_to_dewies(lbc: str) -> int: try: diff --git a/lbry/wallet/ledger.py b/lbry/wallet/ledger.py index 2ecd81bd50..c4b0765b8f 100644 --- a/lbry/wallet/ledger.py +++ b/lbry/wallet/ledger.py @@ -956,7 +956,10 @@ async def _reset_balance_cache(self, e: TransactionEvent): @staticmethod def constraint_spending_utxos(constraints): - constraints['txo_type__in'] = (0, TXO_TYPES['purchase']) + spending_types = {TXO_TYPES['other'], TXO_TYPES['purchase']} + if 'txo_type__in' in constraints: + spending_types &= constraints['txo_type__in'] + constraints['txo_type__in'] = spending_types async def get_purchases(self, resolve=False, **constraints): purchases = await self.db.get_purchases(**constraints) diff --git a/lbry/wallet/transaction.py b/lbry/wallet/transaction.py index 7b81661b96..4962a7737b 100644 --- a/lbry/wallet/transaction.py +++ b/lbry/wallet/transaction.py @@ -2,7 +2,7 @@ import logging import typing from binascii import hexlify, unhexlify -from typing import List, Iterable, Optional, Tuple +from typing import List, Iterable, Optional, Tuple, Union from lbry.error import InsufficientFundsError from lbry.crypto.hash import hash160, sha256 @@ -12,9 +12,10 @@ from lbry.schema.base import Signable from lbry.schema.purchase import Purchase from lbry.schema.support import Support +from lbry.wallet.dewies import amount_to_dewies from .script import InputScript, OutputScript -from .constants import COIN, DUST, NULL_HASH32 +from .constants import COIN, DUST, NULL_HASH32, TXO_TYPES from .bcd_data_stream import BCDataStream from .hash import TXRef, TXRefImmutable from .util import ReadOnlyList @@ -793,7 +794,8 @@ def ensure_all_have_same_ledger_and_wallet( @classmethod async def create(cls, inputs: Iterable[Input], outputs: Iterable[Output], funding_accounts: Iterable['Account'], change_account: 'Account', - sign: bool = True): + sign: bool = True, + *, everything: bool = False): """ Find optimal set of inputs when only outputs are provided; add change outputs if only inputs are provided or if inputs are greater than outputs. """ @@ -803,6 +805,20 @@ async def create(cls, inputs: Iterable[Input], outputs: Iterable[Output], ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) + if everything and not any(map(lambda txi: not txi.txo_ref.txo.is_claim, tx._inputs)): + # Spend "everything" requested, but inputs not specified. + # Make a set of inputs from all funding accounts. + all_utxos = [] + for acct in funding_accounts: + constraints = {'txo_type__in': {TXO_TYPES['other']}} + utxos = await acct.get_utxos(**constraints) + await acct.ledger.reserve_outputs(utxos) + all_utxos.extend(utxos) + if not all_utxos: + raise InsufficientFundsError() + everything_in = [Input.spend(txo) for txo in all_utxos] + tx.add_inputs(everything_in) + # value of the outputs plus associated fees cost = ( tx.get_base_fee(ledger) + @@ -811,6 +827,17 @@ async def create(cls, inputs: Iterable[Input], outputs: Iterable[Output], # value of the inputs less the cost to spend those inputs payment = tx.get_effective_input_sum(ledger) + if everything and tx._outputs and payment > cost: + # Distribute the surplus across the known set of outputs. + amount = (payment - cost) // len(tx._outputs) + for txo in tx._outputs: + txo.amount += amount + # Recompute: value of the outputs plus associated fees + cost = ( + tx.get_base_fee(ledger) + + tx.get_total_output_sum(ledger) + ) + try: for _ in range(5): @@ -889,30 +916,50 @@ async def sign(self, funding_accounts: Iterable['Account'], extra_keys: dict = N self._reset() @classmethod - def pay(cls, amount: int, address: bytes, funding_accounts: List['Account'], change_account: 'Account'): + def pay(cls, amount: Union[int, str], addresses: List[bytes], + funding_accounts: List['Account'], change_account: 'Account'): ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) - output = Output.pay_pubkey_hash(amount, ledger.address_to_hash160(address)) - return cls.create([], [output], funding_accounts, change_account) + dewies, everything = amount_to_dewies(amount) + outputs = [] + for address in addresses: + if ledger.is_pubkey_address(address): + outputs.append( + Output.pay_pubkey_hash( + dewies, ledger.address_to_hash160(address) + ) + ) + elif ledger.is_script_address(address): + outputs.append( + Output.pay_script_hash( + dewies, ledger.address_to_hash160(address) + ) + ) + else: + raise ValueError(f"Unsupported address: '{address}'") # TODO: use error from lbry.error + return cls.create([], outputs, funding_accounts, change_account, everything=everything) @classmethod def claim_create( - cls, name: str, claim: Claim, amount: int, holding_address: str, + cls, name: str, claim: Claim, amount: Union[int, str], holding_address: str, funding_accounts: List['Account'], change_account: 'Account', signing_channel: Output = None): ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) + dewies, everything = amount_to_dewies(amount) claim_output = Output.pay_claim_name_pubkey_hash( - amount, name, claim, ledger.address_to_hash160(holding_address) + dewies, name, claim, ledger.address_to_hash160(holding_address) ) if signing_channel is not None: claim_output.sign(signing_channel, b'placeholder txid:nout') - return cls.create([], [claim_output], funding_accounts, change_account, sign=False) + return cls.create([], [claim_output], funding_accounts, change_account, + sign=False, everything=everything) @classmethod def claim_update( - cls, previous_claim: Output, claim: Claim, amount: int, holding_address: str, + cls, previous_claim: Output, claim: Claim, amount: Union[int, str], holding_address: str, funding_accounts: List['Account'], change_account: 'Account', signing_channel: Output = None): ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) + dewies, everything = amount_to_dewies(amount) updated_claim = Output.pay_update_claim_pubkey_hash( - amount, previous_claim.claim_name, previous_claim.claim_id, + dewies, previous_claim.claim_name, previous_claim.claim_id, claim, ledger.address_to_hash160(holding_address) ) if signing_channel is not None: @@ -920,34 +967,38 @@ def claim_update( else: updated_claim.clear_signature() return cls.create( - [Input.spend(previous_claim)], [updated_claim], funding_accounts, change_account, sign=False + [Input.spend(previous_claim)], [updated_claim], funding_accounts, change_account, + sign=False, everything=everything ) @classmethod - def support(cls, claim_name: str, claim_id: str, amount: int, holding_address: str, + def support(cls, claim_name: str, claim_id: str, amount: Union[int, str], holding_address: str, funding_accounts: List['Account'], change_account: 'Account', signing_channel: Output = None, comment: str = None): ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) + dewies, everything = amount_to_dewies(amount) if signing_channel is not None or comment is not None: support = Support() if comment is not None: support.comment = comment support_output = Output.pay_support_data_pubkey_hash( - amount, claim_name, claim_id, support, ledger.address_to_hash160(holding_address) + dewies, claim_name, claim_id, support, ledger.address_to_hash160(holding_address) ) if signing_channel is not None: support_output.sign(signing_channel, b'placeholder txid:nout') else: support_output = Output.pay_support_pubkey_hash( - amount, claim_name, claim_id, ledger.address_to_hash160(holding_address) + dewies, claim_name, claim_id, ledger.address_to_hash160(holding_address) ) - return cls.create([], [support_output], funding_accounts, change_account, sign=False) + return cls.create([], [support_output], funding_accounts, change_account, + sign=False, everything=everything) @classmethod def purchase(cls, claim_id: str, amount: int, merchant_address: bytes, funding_accounts: List['Account'], change_account: 'Account'): ledger, _ = cls.ensure_all_have_same_ledger_and_wallet(funding_accounts, change_account) - payment = Output.pay_pubkey_hash(amount, ledger.address_to_hash160(merchant_address)) + dewies, _ = amount_to_dewies(amount) + payment = Output.pay_pubkey_hash(dewies, ledger.address_to_hash160(merchant_address)) data = Output.add_purchase_data(Purchase(claim_id)) return cls.create([], [payment, data], funding_accounts, change_account) diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index 9fa239a420..9df2209ea8 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -1125,23 +1125,31 @@ async def test_channel_bids(self): tx = await self.channel_update(claim_id) self.assertEqual(tx['outputs'][0]['amount'], '5.0') - # bid changed on update + # spend exactly amount available, no change + tx = await self.channel_update(claim_id, bid_everything=True) + await self.assertBalance(self.account, '0.0') + self.assertEqual(len(tx['outputs']), 1) # no change + self.assertEqual(tx['outputs'][0]['amount'], '9.991457') + self.assertItemCount(await self.daemon.jsonrpc_channel_list(), 1) + + # bid reduced on update tx = await self.channel_update(claim_id, bid='4.0') self.assertEqual(tx['outputs'][0]['amount'], '4.0') - await self.assertBalance(self.account, '5.991503') + await self.assertBalance(self.account, '5.991299') # not enough funds with self.assertRaisesRegex( InsufficientFundsError, "Not enough funds to cover this transaction."): await self.channel_create('@foo2', '9.0') self.assertItemCount(await self.daemon.jsonrpc_channel_list(), 1) - await self.assertBalance(self.account, '5.991503') + await self.assertBalance(self.account, '5.991299') # spend exactly amount available, no change - tx = await self.channel_create('@foo3', '5.981322') + tx = await self.channel_create('@foo3', bid=None, bid_everything=True) await self.assertBalance(self.account, '0.0') self.assertEqual(len(tx['outputs']), 1) # no change + self.assertEqual(tx['outputs'][0]['amount'], '5.98122') self.assertItemCount(await self.daemon.jsonrpc_channel_list(), 2) async def test_setting_channel_fields(self): @@ -1337,23 +1345,31 @@ async def test_stream_bids(self): tx = await self.stream_update(claim_id) self.assertEqual(tx['outputs'][0]['amount'], '2.0') - # bid changed on update + # spend exactly amount available, no change + tx = await self.stream_update(claim_id, bid_everything=True) + await self.assertBalance(self.account, '0.0') + self.assertEqual(len(tx['outputs']), 1) # no change + self.assertEqual(tx['outputs'][0]['amount'], '9.993347') + self.assertItemCount(await self.daemon.jsonrpc_claim_list(), 1) + + # bid reduced on update tx = await self.stream_update(claim_id, bid='3.0') self.assertEqual(tx['outputs'][0]['amount'], '3.0') - await self.assertBalance(self.account, '6.993319') + await self.assertBalance(self.account, '6.993134') # not enough funds with self.assertRaisesRegex( InsufficientFundsError, "Not enough funds to cover this transaction."): await self.stream_create('foo2', '9.0') self.assertItemCount(await self.daemon.jsonrpc_claim_list(), 1) - await self.assertBalance(self.account, '6.993319') + await self.assertBalance(self.account, '6.993134') # spend exactly amount available, no change - tx = await self.stream_create('foo3', '6.98523') + tx = await self.stream_create('foo3', bid=None, bid_everything=True) await self.assertBalance(self.account, '0.0') self.assertEqual(len(tx['outputs']), 1) # no change + self.assertEqual(tx['outputs'][0]['amount'], '6.985055') self.assertItemCount(await self.daemon.jsonrpc_claim_list(), 2) async def test_stream_update_and_abandon_across_accounts(self): @@ -2113,7 +2129,7 @@ async def test_abandoning_stream_at_loss(self): async def test_publish(self): # errors on missing arguments to create a stream - with self.assertRaisesRegex(Exception, "'bid' is a required argument for new publishes."): + with self.assertRaisesRegex(Exception, "None or null is not valid value for argument 'bid'."): await self.daemon.jsonrpc_publish('foo') # successfully create stream @@ -2271,9 +2287,32 @@ async def test_regular_supports_and_tip_supports(self): self.assertEqual(txs2[0]['value'], '0.0') self.assertEqual(txs2[0]['fee'], '-0.0001415') + # send all remaining funds to support the claim using account2 + support = await self.out( + self.daemon.jsonrpc_support_create( + claim_id, amount=None, tip=False, account_id=account2.id, wallet_id='wallet2', + funding_account_ids=[account2.id], amount_everything=True, blocking=True) + ) + await self.confirm_tx(support['txid']) + + # account2 balance went down to 0.0 + await self.assertBalance(self.account, '3.979769') + await self.assertBalance(account2, '0.0') + + # verify that the outgoing support is marked correctly as is_tip=False in account2 + txs2 = await self.transaction_list(wallet_id='wallet2') + self.assertEqual(len(txs2[0]['support_info']), 1) + self.assertEqual(txs2[0]['support_info'][0]['balance_delta'], '-1.9996035') + self.assertEqual(txs2[0]['support_info'][0]['claim_id'], claim_id) + self.assertFalse(txs2[0]['support_info'][0]['is_tip']) + self.assertFalse(txs2[0]['support_info'][0]['is_spent']) + self.assertEqual(txs2[0]['value'], '0.0') + self.assertEqual(txs2[0]['fee'], '-0.0001135') + # abandoning the tip increases balance and shows tip as spent await self.support_abandon(claim_id) await self.assertBalance(self.account, '4.979662') + await self.assertBalance(account2, '0.0') txs = await self.transaction_list(account_id=self.account.id) self.assertEqual(len(txs[0]['abandon_info']), 1) self.assertEqual(len(txs[1]['support_info']), 1) diff --git a/tests/unit/wallet/test_transaction.py b/tests/unit/wallet/test_transaction.py index b12acc645e..434fac7b22 100644 --- a/tests/unit/wallet/test_transaction.py +++ b/tests/unit/wallet/test_transaction.py @@ -5,6 +5,7 @@ from binascii import hexlify, unhexlify from itertools import cycle +import lbry.error from lbry.testcase import AsyncioTestCase from lbry.wallet.constants import CENT, COIN, NULL_HASH32 from lbry.wallet import Wallet, Account, Ledger, Database, Headers, Transaction, Output, Input @@ -373,8 +374,8 @@ def txo(self, amount, address=None): def txi(self, txo): return Input.spend(txo) - def tx(self, inputs, outputs): - return Transaction.create(inputs, outputs, [self.account], self.account) + def tx(self, inputs, outputs, **kwargs): + return Transaction.create(inputs, outputs, [self.account], self.account, **kwargs) async def create_utxos(self, amounts): utxos = [self.txo(amount) for amount in amounts] @@ -532,3 +533,102 @@ async def test_basic_use_cases_sqlite(self): self.assertListEqual([0.01, 1], self.inputs(tx)) # change is now needed to consume extra input self.assertListEqual([0.97], self.outputs(tx)) + + async def _test_send_everything_use_cases(self): + self.ledger.fee_per_byte = int(.01*CENT) + + # available UTXOs for filling missing inputs + avail = [ + 1, 1, 3, 5, 10 + ] + utxos = await self.create_utxos(avail) + #total = sum(avail) + + # everything: outputs populated via change_account + tx = await self.tx( + [], # inputs + [], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail) + self.assertListEqual(self.outputs(tx), [19.92]) + + await self.ledger.release_outputs(utxos) + + # everything: one output with initial amount (0.0) bumped + tx = await self.tx( + [], # inputs + [self.txo(0.0)], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail) + self.assertListEqual(self.outputs(tx), [19.92]) + + await self.ledger.release_outputs(utxos) + + # everything: two outputs with initial amounts bumped + tx = await self.tx( + [], # inputs + [self.txo(1.0), self.txo(4.0)], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail) + self.assertListEqual(self.outputs(tx), [8.46, 11.46]) + + await self.ledger.release_outputs(utxos) + + # everything: some inputs provided + if self.ledger.coin_selection_strategy == 'sqlite': + # NOTE: With this strategy, get_spendable_utxos() grabs extra + # utxos with the plan that any excess change can be added to + # the outputs. Hence the given initial output must be less + # than the absolute maximum (19.92). + await self.ledger.reserve_outputs(utxos[2:]); + tx = await self.tx( + [self.txi(self.txo(a)) for a in avail[2:]], # inputs + [self.txo(19.0)], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail[2:] + avail[0:2]) + # NOTE: The maximum amount (19.92) was transferred. But it + # was broken into two outputs (19.0 and 0.92). + self.assertListEqual(self.outputs(tx), [19.0, 0.92]) + else: + await self.ledger.reserve_outputs(utxos[2:]); + tx = await self.tx( + [self.txi(self.txo(a)) for a in avail[2:]], # inputs + [self.txo(19.92)], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail[2:] + avail[0:2]) + self.assertListEqual(self.outputs(tx), [19.92]) + + await self.ledger.release_outputs(utxos) + + # everything: maximum output already present + tx = await self.tx( + [], # inputs + [self.txo(19.92)], # outputs + everything=True + ) + self.assertListEqual(self.inputs(tx), avail) + self.assertListEqual(self.outputs(tx), [19.92]) + + await self.ledger.release_outputs(utxos) + + # everything: insufficient funds + with self.assertRaises(lbry.error.InsufficientFundsError): + tx = await self.tx( + [], # inputs + [self.txo(19.93)], # outputs + everything=True + ) + + await self.ledger.release_outputs(utxos) + + async def test_send_everything_use_cases(self): + await self._test_send_everything_use_cases() + + async def test_send_everything_use_cases_sqlite(self): + self.ledger.coin_selection_strategy = 'sqlite' + await self._test_send_everything_use_cases()