|
|
|
@@ -46,7 +46,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "wallet to check for claim purchase receipts",
|
|
|
|
|
"description": "wallet to check for claim purchase reciepts",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
@@ -54,10 +54,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Get a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1614834139,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmperer8uup\",\n \"download_path\": \"/tmp/tmperer8uup/tmpuyu0q8tj\",\n \"file_name\": \"tmpuyu0q8tj\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"cd4485fae55b2147206733882971405a\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01aa0d8420dccd9c67992f5498be0af1efc4a012b337f1ca30a5844b95623ce944a8279839e5111bc041faf55de4cd6452e2ff25ea6ad84a1e3c478596408f4342829ffaa690073dfbdf024eb5b4c12c2509ad72980a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ed940f9a26c786d7a10f006354ac7d0f29772269bd752ce9b6b3681647581d5bd74c89a48e48ca5277eae641b1088239\",\n \"stream_name\": \"tmpuyu0q8tj\",\n \"streaming_url\": \"http://localhost:5280/stream/3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"suggested_file_name\": \"tmpuyu0q8tj\",\n \"timestamp\": 1614834157,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1602862436,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpzzr985r8\",\n \"download_path\": \"/tmp/tmpzzr985r8/tmpk0n0x2sb\",\n \"file_name\": \"tmpk0n0x2sb\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"7acc8b9eac8e533c57b933928ab6fad0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01f2d6950adda2502b543f042e4e8496b63a2bc95d1391e6159e2874bf75624f77339a61abf38b4da3237a5a52ad92aece2cefae8742c427064051fadb0dcfcc8f957b190341110ce64b8fd3f5cc874e16db11cbdc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6b8f6829a8820cd430d23b3de7dd67ad77a11d912b04ac5577014d51af877a0c3a094e8d3d9bc2ae6b2c13c2ea44e477\",\n \"stream_name\": \"tmpk0n0x2sb\",\n \"streaming_url\": \"http://localhost:5280/stream/d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"suggested_file_name\": \"tmpk0n0x2sb\",\n \"timestamp\": 1602862457,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -250,10 +250,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Publish a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpp181cxyh\", \"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/tmpp181cxyh",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpp181cxyh\", \"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\": \"0100000001d3c61021883790cb859b83f45a3f0b5be6c1510b65269804c10df83ff374d379010000006a47304402207538dfdc7d1553bd5c8d0b666e9fdeb623bc6724580261f0567e5cca9655584702200e8fd6bb472107eff06d91696d31e6c888c5a75bddf598e64a78d64d8aeb94d7012103b9fcada9f923391eadc91ce20b3f728e9af6c67cbbb8dd070267b7d3dc9bae8cffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707031383163787968180b22186170706c69636174696f6e2f6f637465742d73747265616d3230074e388a3cc85d990c4efd2981091aea193bcc4c79d7fce1bb6ebe21e974367a8532b437703157cb4ebcf0478fa5f4a46d7576a91492ba98b5cc1dd6657a59adb9f11219790bd6da2888ac54826311000000001976a9148bf7ed85b10e08bd836503d41c7e599c69beee2288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqQ9oWwESPiXhdCqnX74GKJC52Au3mLppJ\",\n \"amount\": \"3.941448\",\n \"confirmations\": 3,\n \"height\": 217,\n \"nout\": 1,\n \"timestamp\": 1614834157,\n \"txid\": \"79d374f33ff80dc1049826650b51c1e65b0b3f5af4839b85cb9037882110c6d3\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mttnV1prP9cR6NqH9cknfSCNcayLTZEgeo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"555fa6a2699a5eebdd78bda6aa419e4274b4db97\",\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#555fa6a2699a5eebdd78bda6aa419e4274b4db97\",\n \"timestamp\": null,\n \"txid\": \"90115557747edc0bae55e73c8b612f5213637dc3099bbb5bae169989d954cce0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpp181cxyh\",\n \"sd_hash\": \"074e388a3cc85d990c4efd2981091aea193bcc4c79d7fce1bb6ebe21e974367a8532b437703157cb4ebcf0478fa5f4a4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtH3E3bCZS3BYt1zrYyxgE4JMPeYiu32xc\",\n \"amount\": \"2.917341\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"90115557747edc0bae55e73c8b612f5213637dc3099bbb5bae169989d954cce0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"3.941448\",\n \"total_output\": \"3.917341\",\n \"txid\": \"90115557747edc0bae55e73c8b612f5213637dc3099bbb5bae169989d954cce0\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpzg66qsrc\", \"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/tmpzg66qsrc",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpzg66qsrc\", \"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\": \"0100000001b5c2fa21042c9c7902e2210e72f6e732356ce3fa8284a6d62b2230ada4c68778010000006b483045022100e650ed64dda5492752201f302c36d49ba40a2650eaaf1b241a1afb4cf2712b3d022070e3e9d610155cf3a0e61f7d84d92989927b7f159b52ea67cb18899f642b0049012102980b4392de9b4cd0090d3e81f5f85ef2f08c6dc2280eeb2bcfb58c6ddbf75908ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707a67363671737263180b22186170706c69636174696f6e2f6f637465742d73747265616d32300a4cf1efdc3d85ef48863f9fafd675bb9cc4e83c7f4bbec17f99e4dd6004a21c3317d08107e3e00e8d205102e2490e646d7576a914f16d76520d9764aa8658b40a8d7fd0a6a73ef41a88ace0b46217000000001976a9143c9f3b8c3c8f0a63a43f32ef3c5615875db424b288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqeTenbgAseTRfcPJpmSXpUjRMNphrhjGu\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1602862457,\n \"txid\": \"7887c6a4ad30222bd6a68482fae36c3532e7f6720e21e202799c2c0421fac2b5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3XWGrLR13rLfqCpeJDGFkb3DmyDr8a2Ry\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dc9071a98355d66734dd63cac49ddf4cc1d7f871\",\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#dc9071a98355d66734dd63cac49ddf4cc1d7f871\",\n \"timestamp\": null,\n \"txid\": \"7e9f8a03143f9697dbf796d74e163f8457c7aa8dfea7e9fb3ee078ad3d8defaa\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpzg66qsrc\",\n \"sd_hash\": \"0a4cf1efdc3d85ef48863f9fafd675bb9cc4e83c7f4bbec17f99e4dd6004a21c3317d08107e3e00e8d205102e2490e64\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mm3VbEqmHhZ1vu69EMJC467JiPQQgbApbW\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7e9f8a03143f9697dbf796d74e163f8457c7aa8dfea7e9fb3ee078ad3d8defaa\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"7e9f8a03143f9697dbf796d74e163f8457c7aa8dfea7e9fb3ee078ad3d8defaa\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -270,7 +270,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "wallet to check for claim purchase receipts",
|
|
|
|
|
"description": "wallet to check for claim purchase reciepts",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@@ -314,10 +314,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Resolve a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"], \"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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"], \"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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\": {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b/astream#8\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1614834157,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"short_url\": \"lbry://astream#8\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1614834156,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"short_url\": \"lbry://@channel#b\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"], \"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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"], \"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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\": {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5/astream#f\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1602862457,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1602862456,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"short_url\": \"lbry://@channel#5\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -339,7 +339,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet status",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"network_connection\",\n \"message\": \"Your internet connection appears to have been interrupted\"\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\": \"2aTFQbeCGfsYLp6UZ8iMaPpg2LXZ4Kz9CtSj5NvXzTAUQiAKzvYTbCej1UJ3bo3Up4\",\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 \"blob_manager\": true,\n \"database\": 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\": \"ebf3b243548e51e906821b439c20ca0389ce76e76d2778ece293f0bd5262ae52\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1: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.99.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.90.1\",\n \"trending_algorithm\": \"zscore\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"127.0.0.1\",\n \"latency\": 0.011066530016250908,\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 \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"network_connection\",\n \"message\": \"Your internet connection appears to have been interrupted\"\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\": \"V15UZPpbGpTXg7L4Z4e2PSwvkHpu9GfrP5kaev1rpg3CPeUt7HsbA6FwfVtHh8EAe\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"file_manager\": true,\n \"libtorrent_component\": true,\n \"wallet\": true,\n \"wallet_server_payments\": true\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"6b8c8af9b97544b81320fc87bce1b342d4eae95e7bedfa0b68c2051cdbd51f28\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1: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.99.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.83.0\",\n \"trending_algorithm\": \"zscore\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.010411103023216128,\n \"port\": 50002\n }\n ]\n },\n \"wallet_server_payments\": {\n \"max_fee\": \"0.0\",\n \"running\": false\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -361,7 +361,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet version",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.90.1\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.9\",\n \"version\": \"0.90.1\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.83.0\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.5\",\n \"version\": \"0.83.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -415,10 +415,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Add an account from seed",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"summer correct gift diesel onion split asset expect frozen drip process solid\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\", \"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\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614834128,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPedmGmKh6rP9DD9MJtJU1zBJMFmwxc4AJhGTMEYAademgSSuvkotAvfTd1t83sh99hjxr64ngQpYKNjVmrMKUDVFb8CcCFPb\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y6o4eyMhFnoKnAsF3devZUu8YHzG2KxhXki7rvzAp9PYcZWVjEXTCBwzqHydbVt15j9e2knARs5wJ3yMaA5LXUoZNLYXYR8\",\n \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"canyon divert wave luxury danger furnace age music fetch circle ship penalty\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\", \"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\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1602862425,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdKjSM3yfb29VuJBXyr9SJYQ7iAwXEsPA4NnGgDgFJu9KF3xDQJqEKPJLZbSd7EUAaYVqM9HMz92tG2BcDX2A1u59NVmBCM3\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WnmEEheFzRocUKhU9BLLsqztzgypf9BYts33JcVqVPmBRBZkMfZCqjpgbRbmKwSisEW3w5Ex256TmeqXZfiMUEbRFn5TZPG\",\n \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -456,9 +456,9 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Get balance for specific account by id",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}).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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -493,7 +493,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account create \"generated account\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614834128,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPedmGmKh6rP9DD9MJtJU1zBJMFmwxc4AJhGTMEYAademgSSuvkotAvfTd1t83sh99hjxr64ngQpYKNjVmrMKUDVFb8CcCFPb\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y6o4eyMhFnoKnAsF3devZUu8YHzG2KxhXki7rvzAp9PYcZWVjEXTCBwzqHydbVt15j9e2knARs5wJ3yMaA5LXUoZNLYXYR8\",\n \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\"\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\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1602862425,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdKjSM3yfb29VuJBXyr9SJYQ7iAwXEsPA4NnGgDgFJu9KF3xDQJqEKPJLZbSd7EUAaYVqM9HMz92tG2BcDX2A1u59NVmBCM3\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WnmEEheFzRocUKhU9BLLsqztzgypf9BYts33JcVqVPmBRBZkMfZCqjpgbRbmKwSisEW3w5Ex256TmeqXZfiMUEbRFn5TZPG\",\n \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -548,24 +548,24 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer 2 LBC from default account to specific account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000014a33693119a1c72123a870ac6d144daffcfd74f9f4bd09326711851c96dc618b000000006a4730440220438ed3d4599b4e7e7a92eb84cad58cd42f76c894f90e194dc84a02224e39e1f502202ae99eab4bae234a40a138c9126dd4c35a0704e4768e723a51b64681c921e9c101210364f31b2915935fabfed02054c219d527afdad8ac5599421993ef4a00dc0867b9ffffffff0200c2eb0b000000001976a91455cba7026d1281c324842bfa14eae6c4e74ea76288ac90d7ae2f000000001976a914edde0e46ac202e67ffd89b724429a71629888b3a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhMnQn3qu9GMZ6B7ZezhNP7mPEC1JYzQ2L\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 0,\n \"timestamp\": 1614834155,\n \"txid\": \"8b61dc961c8511673209bdf4f974fdfcaf4d146dac70a82321c7a1193169334a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"moLbhNi41ra7J3b5e7dmBSoxqNgjvp9XJb\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3CgTDtBMq1jigfQ3Y8NpYesjZyA4Qp3wm\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001593d803c01161d9d524478df75cef6c11da8d87614e5223d31d1f3ab4a754308000000006b483045022100d755e3d2cc4065107b641336906586a7b159842d903782e6b160c90c39aef6dc02204ad601b3c40820c9695890025fb16a9545b8fd333f0370631773d62b2148b6cc012102da03d047c77c88fc85700096abca5ab15ce21e95ad4ff1e71d908fa3cc190995ffffffff0200c2eb0b000000001976a914bbd66d8f43ae842b769d041309a95819cbde14e388ac90d7ae2f000000001976a914bb6805e32be149c2d7510ba04c327fd34288016c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mx9RtSnJXpvcsMBshzEfvEmpsqtQJh9HTN\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 0,\n \"timestamp\": 1602862455,\n \"txid\": \"0843754aabf3d1313d22e51476d8a81dc1f6ce75df7844529d1d16013c803d59\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxe9XeEC5YThvqweuLJywuccfe7FGTmD4c\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxbsGa4jf99tDFJtiFtxyVJ7N3xPUsD9qo\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Spread LBC between multiple addresses",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"from_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\" --from_account=\"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"from_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a228e308765165e836e301d697866b58a55f3c0b7a4f0a9d772e0b2809d397fa000000006b483045022100c3bb7374d37c62079bffa50679b79fa49322331be5464f48657ddcc73fd719c2022074e5723a0d3fc5326f87a9324d903d6609eb75bd62b7281f1cc33cde0fff180f012102ad2ab35a6ff6c7152cdf996b06d669dfa58c0f75cf59d2c2ca1764e1aedbf816ffffffff03c0687804000000001976a914909dd2aed4405ed6dc377a9c1afebd98cd46f82088acc0687804000000001976a914909dd2aed4405ed6dc377a9c1afebd98cd46f82088ac6cb9fa02000000001976a9141d9f53f394b630e9faadf0b21d6c5b7fc1481f5f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"moLbhNi41ra7J3b5e7dmBSoxqNgjvp9XJb\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1614834156,\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mthcfQmCReFgixYFzt5f8bQc4rbrJ1uKUP\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mthcfQmCReFgixYFzt5f8bQc4rbrJ1uKUP\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"miDakv6911nvbxLnKykA5HcqRyY1SGHZvg\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"from_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\" --from_account=\"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"from_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000158533d2d042f919166ee2e1579846af0b49c4caf9db4cd82a7ca37362f374769000000006b483045022100c76e4f1ee55950017492b9bad6178e5f231e2b78b76b87cdb3b896e645525f3a02206c29691cfd6aa7dea5c8cefe77a019c056039b4ae69c794655116a6c583c6f070121021fa6ee5903084a3c68cf3219b09b83ffd1b25eae5d5ad66a708c1259e774c4cfffffffff03c0687804000000001976a9146a86d0525868bfe9f0287eb0792ac22dd73be8a488acc0687804000000001976a9146a86d0525868bfe9f0287eb0792ac22dd73be8a488ac6cb9fa02000000001976a914de0d514e0b0ec3cf293ec252dbbbad5842ac88cf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxe9XeEC5YThvqweuLJywuccfe7FGTmD4c\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1602862456,\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n1m4FxpboAMcDtbVjnFoiqYTnoTmbUPm9H\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer all LBC to a specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003070d51be69a3fd52afe49683ad6dc4d811fb92460b61c9e0e5b68c3ad8872682000000006b483045022100c1052202abee3a4f0b5a184bb47ab3f6a91a0e942c16765d215eac495f0770e702206d19209d0036958000bde6101fa7a7c87c589faab201db15aa3c31f2787fdd990121025db03aaf1e0489320e56bcb77c89f3bf84d5a859c7260fcca1698680fefd95afffffffff070d51be69a3fd52afe49683ad6dc4d811fb92460b61c9e0e5b68c3ad8872682010000006b483045022100b09a819af23d1525b4823050cea32260bebd9eb3b0cc4c0945814d4d79e0f654022041c381e571ba25a696434aa5f0df48108bdf6434ac796a9f446dd6e5177e4f360121025db03aaf1e0489320e56bcb77c89f3bf84d5a859c7260fcca1698680fefd95afffffffff070d51be69a3fd52afe49683ad6dc4d811fb92460b61c9e0e5b68c3ad8872682020000006b483045022100aa8f6ea8524a541b97fc6ee3dcdecd08c2a64d0219afa74e6ce455fc25219f5c022044f8178a28921c5722191ed3f20937ae6e426dedeaaa59079380b2dfa6c65bed0121028d89f7d9d868a973242786c2654268a20bb3bdab098b48877466db59826ca7a3ffffffff015027eb0b000000001976a914a3daa8bbce4bc9102c73b83c0f8328222cce6e8e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mthcfQmCReFgixYFzt5f8bQc4rbrJ1uKUP\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1614834156,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mthcfQmCReFgixYFzt5f8bQc4rbrJ1uKUP\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1614834156,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"miDakv6911nvbxLnKykA5HcqRyY1SGHZvg\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1614834156,\n \"txid\": \"822687d83a8cb6e5e0c9610b4692fb11d8c46dad8396e4af52fda369be510d07\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvTLP2MGeAmwS7y9ir6Sowoa6hhBymUkpv\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"f1b5ee954812d3e88d5d08f535280814ea7cb4913e9801e60f2098c8b0a7c4ec\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"f1b5ee954812d3e88d5d08f535280814ea7cb4913e9801e60f2098c8b0a7c4ec\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000340b3f85547d4e70e3ad3196f98be9b468a9e43db0336338e504d3c34d8cbb632000000006b4830450221009286f4bb5c7772a63a8f112c778030299e5bd881eb438f7096c6fcfea2f298b20220610535e1cf672f1bae3769e68831ffd2548503d1b0c754408a4313562609266201210252ccb7fdb5a3df0ace8fec6ccfeafd779a3e7c8140e90837265284525e9220f6ffffffff40b3f85547d4e70e3ad3196f98be9b468a9e43db0336338e504d3c34d8cbb632010000006b483045022100c7f1430fda72968855d0023e05c664867290510b716dfaf248d9fee78af4e5b2022007ac25af1b07efb5fef962b8937d9164fea7739c50712538d26e44f67e3d317901210252ccb7fdb5a3df0ace8fec6ccfeafd779a3e7c8140e90837265284525e9220f6ffffffff40b3f85547d4e70e3ad3196f98be9b468a9e43db0336338e504d3c34d8cbb632020000006a47304402202e070692322d651350ad87d2a5a8af921a8b2b4c559247d07b9d74e64ce6bc41022034c4496122a92b2a22b7164d168e1b2746e80fe874dcb0f9dab5a16b1db0bb320121037074c41a3706b2b2694945c608d0b382ed414c60d5c3d2c688fe8f529a11952cffffffff015027eb0b000000001976a9143b6f1c1f03cf44fe2fb73c719d9360ce53426ce088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1602862456,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1602862456,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n1m4FxpboAMcDtbVjnFoiqYTnoTmbUPm9H\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1602862456,\n \"txid\": \"32b6cbd8343c4d508e333603db439e8a469bbe986f19d33a0ee7d44755f8b340\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkwDGRHqKvQXW9zwfumqrJUhiBDWbzPr1M\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"4b414b1e4adc47f05e343c46f0ad5193935628beb51056f6d26589bcba9b4916\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"4b414b1e4adc47f05e343c46f0ad5193935628beb51056f6d26589bcba9b4916\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -623,7 +623,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\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XUodLJ3wP7453rkhnEU9euqeBULDrbsmbwrwoPFpm3CeyXqQhsccPxugpfdxZBjwAvjgBqqB99RhQWtKUJvxyMbos77qyTG\",\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\": \"myTjaQ7rr9opqoawJAkBwiAjVhTbgq8tXM\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #myTjaQ7rr9opqoawJAkBwiAjVhTbgq8tXM\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y8SWimAJbLYDuxaPvKDYMbSZQxqfHBRj11AbPTjykWJ87TReUKEeBqMMDYfwa7cPGKtWV22VXw6Y8gf13tXNt94cuyJ9Jzp\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -668,10 +668,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Remove an account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}).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\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614834128,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPedmGmKh6rP9DD9MJtJU1zBJMFmwxc4AJhGTMEYAademgSSuvkotAvfTd1t83sh99hjxr64ngQpYKNjVmrMKUDVFb8CcCFPb\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y6o4eyMhFnoKnAsF3devZUu8YHzG2KxhXki7rvzAp9PYcZWVjEXTCBwzqHydbVt15j9e2knARs5wJ3yMaA5LXUoZNLYXYR8\",\n \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}).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\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1602862425,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdKjSM3yfb29VuJBXyr9SJYQ7iAwXEsPA4NnGgDgFJu9KF3xDQJqEKPJLZbSd7EUAaYVqM9HMz92tG2BcDX2A1u59NVmBCM3\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WnmEEheFzRocUKhU9BLLsqztzgypf9BYts33JcVqVPmBRBZkMfZCqjpgbRbmKwSisEW3w5Ex256TmeqXZfiMUEbRFn5TZPG\",\n \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -764,10 +764,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Modify maximum number of times a change address can be reused",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\", \"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\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614834128,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPedmGmKh6rP9DD9MJtJU1zBJMFmwxc4AJhGTMEYAademgSSuvkotAvfTd1t83sh99hjxr64ngQpYKNjVmrMKUDVFb8CcCFPb\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y6o4eyMhFnoKnAsF3devZUu8YHzG2KxhXki7rvzAp9PYcZWVjEXTCBwzqHydbVt15j9e2knARs5wJ3yMaA5LXUoZNLYXYR8\",\n \"seed\": \"summer correct gift diesel onion split asset expect frozen drip process solid\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\", \"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\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1602862425,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdKjSM3yfb29VuJBXyr9SJYQ7iAwXEsPA4NnGgDgFJu9KF3xDQJqEKPJLZbSd7EUAaYVqM9HMz92tG2BcDX2A1u59NVmBCM3\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WnmEEheFzRocUKhU9BLLsqztzgypf9BYts33JcVqVPmBRBZkMfZCqjpgbRbmKwSisEW3w5Ex256TmeqXZfiMUEbRFn5TZPG\",\n \"seed\": \"canyon divert wave luxury danger furnace age music fetch circle ship penalty\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -803,9 +803,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Check if address is mine",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mvW5fF65d8WiGavNWjJcuQ6uRoa4AsSmLZ\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mvW5fF65d8WiGavNWjJcuQ6uRoa4AsSmLZ",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mvW5fF65d8WiGavNWjJcuQ6uRoa4AsSmLZ\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -852,14 +852,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\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mg3aDqAVfSW3uryy9dQfEnfariyceeQmNW\",\n \"pubkey\": \"tpubDA9GDAntyJu4gc7ypzz4Rvj1b28KSU3pKRocV4pg7unYUwTRpc3KPSAwBNguNrEB59MQwyUp371LoTh4yHu8y3oVfeoq3RjL35RSLSMJ9iu\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mhMnQn3qu9GMZ6B7ZezhNP7mPEC1JYzQ2L\",\n \"pubkey\": \"tpubDA9GDAntyJu4FCqZ5AJHRZfTTdftsTALhQDbW2pCReUYEPzivonCwavzDnQnSdeqtRUo6YntTPWKME8TBL3Y6uRLBVXuzkiN3cDMnff4i7P\",\n \"used_times\": 1\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"miyXSyh46NjaLEKtpuFHESgrcaPWfuxL4R\",\n \"pubkey\": \"tpubDA9GDAntyJu4KXRZmhVv4hRyhKNpTVcc46QjEFwT7i3H1ZHsCFNatToFcBQtWnazktb52UDzAqmq8L15XZotbaDy3TgEqWtuhfGkn4pBQCE\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mjCkJPVYyTBGvSvkfXZFNqc1L7nXc15Day\",\n \"pubkey\": \"tpubDA9GDAntyJu4wAUyxkukn8ugM9NLrSSxDLG8CsC7jxeP8kV1t579WUTNCK4uieBMPVWG3gamyRgi3rXBekPZsGtsD8ft9rTEWScCKa7Buxf\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mjgiK4aNDfaKPWXqn2WHGU22AMYMduuAJD\",\n \"pubkey\": \"tpubDA9GDAntyJu58cYV3jR6GgP3uuaVZ4o7sUsHybCs9jHdZ7gUYLAMQ5bWDBhcW7SWYgT77qzpr2hsDWEwUYTwEtG39aACVgRTS8xkk819oJY\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mkCTWx3KRynCmrb6MfUnS8T9dJn2nRuky8\",\n \"pubkey\": \"tpubDA9GDAntyJu4Lc3dLiAQT2xXQ8EP2W6UiK2vG1XWShPYXaEUKibWR4oUR5xA5SfUk6cuPVSuwKbcEDdS8K6XPLyh1QKuNKYq6TkTSp1EPh8\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mnqoxBn14bSdzLMLH1F94GouriTenxXEnC\",\n \"pubkey\": \"tpubDA9GDAntyJu4HSrPCWehpoqdoaj2VSC5GfQ4EAiFZh8oNQeqze6TaTgFSgUhRfeBsXQCRu8FrJcJsDKurkTxovNZJmryEwXyRSAbSAZtSTu\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mpit786FdfWRJjUAExgFMDLn44M7tYa6Hs\",\n \"pubkey\": \"tpubDA9GDAntyJu4c7nfbNCFdFYJZKbJbbGTkTSmwcDhkvdXsbTrbzpyzBCHVMpcBZxc9FVYmTnk7AarTsnELWDJWaV6EqTju4dtguPrQKoMJN5\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mpivxyQqxeBJ6etmv3eX2vgW5jsrTE7q8U\",\n \"pubkey\": \"tpubDA9GDAntyJu51Xa89UwY7Lrh513tjSuAc7bnJNT6k51LEU2w2ukDDsKMi36DMyFiyde7Fuy92KzdxFhkCCgjuJ9vdfBFRKYqMhk5htYMmky\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mrzPcqorgqSkPCoXhrnjrwccjokfz7niQk\",\n \"pubkey\": \"tpubDA9GDAntyJu4nrEJRwzgCf48JfpNpFrW2f3SEYYY4ipU5ySFgyHCJb7JXN5XSk7fwvb8cMGWc921gw6gZADM3ENNPZ8k3s5ojtuWdCUT6T4\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"msVjfN91aPpAwYctxGLtQ7xVXfLnyr7mwN\",\n \"pubkey\": \"tpubDA9GDAntyJu4u5ERSSJptznmXvBnGykSQFgzNDN9gJPHj6BMoN2xXvfT9Y2SZPj8A7jx91ZqasxCK3wYxbEU3HyprK6U4rD5cJa7eR897Cq\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mtEiDQqYaxPYPj5HBwxUrEoFMYK8aAQBgy\",\n \"pubkey\": \"tpubDA9GDAntyJu4PNvrcE92znSGd6FMpVqhnvvTDRL8qP5i731gioPusSF2wr51DjiWozkC8dUaVKrmFJwYc6scg5oV22v95twvDts6Pq5epvU\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"pubkey\": \"tpubDA9GDAntyJu4XCwH8RgEhNN9CuyisZLbWnBtyjh2yQnGT9VnmijM7ZbUxwzLYS5ZexdYCrCaUmXqbY1D3r2YM4AWEzrRVqDXNTkWP6j5ou3\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mtmhMH1mm3xzJfzsKcgGgwb8Tga7nKsGSQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4NsiZrhs2wuHjvSk137g7e7dP2B9i3N6QMJb7tWbTkokpmcVRvZyYvYfusvhANo1PGpNPACx6ZmwouhivFFQ5PUBkZSpRHCC\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mttnV1prP9cR6NqH9cknfSCNcayLTZEgeo\",\n \"pubkey\": \"tpubDA9GDAntyJu4dTYkApWFA4gTeFsyXNpEiFxacoaCKxUgTDsyasxsP7FpLxzr4hGSp3ARFoMSVrFtX8JrCqc5drsHDa45s7AWcbnP8npaHtD\",\n \"used_times\": 0\n },\n {\n \"account\": \"miXR2YJXsSXjZVfT712myc7AWRu7hQbSmJ\",\n \"address\": \"mvTLP2MGeAmwS7y9ir6Sowoa6hhBymUkpv\",\n \"pubkey\": \"tpubDA9GDAntyJu4V2EvFeL5a7MoGgzzLwHJ7zMmpu1iQ83Qo1YB8AtcDU2ieZ1QZhZa88jyQCv48aFoQgeMnBEThBFS2RxRtx6GWffhcUwGsyx\",\n \"Line truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mh9VwE8HKhw3QjPCPZh3PU6e3juobVGeME\",\n \"pubkey\": \"tpubDA9GDAntyJu4nEGYmLc4ihro5xv9bSSwfZTPEQQfN25mm2exgoUugfQE4ZMM3boheswEyS3zJMMYneaz2AuYowwhYFPZhYrPv5ktZz5xMQV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mh9fMDTWpwF954grmVnzzntFSWXk8KYy8B\",\n \"pubkey\": \"tpubDA9GDAntyJu4L5oH2g4AeUbTqNd4mnJF7T1xamBiV5hJTwLdqPT3YsGZToqMEZvWu4266AyyraszWAybYcAPP8PJonQPj3J2odScqVUvvxd\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mj3pFoj1BLFA293quWByDf2WrSVn76Bvbz\",\n \"pubkey\": \"tpubDA9GDAntyJu4pLDopCn5sXCqmJSMD8f4J2mErt5E3pPmvY2o2xauN9wc2cgA217stad8Und2yumurTL5xpSqbnC95NC3wFik8VTqbWE9HbN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mmKD7WwB8A86K7RAtf7ncr79wgbvzfsJpe\",\n \"pubkey\": \"tpubDA9GDAntyJu4N6C1Craod75L2Kf1dK2KDCS3Q2s2xxWFo2KGtp9xhMVLjwQzCVYwDDXT7ZG2uNCjthqEJZdSeGcH7WgBSYcpJkwBPciGyKn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mmmGb7DUQec3QFrbi1m3MWC232phHGGDrX\",\n \"pubkey\": \"tpubDA9GDAntyJu53kygACiiUPY4Fm6Gf3AvGBk86noTQ6yZoczchTeiz49XnbaCHVnXM7tJRfnrUR73DUbAg4LMJNU5evYmbBfsuA87bn2U58M\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mnY7nggBwEtNAKhpYhQWzA1AfeFo7G5AyD\",\n \"pubkey\": \"tpubDA9GDAntyJu4VEy1YcEvFNLKNTWEZFdPM9CFeLoreu4d7cmtTeHcTMkdE4i2sw4YAi5saSd6NEY9oh9WgiLcApK3GrBaoNUeRtG5BZxAnwD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moK5kBNW2hTfUpNPe1ZaQLgEq4Z8N5cj1A\",\n \"pubkey\": \"tpubDA9GDAntyJu4dudWYrKMLH5k8xe7F9BfzEt1tE16AQgRfaaknKQmGz1Z8Bt4ws3ZgFoD5D8ZF5fW1ziHaC7cJvgNagsP7jCXN5DsVuwCe99\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moRQq9jHEJ6sL9cX6wq4A7EKTh5f8n8U9h\",\n \"pubkey\": \"tpubDA9GDAntyJu4RWtNN1XU4ny3qgphTYxToGUQRHZgJoS29hz7UcmLmsTeDUeToyfckDz94okiNkE6oRHh3v71auGJV6rai5Sff2sQxk3mBGB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moRkYbPJKGS8ihvNaedGzKQcskudaGdo6j\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fvmm66NdhqkSx2xZJTbjCPhu1zTECuxM5RCTzmuozN9VyAFg8uM3S3nt1EKQqMycTnBoNFTThNHRuWYNz5rH7E9Jx9MyCun\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mpqZ2sJifp18baqMntvEp3tgR8Kevo6vyV\",\n \"pubkey\": \"tpubDA9GDAntyJu4tboRaZAXEepzyJEDT29hxnu12gPpWoubZKEnM7XbbnenooLDtq6f7941UTEzkSrQs2ddRmEy14isbjgyHdvA163wcoMxrzN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mpvW6Ck65nk9fNUmMGmSdPFxTX4CsGw8Eb\",\n \"pubkey\": \"tpubDA9GDAntyJu4qzJ1846T1k1ynJfKK6NcLRm2NKrMpqnHADxzWkod9D2pBC9TtY4mQLmrTcmt18kVJaWnqXEMDC2zTWccf1MFNddpyxdexZa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"pubkey\": \"tpubDA9GDAntyJu4Q1UUt4uC8M5gp7phTP2E1FeU46kYzXb5VBGf5nU7cyUNsyPX2yLU76vp1ZLvkxJYCd6HeAptBfjE5T6YqfWtBYcKmGJLQ1q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mqHzaj6FHs9AePR7W5fFLTik7YDUaFUZRx\",\n \"pubkey\": \"tpubDA9GDAntyJu4iQrq8iPMTQ1YBzjcnMQuLUArHUPJ3snffAYaiYX1K691wxwnuLk1nLQq4wafiw7JDYEAWxNRr9BHwkqiyWq4ZDg3pgc1R7J\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mr5hNzrQodvcRT7S7Jo7TdrGF8o5QYPSsx\",\n \"pubkey\": \"tpubDA9GDAntyJu4vriftRQep2iT7d7ZJfsNNhMgXCsNZsa7J6Czt1WEyNE2WQkuqsWswafmx6yYmqQQei3HHUedeqiBhiMdHxWUzVZvohGLXgs\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mr9FzGLW7kH4t2vVJsqc98R9DNMnZT1PDZ\",\n \"pubkey\": \"tpubDA9GDAntyJu4LoaQBgqDM1xUkcUtRsS117uA9CDSmFrTR4GGi5X65VoUf7VDRE2oRKnrXDv2bNdfyMBJ23UQpcWhBHZhKM7GsbswhmhEw4T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mrGjJdkoEE5okDJDVJjNPYRm8xJks7TYc1\",\n \"pubkey\": \"tpubDA9GDAntyJu4fT9pBRSPRketsXUkxLhvswEZEG4Fx1e99GDUmpJnRyZoiyN3PaE1ToWazfcx74VQoNqzfhMxDARiGQVPu6JZVcuRRxGAw7d\",\n \"Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List addresses in specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mhFP2Zdc91j891DF85eTQpHnniC7QbBasB\",\n \"pubkey\": \"tpubDA9GDAntyJu4hsgTLfwp7vAsaPH7MfUAcsHdEiLWXDEKntPegTKJUTqr9fyT5BFVWKJvwAsSUpNTd9KBWJaniFo5u6UtsbcmdYNGcSDTDjU\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"miQgcq56an5igGs64LsVRMWGLcYLnPudpR\",\n \"pubkey\": \"tpubDA9GDAntyJu52q6gXw2XST7kMHSwtrWLGZGogkwDicEGy1Pgz6GJ9FA5uCtJxdMqKxCfAncLDFVnPy5VfofLv18Xe2ZLDDzKk2q1Ad2pzDv\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"miono4mUaX9Tcp1jDPgZyD9J91TuRXEC2J\",\n \"pubkey\": \"tpubDA9GDAntyJu4dPR37HcmPfStTvRCWpQu5ZjMhGoYRsWqzscNSDTkofvGF3fWSsT13azm2RVC1Wv1KGU61zZHc94Y2PyAY7c4T3Ho12ncyu8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mjFnRT7i6pzBPhXp27Vp39RmzWQSb81SRK\",\n \"pubkey\": \"tpubDA9GDAntyJu4xAJm37VYh8e1nCo1NsNVNfx9TGmVjUEUeUSf1GjxSPZqgWt2ECsMTzUfRa9RzzZpGzmKoSBcdKu8iUHo5YH2DNxybMFSA3A\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mkg1cmswRJ2wUqacULmormrydmZT6bqqNe\",\n \"pubkey\": \"tpubDA9GDAntyJu4zV1ZF7UfFvfNLaqsJ9m2o9KeiMtvnyT3RSMwE5pwVn5TzKe8Tzunbu5osABzN4UqaWm5ouHhEPQ6JCHGWb9JhHryc7oJmrs\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mmoMYKFhYwewfEgFyKeHdqirT9g9tS2k4R\",\n \"pubkey\": \"tpubDA9GDAntyJu4QE8b2Fa3XvZQwhQAVQFyMUJPRscRMmEo5V4n76mra9DQXzo4XbE27sqxD8b32mXjVSDz9MMFhmqLozbPZNwbV9kgKmHArWt\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mmzu9JZrenPxoV64HsycFY4Ju3rQpNKy9r\",\n \"pubkey\": \"tpubDA9GDAntyJu4GygwpgLDe5waifv7Ai3SuSB2SJNCDvofnFrqKaaASN9FXEjDGvhjkCyvi5Xev4Mtr5fsMwPSnTb4AxQ2CRS6uMCnrPxAQYg\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"moLbhNi41ra7J3b5e7dmBSoxqNgjvp9XJb\",\n \"pubkey\": \"tpubDA9GDAntyJu4JT4BYUyUERwdA4jDu7PTBtPCZJon2gTp8gMCjoUBQ8pNbXbxxPGX3xt8Wv6LRNXDfeunrVBckS5nSqost9rhzt7MRfAgXw2\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mpFepBmE6hsZKNdRpyFNRK9nfxAea6LCrn\",\n \"pubkey\": \"tpubDA9GDAntyJu4SfmdGXjafHJeBGZZYU7x7ufcm2ANfUuZGt7LpM9mZV7tJ6ujm1sM4hMU5gwbYVinAPdR3BixptuxDqNRerHQMYPf78uFJsK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mphhicxoJqNAw5vjGW5M8wsc4WsCQ9fdhq\",\n \"pubkey\": \"tpubDA9GDAntyJu4NP8LD2z3FkRvdMtao82utfGWuDQdD7waFw2Xj2XJ9zPKXaLQ4jqqRf6TwsYGsKU8BuCLYtq4Kmg5DnHU3wSzGBGKwMZyAiZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mqDjsJd1bGYYyLSqCNizoYcUkKPVCwtWd1\",\n \"pubkey\": \"tpubDA9GDAntyJu4XFKuPajLBn2a1z1ibj4haRMwsgneG5LN4iPUY1LVERnvdteLUyM192JMQraQdyTyMBXcyAVfr3FnsVLFJ97niveUrzUbA4z\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mrh8Xwtjf5RHtq1T38niNeR1VWpZzKyH7b\",\n \"pubkey\": \"tpubDA9GDAntyJu4LdVb9z2CsMUJPougvg53mtiVx2Xkx8SG5Hc2nnmKRJz6mKFG1B4E1LA32TJoVtUjayD5y2JE4Yn6eZSY1B2JG8mtZxvknw1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mrxYztgggu7bozVNFGyZN4DmRfBBNiJity\",\n \"pubkey\": \"tpubDA9GDAntyJu4rQgPAxSXJhHCsbXztszCybGmQJpwe1QjkgjAwZEp5HAAmLvEvScsF1c2GFWfiJGMbJVQzEiYdTjtCWK68sPq21QcWzZYX5Y\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"msW2BYACNfNFoMfPvE7nb7s5p5Dd7Lgzsk\",\n \"pubkey\": \"tpubDA9GDAntyJu4nt8SqCKE58Bp1D8HwVjwHdmv932Pk88pKT4W6JcoUppxUwDV414xDqsDWMARAi2rb1aJXKYbdNWKvR7dW143auz9MzLbj9E\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mvKsTzXmvfFZ77A8V4tbuqkMrxnvTC8gc7\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZvG8DcwrUu48LhDAqgvZ2Yzm28gZfLvwWXHf2zKqjqT9ARqAsyHHf5nPr4Y9jiZV568Yp2KSXYi2bQ2D1L5BhNt8a9bRk6s\",\n \"used_times\": 0\n },\n {\n \"account\": \"n47cvxWxXeFRHte7tfsjeqJyoTNtofuMuL\",\n \"address\": \"mwNNAj6D7LELACwd8wtfD8SnggDZtk1FUn\",\n \"pubkey\": \"tpubDA9GDAntyJu4QGeanhB4Sm82XeftwP4qbSnJ5ssZyM9gsVU4PFhJJ86NZUUwUng7RiPPAGK7yLrg1GDCzNazfQnHHzHT7MHGGLBA6mSWftr\",\n \"Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mh9VwE8HKhw3QjPCPZh3PU6e3juobVGeME\",\n \"pubkey\": \"tpubDA9GDAntyJu4nEGYmLc4ihro5xv9bSSwfZTPEQQfN25mm2exgoUugfQE4ZMM3boheswEyS3zJMMYneaz2AuYowwhYFPZhYrPv5ktZz5xMQV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mh9fMDTWpwF954grmVnzzntFSWXk8KYy8B\",\n \"pubkey\": \"tpubDA9GDAntyJu4L5oH2g4AeUbTqNd4mnJF7T1xamBiV5hJTwLdqPT3YsGZToqMEZvWu4266AyyraszWAybYcAPP8PJonQPj3J2odScqVUvvxd\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mj3pFoj1BLFA293quWByDf2WrSVn76Bvbz\",\n \"pubkey\": \"tpubDA9GDAntyJu4pLDopCn5sXCqmJSMD8f4J2mErt5E3pPmvY2o2xauN9wc2cgA217stad8Und2yumurTL5xpSqbnC95NC3wFik8VTqbWE9HbN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mmKD7WwB8A86K7RAtf7ncr79wgbvzfsJpe\",\n \"pubkey\": \"tpubDA9GDAntyJu4N6C1Craod75L2Kf1dK2KDCS3Q2s2xxWFo2KGtp9xhMVLjwQzCVYwDDXT7ZG2uNCjthqEJZdSeGcH7WgBSYcpJkwBPciGyKn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mmmGb7DUQec3QFrbi1m3MWC232phHGGDrX\",\n \"pubkey\": \"tpubDA9GDAntyJu53kygACiiUPY4Fm6Gf3AvGBk86noTQ6yZoczchTeiz49XnbaCHVnXM7tJRfnrUR73DUbAg4LMJNU5evYmbBfsuA87bn2U58M\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mnY7nggBwEtNAKhpYhQWzA1AfeFo7G5AyD\",\n \"pubkey\": \"tpubDA9GDAntyJu4VEy1YcEvFNLKNTWEZFdPM9CFeLoreu4d7cmtTeHcTMkdE4i2sw4YAi5saSd6NEY9oh9WgiLcApK3GrBaoNUeRtG5BZxAnwD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moK5kBNW2hTfUpNPe1ZaQLgEq4Z8N5cj1A\",\n \"pubkey\": \"tpubDA9GDAntyJu4dudWYrKMLH5k8xe7F9BfzEt1tE16AQgRfaaknKQmGz1Z8Bt4ws3ZgFoD5D8ZF5fW1ziHaC7cJvgNagsP7jCXN5DsVuwCe99\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moRQq9jHEJ6sL9cX6wq4A7EKTh5f8n8U9h\",\n \"pubkey\": \"tpubDA9GDAntyJu4RWtNN1XU4ny3qgphTYxToGUQRHZgJoS29hz7UcmLmsTeDUeToyfckDz94okiNkE6oRHh3v71auGJV6rai5Sff2sQxk3mBGB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"moRkYbPJKGS8ihvNaedGzKQcskudaGdo6j\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fvmm66NdhqkSx2xZJTbjCPhu1zTECuxM5RCTzmuozN9VyAFg8uM3S3nt1EKQqMycTnBoNFTThNHRuWYNz5rH7E9Jx9MyCun\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mpqZ2sJifp18baqMntvEp3tgR8Kevo6vyV\",\n \"pubkey\": \"tpubDA9GDAntyJu4tboRaZAXEepzyJEDT29hxnu12gPpWoubZKEnM7XbbnenooLDtq6f7941UTEzkSrQs2ddRmEy14isbjgyHdvA163wcoMxrzN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mpvW6Ck65nk9fNUmMGmSdPFxTX4CsGw8Eb\",\n \"pubkey\": \"tpubDA9GDAntyJu4qzJ1846T1k1ynJfKK6NcLRm2NKrMpqnHADxzWkod9D2pBC9TtY4mQLmrTcmt18kVJaWnqXEMDC2zTWccf1MFNddpyxdexZa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mqEDRQrRnfFzaX6m2HSgdrCsCd7Vy6MDf2\",\n \"pubkey\": \"tpubDA9GDAntyJu4Q1UUt4uC8M5gp7phTP2E1FeU46kYzXb5VBGf5nU7cyUNsyPX2yLU76vp1ZLvkxJYCd6HeAptBfjE5T6YqfWtBYcKmGJLQ1q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mqHzaj6FHs9AePR7W5fFLTik7YDUaFUZRx\",\n \"pubkey\": \"tpubDA9GDAntyJu4iQrq8iPMTQ1YBzjcnMQuLUArHUPJ3snffAYaiYX1K691wxwnuLk1nLQq4wafiw7JDYEAWxNRr9BHwkqiyWq4ZDg3pgc1R7J\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mr5hNzrQodvcRT7S7Jo7TdrGF8o5QYPSsx\",\n \"pubkey\": \"tpubDA9GDAntyJu4vriftRQep2iT7d7ZJfsNNhMgXCsNZsa7J6Czt1WEyNE2WQkuqsWswafmx6yYmqQQei3HHUedeqiBhiMdHxWUzVZvohGLXgs\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mr9FzGLW7kH4t2vVJsqc98R9DNMnZT1PDZ\",\n \"pubkey\": \"tpubDA9GDAntyJu4LoaQBgqDM1xUkcUtRsS117uA9CDSmFrTR4GGi5X65VoUf7VDRE2oRKnrXDv2bNdfyMBJ23UQpcWhBHZhKM7GsbswhmhEw4T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mqEbuKqeB8k7Bar1Rg9wVXWYvhHq1cAprY\",\n \"address\": \"mrGjJdkoEE5okDJDVJjNPYRm8xJks7TYc1\",\n \"pubkey\": \"tpubDA9GDAntyJu4fT9pBRSPRketsXUkxLhvswEZEG4Fx1e99GDUmpJnRyZoiyN3PaE1ToWazfcx74VQoNqzfhMxDARiGQVPu6JZVcuRRxGAw7d\",\n \"Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -887,7 +887,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\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\"\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mvW5fF65d8WiGavNWjJcuQ6uRoa4AsSmLZ\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -937,10 +937,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a blob",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete 311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\"\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1018,7 +1018,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 \"311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\",\n \"f31cb322b4fb4dd4b40b9d34aa73a653a91e8750f99d2be518f18bc11ac3a45bdebbb3974b73a198a7c0079ca1006acf\",\n \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"ffd0b34649756ecf40381268f41e05fae1c40290888edd2a3b2e4c7af67935873d9805fb50f7464c942de34f06a23a6c\"\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 \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"64389e7847bc5fbf401d21133bac00ed788c65dba6154026924dbcb72fe6aa37f9646cf78d7841685d503d8a747c6624\",\n \"a035353881b061795536e73b3fb84361a601a90cfdd928531a7c4e133800f46173f8bfd97a929844e521851805ece1b2\",\n \"f71fb71a3ddd6bd2ce60c6941c2f9faf5317510bf7ea65d56286fa17066405522ba4fc4880d0982c7cfce84375bf8507\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1099,10 +1099,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon b312a0c4eff10abe98542f99679ccddc20840daa",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ac5fa13aa4e403321f366686696157b61f2351962a44433f91bab13a386a7551000000006a47304402202f6572c66002f6f6c22a8fc14d77917cfab88ca10beac1e15e9127e656a8cbdb0220120f385d2920de764049a6cb43e6866335b14a97806e8dc334541ad79c634dad012103e9b87aec0af2761f19ac855a484f47963e812e14ae0c15d41fa330875b0e166cffffffff0134b7f505000000001976a9145059d1db9f1e07185401089951f3382b56bc602e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnqoxBn14bSdzLMLH1F94GouriTenxXEnC\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"aafe34a4e2b90dfa1c60917945a4a43ef44515c6669f9be0a60ff05feb54ef14\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"aafe34a4e2b90dfa1c60917945a4a43ef44515c6669f9be0a60ff05feb54ef14\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon 5dc92b3ab696844e2e043f542b50a2dd0a95d6f2",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000112e4e8fb6fb977bea835761def95a4747bd712b2e0fce3301defbfd75af2e83e000000006a47304402202ccafb731d9f42ab097e655526e8956c53def70018fb441489ab5ac7401a6b1702200d8c1ada5636d42a0c57bccfe16e292b078aa199fe4cc9df8c14c6cc9aa4758801210368cfa299e5d7db0b87e2ea90267a40e7de62ff496eebd05fbda7265a4de27b33ffffffff0134b7f505000000001976a914c017140cff818203be7ed9eb831d516beeae380e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"my2dgPteE6c6TiFWk8hcfijZut58dE5FM3\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"fe572f8d040b941d2a2b8c863111e6213ed47075d35add195d9718e8ef119fe0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"fe572f8d040b941d2a2b8c863111e6213ed47075d35add195d9718e8ef119fe0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1232,14 +1232,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel create @channel 1.0",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a228e308765165e836e301d697866b58a55f3c0b7a4f0a9d772e0b2809d397fa010000006b483045022100fa1add496427b8d6f93f57e0fe47afd39d8c4d405ee6c81b88f997d0cae30e5302207a0a70cf0c6bbfb0e2b315796d0c3229f958ba242311ab1c0020ac4c535039e1012103c34a1e25ff921e476d5fcf7af1eb5ceec6d699261094d7ed6f02347d0447f834ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a6d7576a9148fa2c90e8c0619d00ccdaccd72be943796a9e24588acc462a029000000001976a9148b8739f3cdb5fea9a383d0c1e17ad2996fcbc4df88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3CgTDtBMq1jigfQ3Y8NpYesjZyA4Qp3wm\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1614834156,\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": null,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mtEiDQqYaxPYPj5HBwxUrEoFMYK8aAQBgy\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000158533d2d042f919166ee2e1579846af0b49c4caf9db4cd82a7ca37362f374769010000006b483045022100b6ce1836a430d4394ddbf3dffa642a800b275729604725dbc1b7c6c81c56e53c02205a4fbfcc83265681ac90fc1e18676124371f746eb4d7b383a81e063cbcdee161012103d82be71a914cffdc96e54df3ee5e7b7e224078010ecc85fd19efd25a50f23a9fffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f11596d7576a914596f53ebf6552729fea4e2dbdc62e9662b8757c788acc462a029000000001976a91471452ebd78a856d51b47902e7224373cbfa308f488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxbsGa4jf99tDFJtiFtxyVJ7N3xPUsD9qo\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1602862456,\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": null,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqqsXcxFmcQBN6JFR1hRE4UtDYtDXp1u4f\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a channel claim with all metadata",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel create @bigchannel 1.0 --title=\"Big Channel\" --description=\"A channel with lots of videos.\" --email=\"creator@smallmedia.com\" --tags=music --tags=art --languages=pt-BR --languages=uk --locations=BR --locations=UA::Kiyv --website_url=\"http://smallmedia.com\" --thumbnail_url=\"http://smallmedia.com/logo.jpg\" --cover_url=\"http://smallmedia.com/logo.jpg\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ac5fa13aa4e403321f366686696157b61f2351962a44433f91bab13a386a7551010000006b483045022100acf26e284e018c32470ecdb05fc6650b84e40b0ee54ef9ef40e57673e20f44b40220671a3e8828bda4dbce3ca75eb65268041e93812a29c9340a0360c6b496fe72ed012102a3a837a10321357e9d8da8fda91900b98b800165dbaa8997ae6b56810ae7c7beffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200047ed273e6c364ab8e981e1b44776bf56a0995b0df2cf7a154a9530bd0cdba276e4672a7ae8fd9deb22d43c9c741a8478cbc1306330e2ae022f6a96c9fe1788018121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914a530022a5d3c8a898c574e1d0745b66d81fa986c88ace221d305000000001976a914fa2d6d25de892780ce0ebaf0c2f772c08bee754a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mm6vVq975abgNiLdsxyLixMyP2LsqLiWXQ\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvaPJPhmN6aNDbYNWPtTgf3vR3SCQxUvfw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"29ecfaaab4b2bdeb69f8cd02a07b717f14c522d1\",\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#29ecfaaab4b2bdeb69f8cd02a07b717f14c522d1\",\n \"timestamp\": null,\n \"txid\": \"8aa03d71ba83a0e77f5007dfc388becb91c55eb96694c57d442551849ca811e9\",\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\": \"3056301006072a8648ce3d020106052b8104000a034200047ed273e6c364ab8e981e1b44776bf56a0995b0df2cf7a154a9530bd0cdba276e4672a7ae8fd9deb22d43c9c741a8478cbc1306330e2ae022f6a96c9fe1788018\",\n \"public_key_id\": \"mugMj6KFwrKRwkuGi4VaTC2YJTmFLaL8pJ\",\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\": \"n4KmeHo7zQ59rjVxxzNv1tSA7g5w4yWqyk\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8aa03d71ba83a0e77f5007dfc388becb91c55eb96694c57d442551849ca811e9\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"8aa03d71ba83a0e77f5007dfc388becb91c55eb96694c57d442551849ca811e9\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000112e4e8fb6fb977bea835761def95a4747bd712b2e0fce3301defbfd75af2e83e010000006b483045022100f400356b4588a1106ca630f418e6737d39da0f522e09cbce2190ebac9d1713ac0220423d8cde9e4ede9985c47606c04bb941dea7bf2e6644f5f79b6eb169e50e8194012102dce4926e5905334758fab58a5ac2e143f6410c9bea71d9a4fd51560a8603ce0cffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200049909f498c2b3c3c649d91778426bfcf8dd895943e15567956a490a95b66876d7535efb3dd402c5d359c68bbebdc45118be228dfa1a553f556ce3bff01b6eb7fd121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914a45f9e7b68cd294a21fa75ee23c7fdfeb35f237b88ace221d305000000001976a9149ac52fa70e513b792b36846c00a6b23b4e72ee9988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"moH3m15AhmpjZVZUwYEQciKNAnBqug5VwM\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvW5fF65d8WiGavNWjJcuQ6uRoa4AsSmLZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9289606d85caabe4c8adcc142eda730022d1b3bd\",\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#9289606d85caabe4c8adcc142eda730022d1b3bd\",\n \"timestamp\": null,\n \"txid\": \"cc77ce3035437425d1cd14b48ded892f1283f13d63e9756d1f589bf35d214347\",\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\": \"3056301006072a8648ce3d020106052b8104000a034200049909f498c2b3c3c649d91778426bfcf8dd895943e15567956a490a95b66876d7535efb3dd402c5d359c68bbebdc45118be228dfa1a553f556ce3bff01b6eb7fd\",\n \"public_key_id\": \"n3N9RDkMdpvemT83QfEWuJ1es1uNyVHydK\",\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\": \"mudJaL41pUBkS3VRifB26xD4YLNWDNVrau\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"cc77ce3035437425d1cd14b48ded892f1283f13d63e9756d1f589bf35d214347\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"cc77ce3035437425d1cd14b48ded892f1283f13d63e9756d1f589bf35d214347\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1361,55 +1361,17 @@
|
|
|
|
|
"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\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\"\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\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\"\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\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\"\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\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_sign",
|
|
|
|
|
"description": "Signs data using the specified channel signing key.",
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_name",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "name of channel used to sign (or use channel id)",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "claim id of channel used to sign (or use channel name)",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "hexdata",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "data to sign, encoded as hexadecimal",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_account_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "restrict operation to specific wallet",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": "(dict) Signature if successfully made, (None) or an error otherwise\n {\n \"signature\": (str) The signature of the comment,\n \"signing_ts\": (str) The timestamp used to sign the comment,\n }",
|
|
|
|
|
"examples": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_update",
|
|
|
|
|
"description": "Update an existing channel claim.",
|
|
|
|
@@ -1563,10 +1525,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"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 b312a0c4eff10abe98542f99679ccddc20840daa --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"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\": \"01000000026f9684b064899e8a3206c9c7f85ec37806bbb389b3a982a9b2a74b3673c6aa26000000006b483045022100fb4eed6bf242b190099834cb4ddec11d92369984b989861ee56c6234ba7dc86b0220015dad9d0dc8d8d96699042bc7db01fe3f7d4d631fe954a2fad359632b12f5bf012103e9b87aec0af2761f19ac855a484f47963e812e14ae0c15d41fa330875b0e166cffffffffecc4a7b0c898200fe601983e91b47cea14082835f5085d8de8d3124895eeb5f1000000006b483045022100e491563240d3f4ec6a702b216602f5116c82c82a1c39621ee5718e98a7bacd03022077d6bd151099254e08df2c63509730b8239222fc44226d6dbb932e4cf26a599001210347e377e56ef15349d303511a87bb9d3b6c43e3a35b2361f7426c5d62e54a07f1ffffffff0200e1f50500000000a6b708406368616e6e656c14aa0d8420dccd9c67992f5498be0af1efc4a012b34c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a420b4e6577204368616e6e656c6d6d76a9148fa2c90e8c0619d00ccdaccd72be943796a9e24588ac6ebeea0b000000001976a9143d454587911f8a1a26e87397ba2e0d0a17d0923a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mvTLP2MGeAmwS7y9ir6Sowoa6hhBymUkpv\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1614834156,\n \"txid\": \"f1b5ee954812d3e88d5d08f535280814ea7cb4913e9801e60f2098c8b0a7c4ec\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": null,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mm6vVq975abgNiLdsxyLixMyP2LsqLiWXQ\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"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 5dc92b3ab696844e2e043f542b50a2dd0a95d6f2 --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"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\": \"01000000022946e645885d5cbfaef61db1ee78c0869cb0cb31d94010bc5cd85d1e11a3a160000000006a47304402206468e077adeba3c21673ed78920c859588722d3a87fb732dad55f2517a5f6c8402206e310605a42dd6292f9fdd28fd9d98641f8d1f6449c28f16a99c8d917341033b01210368cfa299e5d7db0b87e2ea90267a40e7de62ff496eebd05fbda7265a4de27b33ffffffff16499bbabc8965d2f65610b5be2856939351adf0463c345ef047dc4a1e4b414b000000006a47304402207ec9d5cca07d5f1718c2186318362332b26023bd11b0c25a847bdb45941be5b70220571fa748c26741777916e639d6e1d43b00141f24f150315abbc086640ebb261d012103386e2ac35f59e8ad77be0888e75f2fd52963138f53f1accb21ceef9f45abc74effffffff0200e1f50500000000a6b708406368616e6e656c14f2d6950adda2502b543f042e4e8496b63a2bc95d4c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159420b4e6577204368616e6e656c6d6d76a914596f53ebf6552729fea4e2dbdc62e9662b8757c788ac6ebeea0b000000001976a914551fbe93b46bf72e02981bc529201b0ab6016ddf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mkwDGRHqKvQXW9zwfumqrJUhiBDWbzPr1M\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1602862456,\n \"txid\": \"4b414b1e4adc47f05e343c46f0ad5193935628beb51056f6d26589bcba9b4916\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": null,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"moH3m15AhmpjZVZUwYEQciKNAnBqug5VwM\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -1654,7 +1616,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "include_received_tips",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "calculate the amount of tips received for claim outputs",
|
|
|
|
|
"description": "calculate the amount of tips recieved for claim outputs",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
@@ -1665,14 +1627,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"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\": [], \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\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\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\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\": [], \"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\": [], \"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\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\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\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1869,7 +1831,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "claim_type",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "filter by 'channel', 'stream', 'repost' or 'collection'",
|
|
|
|
|
"description": "filter by 'channel', 'stream' or 'unknown'",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@@ -1983,7 +1945,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "wallet to check for claim purchase receipts",
|
|
|
|
|
"description": "wallet to check for claim purchase reciepts",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@@ -2009,17 +1971,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Search for all claims in channel",
|
|
|
|
|
"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}}' http://localhost:5279/",
|
|
|
|
|
"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\": [], \"include_purchase_receipt\": false, \"include_is_my_output\": 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}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b/astream#8\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1614834157,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"short_url\": \"lbry://astream#8\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1614834156,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"short_url\": \"lbry://@channel#b\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"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\": [], \"include_purchase_receipt\": false, \"include_is_my_output\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5/astream#f\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1602862457,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1602862456,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"short_url\": \"lbry://@channel#5\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\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}}' http://localhost:5279/",
|
|
|
|
|
"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\": [], \"include_purchase_receipt\": false, \"include_is_my_output\": 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}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b/astream#8\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1614834157,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"short_url\": \"lbry://astream#8\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1614834156,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"short_url\": \"lbry://@channel#b\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"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\": [], \"include_purchase_receipt\": false, \"include_is_my_output\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5/astream#f\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1602862457,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#5\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1602862456,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"short_url\": \"lbry://@channel#5\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2098,7 +2060,7 @@
|
|
|
|
|
"name": "claims",
|
|
|
|
|
"type": "list",
|
|
|
|
|
"description": "claim ids to be included in the collection",
|
|
|
|
|
"is_required": false
|
|
|
|
|
"is_required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "allow_duplicate_name",
|
|
|
|
@@ -2148,24 +2110,6 @@
|
|
|
|
|
"description": "thumbnail url",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "claim id of the publisher channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_name",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "name of the publisher channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_account_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "account_id",
|
|
|
|
|
"type": "str",
|
|
|
|
@@ -2204,26 +2148,12 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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_feLine truncated
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a collection of one stream",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet collection create --name=tom --bid=1.0 --channel_id=b312a0c4eff10abe98542f99679ccddc20840daa --claims=8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c658e7bbd1b900c27854ee50bc1c936efecbff86f0b6dbe0fa935498ccbc9c8a010000006a4730440220249e1e97baa1f9e7602414ecd53e310ae31fb4598d0e69dc3ebb05f47b9f8e5a022021d5fd28eab560a955fa2fe5d5c9b33333751ddd3b10c3c766070dc5656d14e601210301cf1ec4ac3fe3f25c6250752288e42586396b61cd85fe4c15202ad8af47cab4ffffffff0200e1f5050000000091b503746f6d4c6f01aa0d8420dccd9c67992f5498be0af1efc4a012b3fa0a33fbce950319e1e93d37b8e7ac027b1c4ef42780aa428e756d4f3e986b70ee7a996b23a95b08b489fc27a3b926bf89fbd3755362d45900d0a584e5cea5db1a1812160a1427aa8670e6c69ed06c8e526902e9ab4a1b6b1d8e6d7576a9149163664e4085c5c218cc4ebef8fec91feb3e4ca588ac202c7e17000000001976a9146c67f3d6029f4e5eb63fc9c4c20755099924f65488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvjMmSnptUQq5P81YaER63A2xvh3f8Fy18\",\n \"amount\": \"4.947555\",\n \"confirmations\": 2,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1614834157,\n \"txid\": \"8a9cbccc985493fae0dbb6f086ffcbfe6e931cbc50ee5478c200b9d1bbe758c6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mtmhMH1mm3xzJfzsKcgGgwb8Tga7nKsGSQ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"99d652cb5528dbe8b01d06e550af798ea6cd0ee5\",\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#99d652cb5528dbe8b01d06e550af798ea6cd0ee5\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"79d374f33ff80dc1049826650b51c1e65b0b3f5af4839b85cb9037882110c6d3\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"\n ]\n },\n \"value_type\": \"collection\"\n },\n {\n \"address\": \"mqQ9oWwESPiXhdCqnX74GKJC52Au3mLppJ\",\n \"amount\": \"3.941448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"79d374f33ff80dc1049826650b51c1e65b0b3f5af4839b85cb9037882110c6d3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.006107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.941448\",\n \"txid\": \"79d374f33ff80dc1049826650b51c1e65b0b3f5af4839b85cb9037882110c6d3\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
"examples": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "collection_list",
|
|
|
|
|
"description": "List my collection claims.",
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "resolve collection claim",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve_claims",
|
|
|
|
|
"type": "int",
|
|
|
|
@@ -2256,15 +2186,7 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_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 }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List collections",
|
|
|
|
|
"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\": \"mtmhMH1mm3xzJfzsKcgGgwb8Tga7nKsGSQ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b/tom#9\",\n \"claim_id\": \"99d652cb5528dbe8b01d06e550af798ea6cd0ee5\",\n \"claim_op\": \"create\",\n \"claims\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b/astream#8\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1614834157,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"short_url\": \"lbry://astream#8\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#b\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1614834156,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"short_url\": \"lbry://@channel#b\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\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\": 1614834157,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263191,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 217,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\"Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
"examples": []
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "collection_resolve",
|
|
|
|
@@ -2410,6 +2332,12 @@
|
|
|
|
|
"description": "address where the collection is sent",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "new_signing_key",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "generate a new signing key, will invalidate all previous publishes",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "preview",
|
|
|
|
|
"type": "bool",
|
|
|
|
@@ -2458,10 +2386,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\": {\n \"abandoned\": true\n }\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon 34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"error\": {\n \"code\": -32000,\n \"data\": null,\n \"message\": \"could not get claim from sdk with claim id 5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\"\n },\n \"id\": 1,\n \"jsonrpc\": \"2.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2516,17 +2444,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Posting a comment as your channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"c8abd66f333be477aae482d73ee7446f9249261b8278f48c0518f5e29726357aecaad62bb962c5c079de5f023586d7f93759ab8bdbaf4de4d888cfb601146fdd\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=fe7ee643b50b724f6029f6edfe90d67b5512b3ae",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"c9cf386ed5af52fa1beb060898c5590f4c7fe02010228e1db49dc42b5bcf2d83218825876ae75f60a42cee0bf27d311904299e10fa2b6daef158a38cf4deb06c\",\n \"signing_ts\": \"1602862434\",\n \"timestamp\": 1602862434\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Use the parent_id param to make replies",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --parent_id=b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c --claim_id=8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"4cf468b7f4d57c97ccecc02a2834f6197141b365640a0df40062574748f601760c2046fa3b007ac7652b092ba4731e1c9bf77f116b531c25e809fc8a309dae98\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"signature\": \"786e474fce43d6bb8714194f2e33e1f4fb79f2d8b7889572713b73fdd76b089aec78dfe310f440f59959ac0989c3f39a6a2d650aa1dd285667c49417cf10fda9\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --parent_id=34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_id\": \"\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"bc36b0956118363b6b4ca20fed91c76f1e596ce0fc0ca0545366298fc6b22186\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\",\n \"signature\": \"459065ca93c600a81d51ea2038a6afad7eb0d03c94bd674f3b73cb14a0b65815d09eb788c40c30163e04cc1e48c6238f6c78a7ecda62aaf0e7afd7cd3b98b66a\",\n \"signing_ts\": \"1602862434\",\n \"timestamp\": 1602862435\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2613,17 +2541,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List all comments on a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list 8e1d6b1b4aabe90269528e6cd09ec6e67086aa27 --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"4cf468b7f4d57c97ccecc02a2834f6197141b365640a0df40062574748f601760c2046fa3b007ac7652b092ba4731e1c9bf77f116b531c25e809fc8a309dae98\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"signature\": \"786e474fce43d6bb8714194f2e33e1f4fb79f2d8b7889572713b73fdd76b089aec78dfe310f440f59959ac0989c3f39a6a2d650aa1dd285667c49417cf10fda9\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n },\n {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"c8abd66f333be477aae482d73ee7446f9249261b8278f48c0518f5e29726357aecaad62bb962c5c079de5f023586d7f93759ab8bdbaf4de4d888cfb601146fdd\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list fe7ee643b50b724f6029f6edfe90d67b5512b3ae --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"c9cf386ed5af52fa1beb060898c5590f4c7fe02010228e1db49dc42b5bcf2d83218825876ae75f60a42cee0bf27d311904299e10fa2b6daef158a38cf4deb06c\",\n \"signing_ts\": \"1602862434\",\n \"timestamp\": 1602862434\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List a comment thread replying to a top level comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list 8e1d6b1b4aabe90269528e6cd09ec6e67086aa27 --parent_id=b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"4cf468b7f4d57c97ccecc02a2834f6197141b365640a0df40062574748f601760c2046fa3b007ac7652b092ba4731e1c9bf77f116b531c25e809fc8a309dae98\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"signature\": \"786e474fce43d6bb8714194f2e33e1f4fb79f2d8b7889572713b73fdd76b089aec78dfe310f440f59959ac0989c3f39a6a2d650aa1dd285667c49417cf10fda9\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n },\n {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"c8abd66f333be477aae482d73ee7446f9249261b8278f48c0518f5e29726357aecaad62bb962c5c079de5f023586d7f93759ab8bdbaf4de4d888cfb601146fdd\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"parent_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list fe7ee643b50b724f6029f6edfe90d67b5512b3ae --parent_id=34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"parent_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 0,\n \"total_pages\": 0\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2792,10 +2720,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Edit the contents of a comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"comment\": \"Where there was once sasquatch, there is not\",\n \"comment_id\": \"b88abe2cd021b3b6b2a705a09b0cc3a97f9c8a49008b3a1d5c435b0431ba62ab4658c0e2e5d47fb78147016cb2a4708de87ca27ee6b5657e042db085bcb9692c\",\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": null,\n \"signature\": \"922e62510909966535c0234cc3c0b03e2d72c6867333bfce300ff785b40695f82502b033b162504b9d8adb20303472012724439849228cb0ad2927422428797e\",\n \"signing_ts\": \"1614834138\",\n \"timestamp\": \"1614834138\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"34ffe236decc147c7c0c7e0c24c2e5380a312c1084e6ed7bb2c3332a89e95cbf\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"error\": {\n \"code\": -32000,\n \"data\": null,\n \"message\": \"could not get claim from sdk with claim id 5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\"\n },\n \"id\": 1,\n \"jsonrpc\": \"2.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2885,9 +2813,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -3048,14 +2976,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\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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\": \"cd4485fae55b2147206733882971405a\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01aa0d8420dccd9c67992f5498be0af1efc4a012b337f1ca30a5844b95623ce944a8279839e5111bc041faf55de4cd6452e2ff25ea6ad84a1e3c478596408f4342829ffaa690073dfbdf024eb5b4c12c2509ad72980a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ed940f9a26c786d7a10f006354ac7d0f29772269bd752ce9b6b3681647581d5bd74c89a48e48ca5277eae641b1088239\",\n \"stream_name\": \"tmpuyu0q8tj\",\n \"streaming_url\": \"http://localhost:5280/stream/3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"suggested_file_name\": \"tmpuyu0q8tj\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\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\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"d0c162f216e4e566d6da93a28ad4e23a78bcea87\",\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\": \"7a49ee69a28aa0865fb8952469bd8cbf\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"myvqTjDz7Jo3mqvnPN5BQ5ACeffyPGzS9u\",\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\": \"1614834136\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpjfjb7uyw.png\",\n \"sd_hash\": \"311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\",\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\": \"Line truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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\": \"7acc8b9eac8e533c57b933928ab6fad0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01f2d6950adda2502b543f042e4e8496b63a2bc95d1391e6159e2874bf75624f77339a61abf38b4da3237a5a52ad92aece2cefae8742c427064051fadb0dcfcc8f957b190341110ce64b8fd3f5cc874e16db11cbdc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6b8f6829a8820cd430d23b3de7dd67ad77a11d912b04ac5577014d51af877a0c3a094e8d3d9bc2ae6b2c13c2ea44e477\",\n \"stream_name\": \"tmpk0n0x2sb\",\n \"streaming_url\": \"http://localhost:5280/stream/d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"suggested_file_name\": \"tmpk0n0x2sb\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\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\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dca7d8cee4b0dca9ac27d279bce24163b34d3237\",\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\": \"a3f6d1b054670be4d383c657da6e56cd\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"msnpXocjCvdA7rj6Pnn8v1NTxaHMXcAwJ2\",\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\": \"1602862432\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpej_krqnp.png\",\n \"sd_hash\": \"f71fb71a3ddd6bd2ce60c6941c2f9faf5317510bf7ea65d56286fa17066405522ba4fc4880d0982c7cfce84375bf8507\",\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\": \"Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List files matching a parameter",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"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\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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\": \"cd4485fae55b2147206733882971405a\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01aa0d8420dccd9c67992f5498be0af1efc4a012b337f1ca30a5844b95623ce944a8279839e5111bc041faf55de4cd6452e2ff25ea6ad84a1e3c478596408f4342829ffaa690073dfbdf024eb5b4c12c2509ad72980a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ed940f9a26c786d7a10f006354ac7d0f29772269bd752ce9b6b3681647581d5bd74c89a48e48ca5277eae641b1088239\",\n \"stream_name\": \"tmpuyu0q8tj\",\n \"streaming_url\": \"http://localhost:5280/stream/3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"suggested_file_name\": \"tmpuyu0q8tj\",\n \"timestamp\": 1614834157,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\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\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"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\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"is_fully_reflected\": true,\n \"key\": \"7acc8b9eac8e533c57b933928ab6fad0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01f2d6950adda2502b543f042e4e8496b63a2bc95d1391e6159e2874bf75624f77339a61abf38b4da3237a5a52ad92aece2cefae8742c427064051fadb0dcfcc8f957b190341110ce64b8fd3f5cc874e16db11cbdc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6b8f6829a8820cd430d23b3de7dd67ad77a11d912b04ac5577014d51af877a0c3a094e8d3d9bc2ae6b2c13c2ea44e477\",\n \"stream_name\": \"tmpk0n0x2sb\",\n \"streaming_url\": \"http://localhost:5280/stream/d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"suggested_file_name\": \"tmpk0n0x2sb\",\n \"timestamp\": 1602862457,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3172,10 +3100,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Save a file to the downloads directory",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1614834139,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmperer8uup\",\n \"download_path\": \"/tmp/tmperer8uup/tmpuyu0q8tj_1\",\n \"file_name\": \"tmpuyu0q8tj_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"cd4485fae55b2147206733882971405a\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01aa0d8420dccd9c67992f5498be0af1efc4a012b337f1ca30a5844b95623ce944a8279839e5111bc041faf55de4cd6452e2ff25ea6ad84a1e3c478596408f4342829ffaa690073dfbdf024eb5b4c12c2509ad72980a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"ed940f9a26c786d7a10f006354ac7d0f29772269bd752ce9b6b3681647581d5bd74c89a48e48ca5277eae641b1088239\",\n \"stream_name\": \"tmpuyu0q8tj\",\n \"streaming_url\": \"http://localhost:5280/stream/3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"suggested_file_name\": \"tmpuyu0q8tj\",\n \"timestamp\": 1614834157,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1602862436,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpzzr985r8\",\n \"download_path\": \"/tmp/tmpzzr985r8/tmpk0n0x2sb_1\",\n \"file_name\": \"tmpk0n0x2sb_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"7acc8b9eac8e533c57b933928ab6fad0\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01f2d6950adda2502b543f042e4e8496b63a2bc95d1391e6159e2874bf75624f77339a61abf38b4da3237a5a52ad92aece2cefae8742c427064051fadb0dcfcc8f957b190341110ce64b8fd3f5cc874e16db11cbdc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"6b8f6829a8820cd430d23b3de7dd67ad77a11d912b04ac5577014d51af877a0c3a094e8d3d9bc2ae6b2c13c2ea44e477\",\n \"stream_name\": \"tmpk0n0x2sb\",\n \"streaming_url\": \"http://localhost:5280/stream/d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"suggested_file_name\": \"tmpk0n0x2sb\",\n \"timestamp\": 1602862457,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3456,7 +3384,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 \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"http://localhost:2903/api\",\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_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmperer8uup\",\n \"download_dir\": \"/tmp/tmperer8uup\",\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 \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"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\": 3333,\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/tmperer8uup\",\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 \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api/v2\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpzzr985r8\",\n \"download_dir\": \"/tmp/tmpzzr985r8\",\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 \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"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\": 3333,\n \"track_bandwidth\": true,\n \"transaction_cache_size\": 100000,\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/tmpzzr985r8\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3531,10 +3459,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a stream claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon 8e1d6b1b4aabe90269528e6cd09ec6e67086aa27",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010de1fd2e5892faa37d0c5f5903c6f943fd87bba3775f5902903b9d3212ef0d04000000006b483045022100e1b1f63c175bf93381a04301c6c05371963ffe291b1bc66cbb234a2dcdfdd58f02203e0b68aeea4fba142f46481bd6e34ff8f2cef7dba289a6fd442c75e4706c412a01210273e915853a992843ce866bb86542bbd8f6bf2a6cd7bd1b40fcc62ebdca3d1033ffffffff0134b7f505000000001976a9145d7218d936e2ee9cd7f6c4e325ec724ef5580af388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mp33pVo4NnGZL3jxMMrKj1SEiVcRuRjEhz\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"fa517763eee137e5c11d8c0364fb16ec493f1bd447bff721dc768ca71af6062f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"fa517763eee137e5c11d8c0364fb16ec493f1bd447bff721dc768ca71af6062f\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon fe7ee643b50b724f6029f6edfe90d67b5512b3ae",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000016e67d1371cecb45aec93d8b04c216444b7309ad7800ca1ef883d539816b720c6000000006a47304402201a739f6404a0d2b3c7e6f37167b0b8b7d334cf6921df2a0e957f0fdf28810d0f02201738ca4c8a0406a2a1cf6e3a2f1edb3c9696c5e0dc3a2a3f262b7528446895b20121021ef1cb2d0e5f2d4afebf3f9a2c51b78d55a2fa584070831c33a540f7900b7d27ffffffff0134b7f505000000001976a9145013cace93019f49485a11c39bf6c22d246d5f6d88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnpN4b33fqF5jCN4yRJU1ts5ZSvfBRDWcX\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"3ee7e6c2c25b891aa56475edbe8583d6e8e324692890ef8eb013c6506879a408\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"3ee7e6c2c25b891aa56475edbe8583d6e8e324692890ef8eb013c6506879a408\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3747,17 +3675,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a stream claim without metadata",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpuyu0q8tj\", \"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/tmpuyu0q8tj",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpuyu0q8tj\", \"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\": \"01000000016f9684b064899e8a3206c9c7f85ec37806bbb389b3a982a9b2a74b3673c6aa26010000006b483045022100d289c3b75efaadb927c7251507ae39acea229e88c7665544a4432dc065042b08022045c2ad4d19d59cb53ada7647a1b246bce78827cda797518e38e15208f91d7ff601210216a1734dcbf7cee620b631571e8c7b9529d6e1f89608538f4c56927b8904214fffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d6d7576a914fdde168e6017209da83a477c5a85acfded0a69c588ac38fb9423000000001976a914d8fbf8a1a258e53d180240a8f3161d4b92a06ecc88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtEiDQqYaxPYPj5HBwxUrEoFMYK8aAQBgy\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1614834156,\n \"txid\": \"26aac673364ba7b2a982a9b389b3bb0678c35ef8c7c906328a9e8964b084966f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"timestamp\": null,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1JG6kpsUC8Ya9KakL9vNSt9HqyrieVRBW\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpk0n0x2sb\", \"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/tmpk0n0x2sb",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpk0n0x2sb\", \"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\": \"01000000012946e645885d5cbfaef61db1ee78c0869cb0cb31d94010bc5cd85d1e11a3a160010000006b483045022100c2f28f3469f168c9bae13f8db2d5efa37cb806c3c6130ca4c85d22c49da0d3220220717880093ff7d0142930c2012176cc89667aa82d3b6d3cc8aa79bf4934602ff1012103e475aa118245138c9c60728635f29a02c3f7509332d7a73cf7f50321527e089fffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d6d7576a914cec22985383752987fece466729c85a74f17a45588ac38fb9423000000001976a914f84bdf86b89b4754c88e23739b81a59b4d74173988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqqsXcxFmcQBN6JFR1hRE4UtDYtDXp1u4f\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1602862456,\n \"txid\": \"60a1a3111e5dd85cbc1040d931cbb09c86c078eeb11df6aebf5c5d8845e64629\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"timestamp\": null,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n49pmPPUVED3aiwTfRe75yKpjXBhGCFx4n\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\"\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/tmpjfjb7uyw.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\": 1614834136, \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpjfjb7uyw.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=1614834136 --channel_id=\"b312a0c4eff10abe98542f99679ccddc20840daa\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpjfjb7uyw.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\": 1614834136, \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a33480554ff4f23f88b48bccca90f4d43aaff9e915b991ce4530faccb89b0986010000006b483045022100de562ecf4e83ba2a48430f0cbfe9e66c5d047aa64499612847e1731894fcbe9b02205dcb6e7ebd3ed5f63468caa31af35d7a6509227ab78058972d45d1f9a8aaa4bf012102556e36a4e5efc6a2e4c0dd14c81ef9d6cfbde7b062fb9b028447fa972c99741fffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101aa0d8420dccd9c67992f5498be0af1efc4a012b3d3deecf6132538bbb1c4105b234d5cb728cf1e54c46f10a89d4eb3a7ca3607b24577bab39ef883697da1eb10afccdf5b6290f05388142bb7523729eea7d2fdad0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d706a666a62377579772e706e6718632209696d6167652f706e673230311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728d8d38182063222080112196fc9f68b0a781c37ee7a44bdb607c85b0c2321b0703e1a8620188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914c9f68b0a781c37ee7a44bdb607c85b0c2321b07088acac5e7d1d000000001976a914a6e278d2550bbb14201c9b3463eee659fff89fbd88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1JG6kpsUC8Ya9KakL9vNSt9HqyrieVRBW\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1614834157,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myvqTjDz7Jo3mqvnPN5BQ5ACeffyPGzS9u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d0c162f216e4e566d6da93a28ad4e23a78bcea87\",\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#d0c162f216e4e566d6da93a28ad4e23a78bcea87\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"8a9cbccc985493fae0dbb6f086ffcbfe6e931cbc50ee5478c200b9d1bbe758c6\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"myvqTjDz7Jo3mqvnPN5BQ5ACeffyPGzS9u\",\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\": \"1614834136\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpjfjb7uyw.png\",\n \"sd_hash\": \"311cd51592acc28ad9e7026da4a4969f70d403a70d5974ab94cdaacbbe50a0a48036e3431e52134857f822a49de4196d\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thuLine truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpej_krqnp.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\": 1602862432, \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpej_krqnp.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=1602862432 --channel_id=\"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpej_krqnp.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\": 1602862432, \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001aad6f24c89f81b38c35e8bcf0aeded3ff360ef6ab8a38c4327a04369b760ec6d010000006a473044022069b670698da195fcbcf94c16d60a145c633ea83d1cb42ef2405b4fdcc28e650a022035d8648a3ee03e2c212c308a2018a5bbb8dcc8412640af2bc865f17ca9083ebb0121025d0514acddc1ed8a9f55fdb651595a9184dd00637c9cb7a9903968ae6aea2c90ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101f2d6950adda2502b543f042e4e8496b63a2bc95d8a307fd753f2435d4cdec111e0f36d3a883763fb9a1e37df849fc8277afe984e31cd3864ff9016437012b5053ddfb5e43ea03d565a1a57b2effb45b87f3c4bb50ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70656a5f6b72716e702e706e6718632209696d6167652f706e673230f71fb71a3ddd6bd2ce60c6941c2f9faf5317510bf7ea65d56286fa17066405522ba4fc4880d0982c7cfce84375bf8507120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728e0faa6fc053222080112196f86a1af441ae42e3c56d3592fbcb2e63aee63817b81bc72cb188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a91486a1af441ae42e3c56d3592fbcb2e63aee63817b88acac5e7d1d000000001976a9146f1cad0aebad9ea189bde7ed4e3b3d60780a21d888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n49pmPPUVED3aiwTfRe75yKpjXBhGCFx4n\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1602862457,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msnpXocjCvdA7rj6Pnn8v1NTxaHMXcAwJ2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dca7d8cee4b0dca9ac27d279bce24163b34d3237\",\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#dca7d8cee4b0dca9ac27d279bce24163b34d3237\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"7887c6a4ad30222bd6a68482fae36c3532e7f6720e21e202799c2c0421fac2b5\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"msnpXocjCvdA7rj6Pnn8v1NTxaHMXcAwJ2\",\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\": \"1602862432\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpej_krqnp.png\",\n \"sd_hash\": \"f71fb71a3ddd6bd2ce60c6941c2f9faf5317510bf7ea65d56286fa17066405522ba4fc4880d0982c7cfce84375bf8507\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbLine truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3827,14 +3755,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\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"timestamp\": 1614834157,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\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\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"timestamp\": 1602862457,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\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\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614834157,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"timestamp\": 1614834157,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\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\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1602862457,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"timestamp\": 1602862457,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -4167,10 +4095,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a stream claim to add channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update 8e1d6b1b4aabe90269528e6cd09ec6e67086aa27 --channel_id=\"b312a0c4eff10abe98542f99679ccddc20840daa\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\", \"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\": \"0100000002a33480554ff4f23f88b48bccca90f4d43aaff9e915b991ce4530faccb89b0986000000006b483045022100b80e42a299c759608dacd13380954e9c48326ce7e902466f41c5085c958e9b03022044f9c067d9a517ff0d4f2b88444314a3b512059b751ed99a8ff86049299b40b801210273e915853a992843ce866bb86542bbd8f6bf2a6cd7bd1b40fcc62ebdca3d1033ffffffffe911a89c845125447dc59466b95ec591cbbe88c3df07507fe7a083ba713da08a010000006a47304402202372963cea95a69e89031f098557db31dd2cf4520df7fa0d15f5199cbb366bec022011497ee50c168a9e12666514e8387d57aad75ad51d461b38c9c466cb1e711eca012102719d4eb88793886a737557b637a2aca41df4de8d659874b10a70d10330861f96ffffffff0200e1f50500000000fd2301b7076173747265616d1427aa8670e6c69ed06c8e526902e9ab4a1b6b1d8e4ce801aa0d8420dccd9c67992f5498be0af1efc4a012b337f1ca30a5844b95623ce944a8279839e5111bc041faf55de4cd6452e2ff25ea6ad84a1e3c478596408f4342829ffaa690073dfbdf024eb5b4c12c2509ad72980a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70757975307138746a180b22186170706c69636174696f6e2f6f637465742d73747265616d32303da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d6d6d76a914fdde168e6017209da83a477c5a85acfded0a69c588ac32a0d205000000001976a91433591e859ffb16562cc9c35996794dc9d28f924188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"timestamp\": 1614834157,\n \"txid\": \"86099bb8ccfa3045ce91b915e9f9af3ad4f490cacc8bb4883ff2f44f558034a3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpuyu0q8tj\",\n \"sd_hash\": \"3da9fe6b3aee199c40a6307f293f9006690cc8bbe1c30dca591e7d09f39ec7d3a3443cb526f95da4f9b94915ec511f6d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4KmeHo7zQ59rjVxxzNv1tSA7g5w4yWqyk\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1614834156,\n \"txid\": \"8aa03d71ba83a0e77f5007dfc388becb91c55eb96694c57d442551849ca811e9\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4fHJYFChC7a9V7M9BjLsnyzsMj4p821u2\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\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#8e1d6b1b4aabe90269528e6cd09ec6e67086aa27\",\n \"signing_channel\": {\n \"address\": \"mtcRw1f5eTuchnSTgvRMiBDJ97eQSeWRb3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b312a0c4eff10abe98542f99679ccddc20840daa\",\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#b312a0c4eff10abe98542f99679ccddc20840daa\",\n \"timestamp\": 1614834156,\n \"txid\": \"51756a383ab1ba913f43442a9651231fb65761698666361f3203e4a43aa15fac\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004822b2981f3e209733bab8625b24389d8c1dc9e18d6dab2eaff74977992dce4f0e884799d7eb928337595d7df1384f8851f5043e2d1532cd2a5f69a7e16797b5a\",\n \"public_key_id\": \"mzK5Y4GEhLT3bT6Xw4MDvEF2ve1BaNAtJt\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"040def12329d3b9002595f77a3bb87fd43f9c603595f0c7da3fa92582efde10d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update fe7ee643b50b724f6029f6edfe90d67b5512b3ae --channel_id=\"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\", \"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\": \"0100000002aad6f24c89f81b38c35e8bcf0aeded3ff360ef6ab8a38c4327a04369b760ec6d000000006a473044022059a3af9cb2fa8f77b777271c6b76b298d1ea8bb1c590efd1d8972b28985cbe50022063a41682e98bff3c8b478ce0c0c79940465897dd2dfcc8a420ff67204936f8030121021ef1cb2d0e5f2d4afebf3f9a2c51b78d55a2fa584070831c33a540f7900b7d27ffffffff4743215df39b581f6d75e9633df183122f89ed8db414cdd12574433530ce77cc010000006b483045022100b8886916522d73d8007f00163d4a497a3e80655d1058d884d5a1c7c2f7ea3a31022006d653c4a79ba85f5f58d6a57b3cae6fb2659495aa099b3e2fe1600a787ed20f012103907a04d6a55e4deff127af3ce813364bd35ac96c8fbf45c7dfa00aefcbc9ffeeffffffff0200e1f50500000000fd2301b7076173747265616d14aeb312557bd690feedf629604f720bb543e67efe4ce801f2d6950adda2502b543f042e4e8496b63a2bc95d1391e6159e2874bf75624f77339a61abf38b4da3237a5a52ad92aece2cefae8742c427064051fadb0dcfcc8f957b190341110ce64b8fd3f5cc874e16db11cbdc0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706b306e3078327362180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d6d6d76a914cec22985383752987fece466729c85a74f17a45588ac32a0d205000000001976a9147a143358896b6a1ffb15d9a5b24b27ba9375650088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"timestamp\": 1602862457,\n \"txid\": \"6dec60b76943a027438ca3b86aef60f33feded0acf8b5ec3381bf8894cf2d6aa\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpk0n0x2sb\",\n \"sd_hash\": \"d40576a4f0f745a868fafad794b3c5e1299cac415a911e55f6eef4395f524b63a649df4c8a75602ea1731a3c5d138b8d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mudJaL41pUBkS3VRifB26xD4YLNWDNVrau\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1602862456,\n \"txid\": \"cc77ce3035437425d1cd14b48ded892f1283f13d63e9756d1f589bf35d214347\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzNC6CMEetGVw6QDGChpUM3HfV7DpWGZ7R\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\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#fe7ee643b50b724f6029f6edfe90d67b5512b3ae\",\n \"signing_channel\": {\n \"address\": \"mofqoKUmhmPTCoudQRXgjzGSDnCyJvZAZg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\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#5dc92b3ab696844e2e043f542b50a2dd0a95d6f2\",\n \"timestamp\": 1602862456,\n \"txid\": \"3ee8f25ad7bfef1d30e3fce0b212d77b74a495ef1d7635a8be77b96ffbe8e412\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200049b4cbe0f5275e7b1c170f458af09628ba75401fd95d0205ed9de9037b396f60936d555da2bc8dd09b1804b250f32d1bd07382bd3a4aaa2700b08b137b91f1159\",\n \"public_key_id\": \"mkVrRXQGgjhBaygCP3dNpbmtm5Yohno8q2\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"c620b71698533d88efa10c80d79a30b74464214cb0d893ec5ab4ec1c37d1676e\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -4546,7 +4474,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-03-04 00:02\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1614834156,\n \"txid\": \"fa97d309280b2e779d0a4f7a0b3c5fa5586b8697d601e336e865517608e328a2\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2021-03-04 00:02\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1614834155,\n \"txid\": \"8b61dc961c8511673209bdf4f974fdfcaf4d146dac70a82321c7a1193169334a\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2020-10-16 11:34\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1602862456,\n \"txid\": \"6947372f3637caa782cdb49daf4c9cb4f06a8479152eee6691912f042d3d5358\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2020-10-16 11:34\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1602862455,\n \"txid\": \"0843754aabf3d1313d22e51476d8a81dc1f6ce75df7844529d1d16013c803d59\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -4597,12 +4525,6 @@
|
|
|
|
|
"description": "claims in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "not_channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims not in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "name",
|
|
|
|
|
"type": "str or list",
|
|
|
|
@@ -4660,7 +4582,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "include_received_tips",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "calculate the amount of tips received for claim outputs",
|
|
|
|
|
"description": "calculate the amount of tips recieved for claim outputs",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@@ -4737,18 +4659,6 @@
|
|
|
|
|
"description": "claim name",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "not_channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims not in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "is_spent",
|
|
|
|
|
"type": "bool",
|
|
|
|
@@ -4865,12 +4775,6 @@
|
|
|
|
|
"description": "claims in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "not_channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims not in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "name",
|
|
|
|
|
"type": "str or list",
|
|
|
|
@@ -4963,18 +4867,6 @@
|
|
|
|
|
"description": "claim name",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "not_channel_id",
|
|
|
|
|
"type": "str or list",
|
|
|
|
|
"description": "claims not in this channel",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "is_spent",
|
|
|
|
|
"type": "bool",
|
|
|
|
|