|
|
|
@@ -47,10 +47,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Get a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#f95ede15cbeff2da7e4a481c538501c36343077c\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#f95ede15cbeff2da7e4a481c538501c36343077c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#f95ede15cbeff2da7e4a481c538501c36343077c\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1578100350,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpykj53y2t\",\n \"download_path\": \"/tmp/tmpykj53y2t/tmpsg2mhmr_\",\n \"file_name\": \"tmpsg2mhmr_\",\n \"height\": 214,\n \"key\": \"518b647925f56fbbdadc5f15058b9196\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"017897f4a57b411ebe066cbf2f54de8e16aeb9c834feb406b1b0991fcbfff25ad85805dbf02124246436d8012302edcdf004a4479aec646070e3c9909aa22f08a482d54f00cb245398f838f4c36941981d0698e2a20a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"1b7b40081d9b1a8f60b7d5a2af031b1c04bd7edbd0675bfa1920f6351524501fa4edf6acb13db77a4ca1c9503fcaa33b\",\n \"stream_name\": \"tmpsg2mhmr_\",\n \"streaming_url\": \"http://localhost:5280/stream/d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"suggested_file_name\": \"tmpsg2mhmr_\",\n \"timestamp\": 1578100370,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#f074539771eba8eb1229e5e128825261bcdc2967\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#f074539771eba8eb1229e5e128825261bcdc2967",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#f074539771eba8eb1229e5e128825261bcdc2967\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1580597981,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp6rn9873y\",\n \"download_path\": \"/tmp/tmp6rn9873y/tmpl4cl26p7\",\n \"file_name\": \"tmpl4cl26p7\",\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -231,10 +231,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Publish a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp89vmvfej\", \"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/tmp89vmvfej",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp89vmvfej\", \"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\": \"01000000019261fc655c21c891fdb228261e71b40731b7560485fde5ae2de4462f847987a8010000006a47304402203f618cdaac1482f66527524fc0d10a86a4b3d131a2851d5b727d4d168125d54d02207132914eebf13193ea9805f058705fb357a98a791dfa1bf869ee5fb95f0e1dbc0121026e6755b2a17c5d7a261164316cbb733320b8f15af4a9a6db073bc4795ad632e8ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703839766d7666656a180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6358fe4485d55476a753e02cd1ffbba8f2fedca0c1a64dc040a337e43e780c90fa55a4585b86884b4109b3abb696e5d6d7576a914ca546f7063fc143b3913f5c2925e8f62b540d01888ace0b46217000000001976a9145e5b817ed5c75ae107c70cca3a6b6d2fbf95034e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mt4ReBJRH3QXdfyxiKyCwuFAFDgPVUPiSK\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100370,\n \"txid\": \"a88779842f46e42daee5fd850456b73107b4711e2628b2fd91c8215c65fc6192\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myxmwUKbt7Qg3yFL8Nuf6ewKy9t8Y5FPB6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"07956de3340a77144971b4464a121d2e5bd577fb\",\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#07956de3340a77144971b4464a121d2e5bd577fb\",\n \"timestamp\": null,\n \"txid\": \"9dcb4a032983ce49038d4ff24fbec0ce82942780599c3d699c8d564c968cc0df\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp89vmvfej\",\n \"sd_hash\": \"a6358fe4485d55476a753e02cd1ffbba8f2fedca0c1a64dc040a337e43e780c90fa55a4585b86884b4109b3abb696e5d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mp7sS2K2b3EZgjoFeFqzGvFvS7tfJJ4Zyb\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"9dcb4a032983ce49038d4ff24fbec0ce82942780599c3d699c8d564c968cc0df\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"9dcb4a032983ce49038d4ff24fbec0ce82942780599c3d699c8d564c968cc0df\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnien95xc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpnien95xc",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpnien95xc\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a4870e8910fbba40a425fe3bbfcfd83a04cca18afcba5411e47aa3187fb6fdb7010000006b483045022100fad3a3cf800d506cb23ed2704cbdce2a4633213288307a11fc3bc0be62157a97022079644e653de2d7afe6a18a0fb219cdea95b99c0ac59ea67f6a8fa37715b006d1012102da0be37e73f1c1d90f62e15a9ba7d64deec9d147607097977828e5ad58d12dbfffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706e69656e39357863180b22186170706c69636174696f6e2f6f637465742d73747265616d323036b56301abe26b9a8bc4991cf2b8c3b8d36fbc12a5985024716e9a1e6b98c2e4636ab9f62f0a4e7b856040a4fa3020cf6d7576a914b93f9cbac31f3ad8ab9a3a60d8aa632531d9eb5088ace0b46217000000001976a914a695bbd53d8ff0f65903adfa3e407cf1f7f6860288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1cZt4ybyfLrJq7WgBY5HLjjRKpsGhQ7Q7\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580598000,\n \"txid\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a440bafb10890e87a4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxQTWQ1UkGtPLARJtCqgThWPvWKWnuanvP\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e787f68a5eaa851941cbc456077a7261bc26650d\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"a-new-stream\",\n \"normalized_name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://a-new-stream#e787f68a5eaa851941cbc456077a7261bc26650d\",\n \"timestamp\": null,\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpnien95xc\",\n \"sd_hash\": \"36b56301abe26b9a8bc4991cf2b8c3b8d36fbc12a5985024716e9a1e6b98c2e4636ab9f62f0a4e7b856040a4fa3020cf\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mvhmqaZ2N9gYusKN16bs2H3Tco7yHpLMDp\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"7bfce2dbfa0c8cec5831dbad2e12d68e25a87d5e01c766f0c010292ccbfe6e00\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -259,10 +259,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Resolve a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f95ede15cbeff2da7e4a481c538501c36343077c\"]}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet resolve astream#f95ede15cbeff2da7e4a481c538501c36343077c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f95ede15cbeff2da7e4a481c538501c36343077c\"]}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#f95ede15cbeff2da7e4a481c538501c36343077c\": {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#f\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\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\": 1578100370,\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#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\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\": 1578100369,\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#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f074539771eba8eb1229e5e128825261bcdc2967\"]}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet resolve astream#f074539771eba8eb1229e5e128825261bcdc2967",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#f074539771eba8eb1229e5e128825261bcdc2967\"]}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#f074539771eba8eb1229e5e128825261bcdc2967\": {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -277,14 +277,14 @@
|
|
|
|
|
"name": "status",
|
|
|
|
|
"description": "Get daemon status",
|
|
|
|
|
"arguments": [],
|
|
|
|
|
"returns": "(dict) lbrynet-daemon status\n {\n 'installation_id': (str) installation id - base58,\n 'is_running': (bool),\n 'skipped_components': (list) [names of skipped components (str)],\n 'startup_status': { Does not include components which have been skipped\n 'blob_manager': (bool),\n 'blockchain_headers': (bool),\n 'database': (bool),\n 'dht': (bool),\n 'exchange_rate_manager': (bool),\n 'hash_announcer': (bool),\n 'peer_protocol_server': (bool),\n 'stream_manager': (bool),\n 'upnp': (bool),\n 'wallet': (bool),\n },\n 'connection_status': {\n 'code': (str) connection status code,\n 'message': (str) connection status message\n },\n 'blockchain_headers': {\n 'downloading_headers': (bool),\n 'download_progress': (float) 0-100.0\n },\n 'wallet': {\n 'blocks': (int) local blockchain height,\n 'blocks_behind': (int) remote_height - local_height,\n 'best_blockhash': (str) block hash of most recent block,\n 'is_encrypted': (bool),\n 'is_locked': (bool),\n 'connected_servers': (list) [\n {\n 'host': (str) server hostname,\n 'port': (int) server port,\n 'latency': (int) milliseconds\n }\n ],\n },\n 'dht': {\n 'node_id': (str) lbry dht node id - hex encoded,\n 'peers_in_routing_table': (int) the number of peers in the routing table,\n },\n 'blob_manager': {\n 'finished_blobs': (int) number of finished blobs in the blob manager,\n 'connections': {\n 'incoming_bps': {\n <source ip and tcp port>: (int) bytes per second received,\n },\n 'outgoing_bps': {\n <destination ip and tcp port>: (int) bytes per second sent,\n },\n 'total_outgoing_mps': (float) megabytes per second sent,\n 'total_incoming_mps': (float) megabytes per second received,\n 'time': (float) timestamp\n }\n },\n 'hash_announcer': {\n 'announce_queue_size': (int) number of blobs currently queued to be announced\n },\n 'stream_manager': {\n 'managed_files': (int) count of files in the stream manager,\n },\n 'upnp': {\n 'aioupnp_version': (str),\n 'redirects': {\n <TCP | UDP>: (int) external_port,\n },\n 'gateway': (str) manufacturer and model,\n 'dht_redirect_set': (bool),\n 'peer_redirect_set': (bool),\n 'external_ip': (str) external ip address,\n }\n }",
|
|
|
|
|
"returns": "(dict) lbrynet-daemon status\n {\n 'installation_id': (str) installation id - base58,\n 'is_running': (bool),\n 'skipped_components': (list) [names of skipped components (str)],\n 'startup_status': { Does not include components which have been skipped\n 'blob_manager': (bool),\n 'blockchain_headers': (bool),\n 'database': (bool),\n 'dht': (bool),\n 'exchange_rate_manager': (bool),\n 'hash_announcer': (bool),\n 'peer_protocol_server': (bool),\n 'stream_manager': (bool),\n 'upnp': (bool),\n 'wallet': (bool),\n },\n 'connection_status': {\n 'code': (str) connection status code,\n 'message': (str) connection status message\n },\n 'blockchain_headers': {\n 'downloading_headers': (bool),\n 'download_progress': (float) 0-100.0\n },\n 'wallet': {\n 'connected': (str) host and port of the connected spv server,\n 'blocks': (int) local blockchain height,\n 'blocks_behind': (int) remote_height - local_height,\n 'best_blockhash': (str) block hash of most recent block,\n 'is_encrypted': (bool),\n 'is_locked': (bool),\n 'connected_servers': (list) [\n {\n 'host': (str) server hostname,\n 'port': (int) server port,\n 'latency': (int) milliseconds\n }\n ],\n },\n 'dht': {\n 'node_id': (str) lbry dht node id - hex encoded,\n 'peers_in_routing_table': (int) the number of peers in the routing table,\n },\n 'blob_manager': {\n 'finished_blobs': (int) number of finished blobs in the blob manager,\n 'connections': {\n 'incoming_bps': {\n <source ip and tcp port>: (int) bytes per second received,\n },\n 'outgoing_bps': {\n <destination ip and tcp port>: (int) bytes per second sent,\n },\n 'total_outgoing_mps': (float) megabytes per second sent,\n 'total_incoming_mps': (float) megabytes per second received,\n 'time': (float) timestamp\n }\n },\n 'hash_announcer': {\n 'announce_queue_size': (int) number of blobs currently queued to be announced\n },\n 'stream_manager': {\n 'managed_files': (int) count of files in the stream manager,\n },\n 'upnp': {\n 'aioupnp_version': (str),\n 'redirects': {\n <TCP | UDP>: (int) external_port,\n },\n 'gateway': (str) manufacturer and model,\n 'dht_redirect_set': (bool),\n 'peer_redirect_set': (bool),\n 'external_ip': (str) external ip address,\n }\n }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Get status",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet status",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"7L2Eqr9iYhoqYwYJFuXhjPRZUSehma22CM34RQcWzMA8Xp5iqopX6Su7n375uWN6TL\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"f25a215e89357dca5e22090632731ffe44977f01de951b25da4bf7f324a5d0dc\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.005787739999504993,\n \"port\": 50002\n }\n ]\n }\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"63NzS2chfMkok32ayYFTunJvUcZXp6Ma89TmaUWYwknihwWdSbJQnptJMFmBCa4YHa\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"850169421246c958f842f4df5b6d39379583a2fbcd58ab7fd177061f04f3d23f\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1:50002\",\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"localhost\",\n \"latency\": 0.004415172035805881,\n \"port\": 50002\n }\n ]\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -299,14 +299,14 @@
|
|
|
|
|
"name": "version",
|
|
|
|
|
"description": "Get lbrynet API server version information",
|
|
|
|
|
"arguments": [],
|
|
|
|
|
"returns": "(dict) Dictionary of lbry version information\n {\n 'processor': (str) processor type,\n 'python_version': (str) python version,\n 'platform': (str) platform string,\n 'os_release': (str) os release string,\n 'os_system': (str) os name,\n 'lbrynet_version': (str) lbrynet version,\n 'torba_version': (str) torba version,\n 'build': (str) \"dev\" | \"qa\" | \"rc\" | \"release\",\n }",
|
|
|
|
|
"returns": "(dict) Dictionary of lbry version information\n {\n 'processor': (str) processor type,\n 'python_version': (str) python version,\n 'platform': (str) platform string,\n 'os_release': (str) os release string,\n 'os_system': (str) os name,\n 'version': (str) lbrynet version,\n 'build': (str) \"dev\" | \"qa\" | \"rc\" | \"release\",\n }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Get version",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet version",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"ubuntu:GNOME\",\n \"distro\": {\n \"codename\": \"bionic\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"18.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"18\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.51.2\",\n \"os_release\": \"4.15.0-72-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.15.0-72-generic-x86_64-with-debian-buster-sid\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.3\",\n \"torba_version\": \"0.5.7\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.56.0\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.5\",\n \"version\": \"0.56.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -360,10 +360,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Add an account from seed",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"crisp result shop endorse polar duck figure refuse forest cherry patient adult\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\", \"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\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1578100337.6263494,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdnKS42LM2cpNdVGZzcBdnUDYgPE1FnJMQeYHfBeNem3Mvig22kHHcp7n4V6GLPu3NN2AB5B4jVW3so9pz8PVesPBhqGtyNW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XFMDwfzwS2UVCWnW9wNYMmpKxuGJg46kF8o4HaTxqFfE6qjCCs9dqqVKwrGHFuRiZorsiJeL6diaQNGjVREQzwHDDmDRcHq\",\n \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"author once save hire guard kingdom divide achieve damp river arrow bulb\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\", \"single_key\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.4350507,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -401,9 +401,9 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Get balance for specific account by id",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"2.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -438,7 +438,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account create \"generated account\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1578100337.3588758,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdnKS42LM2cpNdVGZzcBdnUDYgPE1FnJMQeYHfBeNem3Mvig22kHHcp7n4V6GLPu3NN2AB5B4jVW3so9pz8PVesPBhqGtyNW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XFMDwfzwS2UVCWnW9wNYMmpKxuGJg46kF8o4HaTxqFfE6qjCCs9dqqVKwrGHFuRiZorsiJeL6diaQNGjVREQzwHDDmDRcHq\",\n \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.2563741,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -493,24 +493,24 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer 2 LBC from default account to specific account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001fae81ffd71edd1fffa0ced713f6805cb3509a4fc3ab6dab9727e8bdc0a008b2c010000006b483045022100db45099bd6844ec2fbe177f52aae68691d62a2214594984434ceb709cffa8bd402201475e5b299669f675f66f9c74747ca89f69bf466a2bcb72ccb4e9e3a40ec269e012102e21b09fddf104abd95a09b5e2698bcb9b6f6309b8c6cbad7a03f492ef50501bcffffffff0200c2eb0b000000001976a914b083d5ba4e58ff5203a710510e14236f6cee550f88ac90d7ae2f000000001976a914699d461ab6d545bd8fa68aaad81987ced16f248488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgnRjwhDHYUFX1KYeDak6rsojzUBFQVCSb\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100368,\n \"txid\": \"2c8b000adc8b7e72b9dab63afca40935cb05683f71ed0cfaffd1ed71fd1fe8fa\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwcH9s47UjtP7Nc1evDDS81XnKXB7vsiz8\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mq9PemsqE69wHyzyTKNB7SQeaFzyr4ASHb\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010324f6295b8b36ce0798e5ab1afe607a007d66116bbe02dcec16d5b1bde85397000000006a47304402200830bdc2c6d7eb92114d2435feed7171ac2a5ace39e37f21ce2e747d6cf9ffad022079f2058362f8f330f09b60b49a9d5c3f327d5c07f39f9b86dc834dbf9dd1ec040121031f35ad651fbe4aa3909d202a83faf0ecf7fedbf5cdd812e5a5531d0d1745af78ffffffff0200c2eb0b000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac90d7ae2f000000001976a914d18214c4299e6cb843e03f5395ea9e714e4fe85888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhhKub525Gx7XEn8im3BFv4DA8uwmX1jiG\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597998,\n \"txid\": \"9753e8bdb1d516ecdc02be6b11667d007a60fe1aabe59807ce368b5b29f62403\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzcjMLjnbZKSQoEPS4jgRRYKkbjKhW8HVT\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Spread LBC between multiple addresses",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"from_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\" --from_account=\"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"from_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011a6fb5492c2038450eb0e116708eaf837789ef6a80eba9b91678429e391bb5fa000000006a473044022047a73955537de3e5f1c3db9a44d9736bac0b8cdadc17cf6f9c38834e85a8df30022071ab067746a267ab9e013ce3935af56437e91f45c3b0022cab0561c3238feecf01210340bcbba8e0a028d0e4cd0658b63cd00303ff71fec8ba8f8965fe3e7cfa495466ffffffff03c0687804000000001976a9142bace3499514b0539b48e093c565787eefb7264f88acc0687804000000001976a9142bace3499514b0539b48e093c565787eefb7264f88ac6cb9fa02000000001976a9142bace3499514b0539b48e093c565787eefb7264f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwcH9s47UjtP7Nc1evDDS81XnKXB7vsiz8\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1578100369,\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --from_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012909d068bfe8fc0e7d279b91365f023daacf9b452d880ef6b07e9497316e3d4a000000006b483045022100b78399232f8150692bbf6e6d6dac67db9500a21eb22fd464cddfc57dfab008d1022078a98eeccfd7bc55349eeb1db694fb719883ce6f3f9376ea5aee6d73ec70ab0a012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7ffffffff03c0687804000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588acc0687804000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac6cb9fa02000000001976a9145a976c3278e9d337bbeee6a665b7f6810df25cf588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer all LBC to a specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003b50ac575d2d21dc85e8e93663320b594a0f05df65ea3b7ac750d8401d473e1f6000000006b483045022100d75863f53112e8019009a3170358ebcfae2f090ef66fde33603c34333052bd2b02204a2f2bae69756e00bd9d6b2162be63d634d27c90c5032e2f2c068569e6af1d7c012103db8496bdae55127421bd4c603a27a48f3e124634f0a78feba79e9713d8751d51ffffffffb50ac575d2d21dc85e8e93663320b594a0f05df65ea3b7ac750d8401d473e1f6010000006b483045022100e964a231ff8930c691e638188f31c861ea7e0c9de314e1178d745343141204b7022077aa8545ad0d6b078605bcc41b01377a39e6c32df40e27978ff9a3621e33b0da012103db8496bdae55127421bd4c603a27a48f3e124634f0a78feba79e9713d8751d51ffffffffb50ac575d2d21dc85e8e93663320b594a0f05df65ea3b7ac750d8401d473e1f6020000006b483045022100dbae65a07a75e0e71dd1a6ba11850dcd98eb868c603fba6861a573e2048a89a90220314e2bd84be73cd43797f55180b059511e5385d596b3b21faed2dd96878dfa3b012103db8496bdae55127421bd4c603a27a48f3e124634f0a78feba79e9713d8751d51ffffffff015027eb0b000000001976a9146e03ff57f1683632414efa4dc9f8618051d17b2988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1578100369,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100369,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1578100369,\n \"txid\": \"f6e173d401840d75acb7a35ef65df0a094b5203366938e5ec81dd2d275c50ab5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqYfQuGoVMqbcsjHk1WpmewZ9xKqWjyQQE\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"5b1f6b704c3f42fef8b00ff1f18a74c04d321dd52430740df2cc46ca6756d329\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"5b1f6b704c3f42fef8b00ff1f18a74c04d321dd52430740df2cc46ca6756d329\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003f671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f000000006b483045022100efe0060436609f05d837ee44194e4d2528ecaa1324148cafc898cc099a01b746022040d7558357f2c221a76e709fb0df5ea136835ff5af015edb12254ff65c0f480e012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7fffffffff671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f010000006b483045022100ba2787556f85433ffffc683b639cc517dde4bc028a927d00b568250d18ad75c7022060edacba7268766d083096884d796d432b5a105289ec32b1af63b42e2f46335f012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7fffffffff671288c248dd7be960b4baa01aff2443f4c30a99be6fb230d6dd40b34026b7f020000006a47304402202f31b0513b8874f3940a983e7ba33491e7e11f221a481cc28f3a6a20f970afec0220096a4ba3a4c860fd9a354ab9c2eb9e036e8ffcc38d99024d06ca26e1c75f353d012102578e1b757ef7514188e43cdbb318469f098c777d34c6ebeb6d3d75172b9e72f7ffffffff015027eb0b000000001976a9146c759a0f660a0313b33563fd218c9b92ffe89ce288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1580597999,\n \"txid\": \"7f6b02340bd46d0d23fbe69ba9304c3f44f2af01aa4b0b96bed78d248c2871f6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -568,7 +568,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"msR2Dh8sqsjhHbFRWydSVoKrZrUvF5V5ny\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #msR2Dh8sqsjhHbFRWydSVoKrZrUvF5V5ny\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YHvi5JKNRX6PikdKUPF4E3AUP2FRoR3NVPhZbEbYaa4RhvKYLotvyoGuBVwJq5faqL7n9rGxo2adKQscsfFDxX6N8LCA4Gi\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mvRSjqD18zGBsCKyXJYBWgEhx9Rfx1p23H\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mvRSjqD18zGBsCKyXJYBWgEhx9Rfx1p23H\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WsQSShFxXCjjWS3nEpCES2EeXvD4WG74cZHsqtERPse7DvGEhTdxVgkQRfYhPLjFUTSmMDCAtinsfeV2XsnpkrJsESu7CA1\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -613,10 +613,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Remove an account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}).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\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1578100337.3588758,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdnKS42LM2cpNdVGZzcBdnUDYgPE1FnJMQeYHfBeNem3Mvig22kHHcp7n4V6GLPu3NN2AB5B4jVW3so9pz8PVesPBhqGtyNW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XFMDwfzwS2UVCWnW9wNYMmpKxuGJg46kF8o4HaTxqFfE6qjCCs9dqqVKwrGHFuRiZorsiJeL6diaQNGjVREQzwHDDmDRcHq\",\n \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.2563741,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -703,10 +703,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Modify maximum number of times a change address can be reused",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\", \"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\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1578100337.763172,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdnKS42LM2cpNdVGZzcBdnUDYgPE1FnJMQeYHfBeNem3Mvig22kHHcp7n4V6GLPu3NN2AB5B4jVW3so9pz8PVesPBhqGtyNW\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XFMDwfzwS2UVCWnW9wNYMmpKxuGJg46kF8o4HaTxqFfE6qjCCs9dqqVKwrGHFuRiZorsiJeL6diaQNGjVREQzwHDDmDRcHq\",\n \"seed\": \"crisp result shop endorse polar duck figure refuse forest cherry patient adult\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\", \"default\": false, \"change_max_uses\": 10}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 10\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1580597967.4926648,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP6y8EctfZ6j36aY9fZ1iG79MMqEAXaAyDS6iYPpKt8VxhwpB4h561CpCN7odM31JgzQChtuQm8Pk62y5644tpy7Qc14JZE\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yr8m1tHV4xkqc86UJzjvHZhvdssXaoNZohgsLwDQWNkN8rFJtfksxw1xWso3GiUnq91Rz8vqVbQLq9BSQreRYL1mratg1GJ\",\n \"seed\": \"author once save hire guard kingdom divide achieve damp river arrow bulb\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -742,9 +742,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Check if address is mine",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqsQmxDUKHRr4CXwZ3s3GryGvNqKaikYap\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mqsQmxDUKHRr4CXwZ3s3GryGvNqKaikYap",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqsQmxDUKHRr4CXwZ3s3GryGvNqKaikYap\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -791,14 +791,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mhRoAy2fFzHoYrDc7ECWfyPoQM87cjtmAC\",\n \"pubkey\": \"tpubDA9GDAntyJu4RSTwRGyaq6iWXT9v5KQeVqwi91LMqr2CgNsZY5KBQvfNUrJHceSzHsjAyezcDo35QnRghr8YJ7zTs4iTtYhrNxDaEkQxwnx\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mi36cwEEEMAmDj9DWJC9r8o38VtyaciSq9\",\n \"pubkey\": \"tpubDA9GDAntyJu51jEeFwEjqyFk1PYc8uAEBG2LWpwVdRhYM7J9WzRkwn93J6xL8qYr9kQmYPs6qyKavdbqD6NpagAeKM6WXJthpfwjwBbfg3h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"miRscPmNBiyhHSJhZNzeGypv7Zt2cDKMgo\",\n \"pubkey\": \"tpubDA9GDAntyJu4PnisuVk9ZUSrWEGAYF3hVhtdZD9ZrwfAV4c8E2xWGQjb2am3JBaXVsDAFeXtzEu33bkcSbHB8sHvjuHLz2y3edwFgisyG7X\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"midCaeVPj2m75g4RYmzjpH3cSotrCAEnDT\",\n \"pubkey\": \"tpubDA9GDAntyJu4LVt2DfgdFTREquiXLmnRnDJEWgLEcY5G3KSZA3Ntd48G2B8LaquNfsdAECZFn75V65dnhiDhUsuY5SVHMwgAnBU5pMC5oNh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"pubkey\": \"tpubDA9GDAntyJu4UpXp4njwPJnhkSd9NEXigbcTv6QWY5nEeACFxk5LuCDwVMxvxMBYvcscSqcpTriChL8JFu5HapMoBWUDbd33cs2or5eRcEt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mjbTR1JdEBHVuo2Au9pNkJQihEKTpGeae8\",\n \"pubkey\": \"tpubDA9GDAntyJu4JbSJCE9uwH7FaschXG9yxRAwRpZJig7txtfNPp44UBs1tfBKrRC4DG8VurobWAFNWcvsff6cKnkbJn6g35Gu553FewtUh5s\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkSKqHK2es9rVEtWWpdNDQrpGYMeNXcHRn\",\n \"pubkey\": \"tpubDA9GDAntyJu4K93MC1bJq1Fyq8u7fEMsWXGqWVFt78of92Yu98KaH6xHrZWjPYebA7Rw4GiJRQJuUsjR7yMHU6CsoR75Kpgx84CT5rAVBwh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkgrmBXBs3fvHiorrfq3RhJuEKfJdWo3Zo\",\n \"pubkey\": \"tpubDA9GDAntyJu4heotibNLewZPRaroUbgrU67TctTtHuguH51N4um2m9RxdgjKe12zW9zVCSuL24FNakgqk21YwkLsoc87jRHFr7zyRLct3A6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkzZjeBq2DyBDGAU3WC4DtgHJ9cWt3R3am\",\n \"pubkey\": \"tpubDA9GDAntyJu4iNuKNPPjGrUuGtiDJiP2tfTUVpozKzU4nQXqPkdNSjV6LzetyGqQSeBiPRfziYj6NiYs4BTto6gtoJjRLmxpyHrc2vQ8MqE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mm9wuEStZy1YncckjJ7ZR8XFrtjZ8xSuyv\",\n \"pubkey\": \"tpubDA9GDAntyJu4ExVTPY2WDrNE28ZtdUs2j6xbQGSyv9vay45ucvdU8Bd3R9RcGz6cagojV8e2GoaBtJNnX9xHLTZEGUnJ5iSv2knq3C5QFLR\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpFmiaUgLTV9wn2g5GCfw7mjHbMCrzRxWr\",\n \"pubkey\": \"tpubDA9GDAntyJu4fLfrnYLLFenQNjpc7V49voZyZw3Yj8K5ccfHsvwAxs6RXxqM8ETHLcKiZaEa4W5p9ovZgwanx7EmpZSTu9ZgSsTdZZZ7g7Q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpVpnkVofTBHjBPqd4rF3SJZB8ybipqx2m\",\n \"pubkey\": \"tpubDA9GDAntyJu4Vkbkrsdd21MX4pwdkJhXirzy3QwaEi8BEBfmLdHsaimAKVDhdJbX2kFW2tyXBpJysuT58ZPQsfwb8jB4SHb2JNY9m5qCjxW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpoqPCBm3NbKrzd7PSgfoBJ9bPES1spRUS\",\n \"pubkey\": \"tpubDA9GDAntyJu4Xuj1v5SSgUFtZmbugFmjwUqn784e77f5Y8XTgcKN3FzFXqwvUPGjFMf3nVm1GnWQKbXWotAWemNR5zmxq78DGuo5Qe2XFJ1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mqoi2fGDiramGu6AZCqdtGqwnUVn1cJAzT\",\n \"pubkey\": \"tpubDA9GDAntyJu4tJeJtyFz9JCcE4jjgfstYa4pTjryTrpVCmR9A1uEnDaBLudszsjQpmmWF5j7n8XAsLS5vF2AQZgtPgeutXVry1W6VvQwjWT\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mtsgHJjDhNxW4ndpwLFbDVrCPTRkPWZrUz\",\n \"pubkey\": \"tpubDA9GDAntyJu4No4Vi6syGUn1X1iMJg87HokQE4UnLMome3X9P8t6GqDWnFLv8TuuR8rFXE4wBJXoBVwPJQrY6nCT6BQwBhU95od6qaY2EVo\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"muXjWrfZvZ2BFzH2Hr9bL3RjBXFPhw43yd\",\n \"pubkey\": \"tpubDA9GDAntyJu5555z1VeGnNsG15XCAFfau3Qf3gAzEB8nLtLY9iN2hh4F6h17tGucn9SmHSbkJiVzQWvJZ5cZdkFUvTndk7yzfjvuzaT5Hoo\",\n \"Line truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mgtVcoHgW1zZYTTeSJ5F5KeZywvaKzKm1z\",\n \"pubkey\": \"tpubDA9GDAntyJu4vumZctqGnrpSy2gAcyHQWffdLopNNfCwsHQPEXsmWSXvCiTCEoUzE5Kp2wDmrmWddUPNgNHjEMkRGNUtM31ssw1V88uiDKD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhPAUzkdz7nx6LeLuH1HFEZKykSgiFqSAM\",\n \"pubkey\": \"tpubDA9GDAntyJu4UfqiUJkzBPzDMuqWeDdU9ULqUsyt25Hy4DDEmrVDmZ5taiYUep9x9aJmcF7RA7QCncfwJ3xuG7FEd1zXwnb8RxZMVr28X2z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhYyM3aJB1ksLAsxfsNYH2JpTqVqxeJx5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ry7xgkaySM36xdwZkMxGnq7bqpoZao9sJ1gCXRQPcuRdBaaST1amyQcBZv4RZa6oUFEqspDRccstMHRSfsmxroqWHq3P583\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mixcY4Ydxft5rE7jotFX5u9RoZtM3dQiD8\",\n \"pubkey\": \"tpubDA9GDAntyJu4LgszDXT8esYngeSp5doBjANzYFSVbQeEzG7dH9azbvgio1essvBEmFAk74quTWehzVCgbUUKzbbp45wAhJbRfe1oyJqPSM2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkSvvAr2ezbbkPLxPVc6ujYdmVUfBHgiWD\",\n \"pubkey\": \"tpubDA9GDAntyJu4HgiAHB6s8kudF5PUzDqywSuGMdZLR3m8Xpuhod9u5137yUqhW7djCY7A7niVZqkiBUGBvfk9LWpURZg78xwipVrdy5T5g7T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkiYZk8hc8eNanmSuxfmvxnb4628CXdamb\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZSbDn6n69Z3LkG9qV5EsAhvNiZJipZmY6VMtjeZV4FayA3PpWVKdp8m1uw7psW6eRx7Ay2S2tZd3DPJXhXPKiAEd2YXTGik\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkn2JsQhEu2wdtNavG7fTayw4gGoBFsWj2\",\n \"pubkey\": \"tpubDA9GDAntyJu4WcC65CEy4GDwqcvCzisVpdkXd3zFDWCk5kNAg69Xsy2w9oD7zC5gYCTJB7gUQVrjQJz723A5WTYbU1fVewFrLkWhvPA1Pnj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmoE2PmxisYJd2j7Kfn9mJvCc7toYC1Rzs\",\n \"pubkey\": \"tpubDA9GDAntyJu4n5Grk1qCoHFqQma129pU35TuuU6Ayv8VbCivfhFQ1ZPef3cvtJsggTNBcGe8xte2a3rdALk5DajUya4Ma821KdS42cALe4a\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmvCELZ3LfrAJqLCXnBU4MnGpSAGtUUVF2\",\n \"pubkey\": \"tpubDA9GDAntyJu4vETToav9Su4b7FuXrqCFKSbQb1CxjapKti6nA1Vromr6GBKhKCDJwnhu5a7sW3MpfMxgiSRXex4bhfgtRU386gHBmHWfWp7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mnfb8TnZ2vkacdzPasTuCXHHhXaNT4xkud\",\n \"pubkey\": \"tpubDA9GDAntyJu4P2ks33hD6D4UTeja2sn7zBG94VSvSxCcLnfRXgrnsARTyD7QsxG3Ei6QGvNMobHCAZ7kqcGS1Wsepuboi1TEib6yBcB2Fdc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"pubkey\": \"tpubDA9GDAntyJu4GnM4YBBNjPMrgWuNodyJfej3rDgczS7zdGhrzSG8sEWxnNNYaZedrJdSx3KREJBM3C4Ke87U1mzTKwxBYxXKcULmGHwe5Jy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mpiewxhv9gRwN8qPMke2D9PX4CTNTAJBDB\",\n \"pubkey\": \"tpubDA9GDAntyJu4ETtTrzPhVKkhzdEtfCHEu2xqNUpQdTUZb3GDHzTVJ9uJTHS8K61Ewiy8suGFFCSDtW2gCDNyuDdN6h2azyirwymToRwLtvC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqGGaEenrT1EUa2UuvnHa5X8JoriN9UsAu\",\n \"pubkey\": \"tpubDA9GDAntyJu4SbUWxME4dWXdEJPdExe4CWdvWtSX8nJYmHHr73gidaS2iRczEA5eFrpQMiYW5aR1nvM4n8yeKaUmAk6bNHqUJKJTe45Hct6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqiaipJC9mpiEc1zcZgpeAh2kxwqKM5VuK\",\n \"pubkey\": \"tpubDA9GDAntyJu4LLzArY7p4W5Psgc3Q54kN729wC4gPCdb8SCxbRZb1ydguBwQ3cV6tMMJ3nszVHMN4hetZKGJF3jjmuYRVwiU5fUwzjWrBZK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mrx4RoCq46rBBHFYkgFS6Hw3iPXMHDu9nE\",\n \"pubkey\": \"tpubDA9GDAntyJu4t1vSmYZPkdwrJ8NfWtC7NyMcNgXmyjxLMfhsCBjB6EUuCdUss3yNWuv4u7YapA7qWyrafTgUEyiwzT2co2sNiHkhSUEypNt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"msmn1kKEN6HmodNmKnLzLBtPjisDA5phmo\",\n \"pubkey\": \"tpubDA9GDAntyJu4EmBEGV1icYTZqtPyrctZvQiCqsEgBQmfxU7EJCE7ABR6qUyFwtNbLZUtQf59HXdukcfAPg93Dv4tUMxDBMHfByZdkaVw13q\",\n \"Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List addresses in specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mhRoAy2fFzHoYrDc7ECWfyPoQM87cjtmAC\",\n \"pubkey\": \"tpubDA9GDAntyJu4RSTwRGyaq6iWXT9v5KQeVqwi91LMqr2CgNsZY5KBQvfNUrJHceSzHsjAyezcDo35QnRghr8YJ7zTs4iTtYhrNxDaEkQxwnx\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mi36cwEEEMAmDj9DWJC9r8o38VtyaciSq9\",\n \"pubkey\": \"tpubDA9GDAntyJu51jEeFwEjqyFk1PYc8uAEBG2LWpwVdRhYM7J9WzRkwn93J6xL8qYr9kQmYPs6qyKavdbqD6NpagAeKM6WXJthpfwjwBbfg3h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"miRscPmNBiyhHSJhZNzeGypv7Zt2cDKMgo\",\n \"pubkey\": \"tpubDA9GDAntyJu4PnisuVk9ZUSrWEGAYF3hVhtdZD9ZrwfAV4c8E2xWGQjb2am3JBaXVsDAFeXtzEu33bkcSbHB8sHvjuHLz2y3edwFgisyG7X\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"midCaeVPj2m75g4RYmzjpH3cSotrCAEnDT\",\n \"pubkey\": \"tpubDA9GDAntyJu4LVt2DfgdFTREquiXLmnRnDJEWgLEcY5G3KSZA3Ntd48G2B8LaquNfsdAECZFn75V65dnhiDhUsuY5SVHMwgAnBU5pMC5oNh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mjVtTm4kGu9fYZBRRtSfL9busdQKo6Ho6j\",\n \"pubkey\": \"tpubDA9GDAntyJu4UpXp4njwPJnhkSd9NEXigbcTv6QWY5nEeACFxk5LuCDwVMxvxMBYvcscSqcpTriChL8JFu5HapMoBWUDbd33cs2or5eRcEt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mjbTR1JdEBHVuo2Au9pNkJQihEKTpGeae8\",\n \"pubkey\": \"tpubDA9GDAntyJu4JbSJCE9uwH7FaschXG9yxRAwRpZJig7txtfNPp44UBs1tfBKrRC4DG8VurobWAFNWcvsff6cKnkbJn6g35Gu553FewtUh5s\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkSKqHK2es9rVEtWWpdNDQrpGYMeNXcHRn\",\n \"pubkey\": \"tpubDA9GDAntyJu4K93MC1bJq1Fyq8u7fEMsWXGqWVFt78of92Yu98KaH6xHrZWjPYebA7Rw4GiJRQJuUsjR7yMHU6CsoR75Kpgx84CT5rAVBwh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkgrmBXBs3fvHiorrfq3RhJuEKfJdWo3Zo\",\n \"pubkey\": \"tpubDA9GDAntyJu4heotibNLewZPRaroUbgrU67TctTtHuguH51N4um2m9RxdgjKe12zW9zVCSuL24FNakgqk21YwkLsoc87jRHFr7zyRLct3A6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mkzZjeBq2DyBDGAU3WC4DtgHJ9cWt3R3am\",\n \"pubkey\": \"tpubDA9GDAntyJu4iNuKNPPjGrUuGtiDJiP2tfTUVpozKzU4nQXqPkdNSjV6LzetyGqQSeBiPRfziYj6NiYs4BTto6gtoJjRLmxpyHrc2vQ8MqE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mm9wuEStZy1YncckjJ7ZR8XFrtjZ8xSuyv\",\n \"pubkey\": \"tpubDA9GDAntyJu4ExVTPY2WDrNE28ZtdUs2j6xbQGSyv9vay45ucvdU8Bd3R9RcGz6cagojV8e2GoaBtJNnX9xHLTZEGUnJ5iSv2knq3C5QFLR\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpFmiaUgLTV9wn2g5GCfw7mjHbMCrzRxWr\",\n \"pubkey\": \"tpubDA9GDAntyJu4fLfrnYLLFenQNjpc7V49voZyZw3Yj8K5ccfHsvwAxs6RXxqM8ETHLcKiZaEa4W5p9ovZgwanx7EmpZSTu9ZgSsTdZZZ7g7Q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpVpnkVofTBHjBPqd4rF3SJZB8ybipqx2m\",\n \"pubkey\": \"tpubDA9GDAntyJu4Vkbkrsdd21MX4pwdkJhXirzy3QwaEi8BEBfmLdHsaimAKVDhdJbX2kFW2tyXBpJysuT58ZPQsfwb8jB4SHb2JNY9m5qCjxW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mpoqPCBm3NbKrzd7PSgfoBJ9bPES1spRUS\",\n \"pubkey\": \"tpubDA9GDAntyJu4Xuj1v5SSgUFtZmbugFmjwUqn784e77f5Y8XTgcKN3FzFXqwvUPGjFMf3nVm1GnWQKbXWotAWemNR5zmxq78DGuo5Qe2XFJ1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mqoi2fGDiramGu6AZCqdtGqwnUVn1cJAzT\",\n \"pubkey\": \"tpubDA9GDAntyJu4tJeJtyFz9JCcE4jjgfstYa4pTjryTrpVCmR9A1uEnDaBLudszsjQpmmWF5j7n8XAsLS5vF2AQZgtPgeutXVry1W6VvQwjWT\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"mtsgHJjDhNxW4ndpwLFbDVrCPTRkPWZrUz\",\n \"pubkey\": \"tpubDA9GDAntyJu4No4Vi6syGUn1X1iMJg87HokQE4UnLMome3X9P8t6GqDWnFLv8TuuR8rFXE4wBJXoBVwPJQrY6nCT6BQwBhU95od6qaY2EVo\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnVHmjfWZm6m13QiZTVRtpyo8NSM5vdaSE\",\n \"address\": \"muXjWrfZvZ2BFzH2Hr9bL3RjBXFPhw43yd\",\n \"pubkey\": \"tpubDA9GDAntyJu5555z1VeGnNsG15XCAFfau3Qf3gAzEB8nLtLY9iN2hh4F6h17tGucn9SmHSbkJiVzQWvJZ5cZdkFUvTndk7yzfjvuzaT5Hoo\",\n \"Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mgtVcoHgW1zZYTTeSJ5F5KeZywvaKzKm1z\",\n \"pubkey\": \"tpubDA9GDAntyJu4vumZctqGnrpSy2gAcyHQWffdLopNNfCwsHQPEXsmWSXvCiTCEoUzE5Kp2wDmrmWddUPNgNHjEMkRGNUtM31ssw1V88uiDKD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhPAUzkdz7nx6LeLuH1HFEZKykSgiFqSAM\",\n \"pubkey\": \"tpubDA9GDAntyJu4UfqiUJkzBPzDMuqWeDdU9ULqUsyt25Hy4DDEmrVDmZ5taiYUep9x9aJmcF7RA7QCncfwJ3xuG7FEd1zXwnb8RxZMVr28X2z\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mhYyM3aJB1ksLAsxfsNYH2JpTqVqxeJx5e\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ry7xgkaySM36xdwZkMxGnq7bqpoZao9sJ1gCXRQPcuRdBaaST1amyQcBZv4RZa6oUFEqspDRccstMHRSfsmxroqWHq3P583\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mixcY4Ydxft5rE7jotFX5u9RoZtM3dQiD8\",\n \"pubkey\": \"tpubDA9GDAntyJu4LgszDXT8esYngeSp5doBjANzYFSVbQeEzG7dH9azbvgio1essvBEmFAk74quTWehzVCgbUUKzbbp45wAhJbRfe1oyJqPSM2\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkSvvAr2ezbbkPLxPVc6ujYdmVUfBHgiWD\",\n \"pubkey\": \"tpubDA9GDAntyJu4HgiAHB6s8kudF5PUzDqywSuGMdZLR3m8Xpuhod9u5137yUqhW7djCY7A7niVZqkiBUGBvfk9LWpURZg78xwipVrdy5T5g7T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkiYZk8hc8eNanmSuxfmvxnb4628CXdamb\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZSbDn6n69Z3LkG9qV5EsAhvNiZJipZmY6VMtjeZV4FayA3PpWVKdp8m1uw7psW6eRx7Ay2S2tZd3DPJXhXPKiAEd2YXTGik\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mkn2JsQhEu2wdtNavG7fTayw4gGoBFsWj2\",\n \"pubkey\": \"tpubDA9GDAntyJu4WcC65CEy4GDwqcvCzisVpdkXd3zFDWCk5kNAg69Xsy2w9oD7zC5gYCTJB7gUQVrjQJz723A5WTYbU1fVewFrLkWhvPA1Pnj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmoE2PmxisYJd2j7Kfn9mJvCc7toYC1Rzs\",\n \"pubkey\": \"tpubDA9GDAntyJu4n5Grk1qCoHFqQma129pU35TuuU6Ayv8VbCivfhFQ1ZPef3cvtJsggTNBcGe8xte2a3rdALk5DajUya4Ma821KdS42cALe4a\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mmvCELZ3LfrAJqLCXnBU4MnGpSAGtUUVF2\",\n \"pubkey\": \"tpubDA9GDAntyJu4vETToav9Su4b7FuXrqCFKSbQb1CxjapKti6nA1Vromr6GBKhKCDJwnhu5a7sW3MpfMxgiSRXex4bhfgtRU386gHBmHWfWp7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mnfb8TnZ2vkacdzPasTuCXHHhXaNT4xkud\",\n \"pubkey\": \"tpubDA9GDAntyJu4P2ks33hD6D4UTeja2sn7zBG94VSvSxCcLnfRXgrnsARTyD7QsxG3Ei6QGvNMobHCAZ7kqcGS1Wsepuboi1TEib6yBcB2Fdc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"momxWMAugFELuTLsfV7vtEpvhznkS4iv2R\",\n \"pubkey\": \"tpubDA9GDAntyJu4GnM4YBBNjPMrgWuNodyJfej3rDgczS7zdGhrzSG8sEWxnNNYaZedrJdSx3KREJBM3C4Ke87U1mzTKwxBYxXKcULmGHwe5Jy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mpiewxhv9gRwN8qPMke2D9PX4CTNTAJBDB\",\n \"pubkey\": \"tpubDA9GDAntyJu4ETtTrzPhVKkhzdEtfCHEu2xqNUpQdTUZb3GDHzTVJ9uJTHS8K61Ewiy8suGFFCSDtW2gCDNyuDdN6h2azyirwymToRwLtvC\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqGGaEenrT1EUa2UuvnHa5X8JoriN9UsAu\",\n \"pubkey\": \"tpubDA9GDAntyJu4SbUWxME4dWXdEJPdExe4CWdvWtSX8nJYmHHr73gidaS2iRczEA5eFrpQMiYW5aR1nvM4n8yeKaUmAk6bNHqUJKJTe45Hct6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mqiaipJC9mpiEc1zcZgpeAh2kxwqKM5VuK\",\n \"pubkey\": \"tpubDA9GDAntyJu4LLzArY7p4W5Psgc3Q54kN729wC4gPCdb8SCxbRZb1ydguBwQ3cV6tMMJ3nszVHMN4hetZKGJF3jjmuYRVwiU5fUwzjWrBZK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"mrx4RoCq46rBBHFYkgFS6Hw3iPXMHDu9nE\",\n \"pubkey\": \"tpubDA9GDAntyJu4t1vSmYZPkdwrJ8NfWtC7NyMcNgXmyjxLMfhsCBjB6EUuCdUss3yNWuv4u7YapA7qWyrafTgUEyiwzT2co2sNiHkhSUEypNt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mmAF7jDGDyyzRGkhYSDbvk4DYJ1Hw4QRJu\",\n \"address\": \"msmn1kKEN6HmodNmKnLzLBtPjisDA5phmo\",\n \"pubkey\": \"tpubDA9GDAntyJu4EmBEGV1icYTZqtPyrctZvQiCqsEgBQmfxU7EJCE7ABR6qUyFwtNbLZUtQf59HXdukcfAPg93Dv4tUMxDBMHfByZdkaVw13q\",\n \"Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -826,7 +826,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_unused\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address unused",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_unused\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mqsQmxDUKHRr4CXwZ3s3GryGvNqKaikYap\"\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mxVRyU4YnKzVTzxYjoV22NGnFdLSaJyWso\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -876,10 +876,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a blob",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete 6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -957,7 +957,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"e43e126a8ab9d7c2fba7fa619adf4a06e8ba559c3ae9d5c8a1cf6ab6f23f9202a06f0ee14ce48f73351c44cc81f6fafd\",\n \"60f3a294f3e56f7acc5383cc68261e819456624fef11de8a34647088412564882bf683dcc6521cfcdd06dfc252e89450\",\n \"b610beb101c564ba97da7da38a8fc2dad6e5c9f05534740f9bdfff11a5d59a5e5b081d052e5930ac7d7a78c9ec64fc2b\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"6151860a6a9054e928210eecde07ca9816c6a90e35b0bd5fb69aae1b61ba0551a55d24585d8ee02c6d0873f872aae579\",\n \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\n \"eca3c2891d79e0308cff056612218436d43ba092ab9192cb330ad2889befe83739bbb95cf1a294630820aed63d5549f3\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1038,10 +1038,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon 34c8b9ae168ede542fbf6c06be1e417ba5f49778",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000160dd075274b262d0fc240b977c22cc43722fef8915e8b45f3a7706a54110ec2d000000006b483045022100b0017ad6c4f8b64b8b388a0f98381cba7d6a0ba927dc93782b3e445b409e4299022029235923fb13553d4e75432c8318252a4796a9fc5e6e884349e5b02164830bee01210283a3599bf2285ec1c5cab20e7deb848c0859879817febbc19741f6d24c4d585cffffffff0134b7f505000000001976a914834bda886513b18154ddc81942a882bbd23050fc88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msVBgb2ADQVvspzSbHbHxaZf5GkJsK3WUj\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"22c2f90777594c01cf2317f8bf391065f094ab7be15b06c53ac7194508581d11\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"22c2f90777594c01cf2317f8bf391065f094ab7be15b06c53ac7194508581d11\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon d2d20546efffa072aac98ff68bef731fa4a5033c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000116d6e6dc76afc50de4e192e7953871085ab2ec8ed69b162979092d0be0bf461c000000006b483045022100844b3699b4e6e021f2dcc9e2ce664f389cf0e5a558d5a78e6810b5941392b94e02207e905551b15cec3f02d491edc5f497023d3cf80f3046d7d3f3ead4fe19ce37a00121029b6c4679721193013688aa73c19b90e16909b8d24da9100f29f838d65655c08affffffff0134b7f505000000001976a9142a95883c8aa85a9b527900dbb02d2fd611cba62b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjQ7onggz8LhWQSE32bqxkuSfkqeHY7MLR\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"be929ade7d63bbaf6279125d8d25e13f230660a509cb07c156b0655edf7a7fd7\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"be929ade7d63bbaf6279125d8d25e13f230660a509cb07c156b0655edf7a7fd7\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1171,14 +1171,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel create @channel 1.0",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011a6fb5492c2038450eb0e116708eaf837789ef6a80eba9b91678429e391bb5fa010000006b483045022100ca9a2dbda7fb4c8e664f937a5505418665d06c955ef17049d6428e3264921ba502203c2c4e8b59dc15688103401bb676bd92f0781c51fade04c8c21590b8100cd6ac012103d3e551a3f99f1285c13cfa6acb2b4cdc46dbd54c535ff4aeebc606b605de6cbdffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b6d7576a9140c6e94d265bed4f6905211e5cce559f0eb24fa6788acc462a029000000001976a914054cfc428d109bbbf8bd05064b93285ee0e24b2488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mq9PemsqE69wHyzyTKNB7SQeaFzyr4ASHb\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100369,\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\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#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": null,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mfzyu3xmuyEGe5JrdzJDzA2WTbmzKX4NhH\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000012909d068bfe8fc0e7d279b91365f023daacf9b452d880ef6b07e9497316e3d4a010000006a47304402202e1762064a69342684908609fcd3101c4b250ec1c4c369c5ef7db1047a83c3c702202515bb37a7c7650f7b3fa3406df786bc201fe6df74d06bbff4b8969bdee064050121021fc1528985689f24e353e9fc2ef99e6e22ad2243a1acae7491ad6f99ceb01ea0ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d6d7576a914ad40409e841ce5f85443a53d0e02bfd62a7308e388acc462a029000000001976a9146c759a0f660a0313b33563fd218c9b92ffe89ce288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzcjMLjnbZKSQoEPS4jgRRYKkbjKhW8HVT\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": null,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a channel claim with all metadata",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel create @bigchannel 1.0 --title=\"Big Channel\" --description=\"A channel with lots of videos.\" --email=\"creator@smallmedia.com\" --tags=music --tags=art --languages=pt-BR --languages=uk --locations=BR --locations=UA::Kiyv --website_url=\"http://smallmedia.com\" --thumbnail_url=\"http://smallmedia.com/logo.jpg\" --cover_url=\"http://smallmedia.com/logo.jpg\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@bigchannel\", \"bid\": \"1.0\", \"title\": \"Big Channel\", \"description\": \"A channel with lots of videos.\", \"email\": \"creator@smallmedia.com\", \"website_url\": \"http://smallmedia.com\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000160dd075274b262d0fc240b977c22cc43722fef8915e8b45f3a7706a54110ec2d010000006b483045022100b85b3132cd6f4af5b206a67a77c936c2728dc65853963a8a8deb48295a74181902206c9da830d016f90c4eeb1ccd1f3a86913ea375f1439b131d4f9e5bcd17d55941012102bd88c34ec29ef877731b6df4b33639f100286ad1773e95bbd370386f047467a7ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a0342000473f9be55e6c57d3148aac400a8bbf972ab129bb7f7f4c4072b73af700124046cde1f4969b2a5c9bd74f7f790b77ce451e1e05b66b7be5e43de87111b287f535d121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914cd0441f0594022f35e49794ce757b71e0ea7ad9488ace221d305000000001976a914babf2b1708de18de4706473d4fac84d63573f82488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1ko3V5QiUem8yDuBjLXbXfxNYkNHqxa5b\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzCyvCbHJFr6qxjTL6fR6MuhYa47zXLCWk\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2392a555c9d6e76a533bcdfdbe994304dca0380f\",\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#2392a555c9d6e76a533bcdfdbe994304dca0380f\",\n \"timestamp\": null,\n \"txid\": \"1cdd8976085097fabe7110cd87e3daea2c44cf41ec961fe4b10cee36b0e274bd\",\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\": \"3056301006072a8648ce3d020106052b8104000a0342000473f9be55e6c57d3148aac400a8bbf972ab129bb7f7f4c4072b73af700124046cde1f4969b2a5c9bd74f7f790b77ce451e1e05b66b7be5e43de87111b287f535d\",\n \"public_key_id\": \"mwASebZ7GpVKHwNZnJPCxD6hghQtPNfURw\",\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\": \"mxYNzLoWYLHRSTNpaM1JKoGgAvr3X96aMf\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1cdd8976085097fabe7110cd87e3daea2c44cf41ec961fe4b10cee36b0e274bd\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"1cdd8976085097fabe7110cd87e3daea2c44cf41ec961fe4b10cee36b0e274bd\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000116d6e6dc76afc50de4e192e7953871085ab2ec8ed69b162979092d0be0bf461c010000006b483045022100a62b1cced9232db6de7b02df0a86822cb4a54392de2dab8c175c0a40ead0a99c022011858ab39765e63f9f551eeccc2fe58170015a90184fc21ffe28e3f012eacbfc012102757524ddf4b20a1922ddf784c432811e1e311c74de9001b5bc8e4572d515023affffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200040647b223458b510b83ed4986529d2cd03c92bed3141335da9bbb2923323e4de1cbf1c7631f88d67a228692196e938ad162d7cdc9375b191d930302dfcaabaa79121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a91416cbd5424991484c2cc24be263fd75ad76a9844a88ace221d305000000001976a91472db9e7143421259756ae8319fa6b9b7673a031888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n13fePHYRLqKeShSHCewERSiuzZD7tdik2\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhbVLqp31DR7grGWDSRkKFS9piUBYFgNQz\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d102aad90b757be8e87b57d3344d907e467b142e\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@bigchannel\",\n \"normalized_name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@bigchannel#d102aad90b757be8e87b57d3344d907e467b142e\",\n \"timestamp\": null,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\n \"type\": \"claim\",\n \"value\": {\n \"cover\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"description\": \"A channel with lots of videos.\",\n \"email\": \"creator@smallmedia.com\",\n \"languages\": [\n \"pt-BR\",\n \"uk\"\n ],\n \"locations\": [\n {\n \"country\": \"BR\"\n },\n {\n \"city\": \"Kiyv\",\n \"country\": \"UA\"\n }\n ],\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200040647b223458b510b83ed4986529d2cd03c92bed3141335da9bbb2923323e4de1cbf1c7631f88d67a228692196e938ad162d7cdc9375b191d930302dfcaabaa79\",\n \"public_key_id\": \"mtrpVR5bLFC4KcJEdmxDrPTdvMFWD5RE8h\",\n \"tags\": [\n \"music\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Big Channel\",\n \"website_url\": \"http://smallmedia.com\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqzGRK5QPDwsPxKVULzXs4mAmWvBvD5LjJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1261,23 +1261,29 @@
|
|
|
|
|
"type": "int",
|
|
|
|
|
"description": "number of items on page during pagination",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "resolves each channel to provide additional metadata",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List your channel claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your channel claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1434,10 +1440,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"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 34c8b9ae168ede542fbf6c06be1e417ba5f49778 --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"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\": \"0100000002e1c3a10f44df49aede90a021d0c9ec6d495bcb1cd35fc3d4d383a4790539c727000000006b4830450221008260f89ca26a469272c0ad7967e0977d9203ccc5dc94076c0f24510a2d17f83702201e23673ca769fd279db7d847b826897cf38fcfccd8692d018e3f75a583e5c27401210283a3599bf2285ec1c5cab20e7deb848c0859879817febbc19741f6d24c4d585cffffffff29d35667ca46ccf20d743024d51d324dc0748af1f10fb0f8fe423f4c706b1f5b000000006a47304402200f5cf42111a0cf601f18af3786e7b0a3aac1e0bb328ffe86483337a49d1738e5022021a170843213297d4f7fd83a8b798d71c4887c096e31a708ad1e8239498c38b10121036498bf6b798a60e5ad0715c0f285d8a4232e36dfa3ed52de50d45f228dcc0181ffffffff0200e1f50500000000a6b708406368616e6e656c147897f4a57b411ebe066cbf2f54de8e16aeb9c8344c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b420b4e6577204368616e6e656c6d6d76a9140c6e94d265bed4f6905211e5cce559f0eb24fa6788ac6ebeea0b000000001976a914de009ddbc11e758e57dc6fa3cedb505e046e4af188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqYfQuGoVMqbcsjHk1WpmewZ9xKqWjyQQE\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1578100369,\n \"txid\": \"5b1f6b704c3f42fef8b00ff1f18a74c04d321dd52430740df2cc46ca6756d329\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\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#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": null,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n1ko3V5QiUem8yDuBjLXbXfxNYkNHqxa5b\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel update d2d20546efffa072aac98ff68bef731fa4a5033c --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000021dbc7587c97b46153892c15f248d25413172d3a4ea894dd46513e47a7b271aa5000000006b483045022100a192d96ac996ce5ed4d5b869e56df30f3a428175cc48ad55368638644fb60f3c02202dbef185e4d5bd048a9b98ff888247b0aac460a5afd6a83b89e20e41723a00990121029b6c4679721193013688aa73c19b90e16909b8d24da9100f29f838d65655c08affffffffa299f665c3158a8b4d47fe8504546a0fbe82efc5201a7bc96eb84f688e4f1ebe000000006b4830450221008097ffa8618cda879b5d2392e07f850e205a8cb3e12fccc79d5a2b863faf98a9022034f3ed884eca0a8310361cd6a77e4a310dc0483791f2814451cb6e3e8d20463c012102b59e1bf2c6be018751c862d0f6d8ce655e889827011701459119da328e50adcbffffffff0200e1f50500000000a6b708406368616e6e656c143c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d24c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d420b4e6577204368616e6e656c6d6d76a914ad40409e841ce5f85443a53d0e02bfd62a7308e388ac6ebeea0b000000001976a914d63962ed513ccf90c31d0d64b5e468a7bff4dcbf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1580597999,\n \"txid\": \"be1e4f8e684fb86ec97b1a20c5ef82be0f6a540485fe474d8b8a15c365f699a2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"has_signing_key\": true,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": null,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n13fePHYRLqKeShSHCewERSiuzZD7tdik2\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -1479,23 +1485,29 @@
|
|
|
|
|
"type": "int",
|
|
|
|
|
"description": "number of items on page during pagination",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "resolves each claim to provide additional metadata",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List all your claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1557,12 +1569,6 @@
|
|
|
|
|
"description": "exclude claims signed by any of these channels (arguments must be claim ids of the channels)",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "blocklist_channel_ids",
|
|
|
|
|
"type": "list",
|
|
|
|
|
"description": "channel_ids of channels containing reposts of claims you want to be blocked from search results",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "has_channel_signature",
|
|
|
|
|
"type": "bool",
|
|
|
|
@@ -1719,6 +1725,12 @@
|
|
|
|
|
"description": "content download fee (supports equality constraints)",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "duration",
|
|
|
|
|
"type": "int",
|
|
|
|
|
"description": "duration of video or audio in seconds (supports equality constraints)",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "any_tags",
|
|
|
|
|
"type": "list",
|
|
|
|
@@ -1808,17 +1820,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\": [], \"blocklist_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim search --channel=@channel",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"blocklist_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#f\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\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\": 1578100370,\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#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\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\": 1578100369,\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#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\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\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": {},\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Search for claims matching a name",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"blocklist_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim search --name=\"astream\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"blocklist_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#f\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\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\": 1578100370,\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#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\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\": 1578100369,\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#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\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\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": {},\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#f\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1580598000,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"short_url\": \"lbry://astream#f\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 1,\n \"creation_height\": 209,\n \"creation_timestamp\": 1580597999,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2229,10 +2241,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon 0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"error\": {\n \"IndexError\": \"list index out of range\",\n \"code\": -32603,\n \"message\": \"Internal Server Error. Please notify a LBRY Administrator.\"\n },\n \"id\": null,\n \"jsonrpc\": \"2.0\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon 453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"abandoned\": false\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2273,7 +2285,7 @@
|
|
|
|
|
{
|
|
|
|
|
"name": "channel_account_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
|
|
|
|
|
"description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@@ -2287,51 +2299,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Posting a comment as your channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=f95ede15cbeff2da7e4a481c538501c36343077c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"cea3d588e438a9c725db76c4f9f071a80438c7d586d56563685f0357c2ed5069d6eba598ca58887c029ddeaea6feeb13c63a13f85768390608601cc391412179\",\n \"signing_ts\": \"1578100348\",\n \"timestamp\": 1578100348\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=f074539771eba8eb1229e5e128825261bcdc2967",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "You can r",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --claim_id=f95ede15cbeff2da7e4a481c538501c36343077c --parent_id=0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"50931c4dea5fa80a84e4b42c091b26197cc5e3b33bde978ec18e0c95bf01ee4b\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\",\n \"signature\": \"b3ffcf62cc5aedfef3cc200b597955404752487244a816744387ebfbc2e6ed3ce1eaf0656a581d8eaec6bc6e228effbb7cf0d9a74a861cfdc41ffa519bb2eba0\",\n \"signing_ts\": \"1578100348\",\n \"timestamp\": 1578100348\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "comment_update",
|
|
|
|
|
"description": "Update a comment published as one of your channels.",
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"name": "comment",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "New comment replacing the old one",
|
|
|
|
|
"is_required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "comment_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "Hash identifying the comment to edit",
|
|
|
|
|
"is_required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "restrict operation to specific wallet",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": "(dict) Comment object if edit was successful, (None) otherwise\n {\n \"comment\": (str) The actual string as inputted by the user,\n \"comment_id\": (str) The Comment's unique identifier,\n \"channel_name\": (str) Name of the channel this was posted under, prepended with a '@',\n \"channel_id\": (str) The Channel Claim ID that this comment was posted under,\n \"signature\": (str) The signature of the comment,\n \"signing_ts\": (str) Timestamp used to sign the most recent signature,\n \"channel_url\": (str) Channel's URI in the ClaimTrie,\n \"parent_id\": (str) Comment this is replying to, (None) if this is the root,\n \"timestamp\": (int) The time at which comment was entered into the server at, in nanoseconds.\n }",
|
|
|
|
|
"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\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment \"update Where there was once sasquatch, there is not\" --comment_id=0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"error\": {\n \"code\": -32601,\n \"message\": \"The method does not exist / is not available.\"\n },\n \"id\": null,\n \"jsonrpc\": \"2.0\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"I have photographic evidence confirming Sasquatch exists\" --channel_name=@channel --parent_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"7879ce7b82a1621f39302553426f48a371782ae6735c299de372c3c0d3eff81c\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"signature\": \"723ea0a3c56b827afd173f7c77c2d9d0c8fb13c2f1463336c2f3631cdbd28bb8019c09757b763e7c549d04e263b5395508c5d39e56a36bdb3c15b55857d6a311\",\n \"signing_ts\": \"1580597978\",\n \"timestamp\": 1580597978\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2412,17 +2390,51 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List all comments on a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list f95ede15cbeff2da7e4a481c538501c36343077c --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"cea3d588e438a9c725db76c4f9f071a80438c7d586d56563685f0357c2ed5069d6eba598ca58887c029ddeaea6feeb13c63a13f85768390608601cc391412179\",\n \"signing_ts\": \"1578100348\",\n \"timestamp\": 1578100348\n },\n {\n \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"50931c4dea5fa80a84e4b42c091b26197cc5e3b33bde978ec18e0c95bf01ee4b\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\",\n \"signature\": \"b3ffcf62cc5aedfef3cc200b597955404752487244a816744387ebfbc2e6ed3ce1eaf0656a581d8eaec6bc6e228effbb7cf0d9a74a861cfdc41ffa519bb2eba0\",\n \"signing_ts\": \"1578100348\",\n \"timestamp\": 1578100348\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list f074539771eba8eb1229e5e128825261bcdc2967 --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"include_replies\": true, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n },\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"7879ce7b82a1621f39302553426f48a371782ae6735c299de372c3c0d3eff81c\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"signature\": \"723ea0a3c56b827afd173f7c77c2d9d0c8fb13c2f1463336c2f3631cdbd28bb8019c09757b763e7c549d04e263b5395508c5d39e56a36bdb3c15b55857d6a311\",\n \"signing_ts\": \"1580597978\",\n \"timestamp\": 1580597978\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List a comment thread replying to a top level comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list f95ede15cbeff2da7e4a481c538501c36343077c --parent_id=0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"parent_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"0dec63ef27fd7d8c76237811b00db797479061caba39ac0f4f3b094aae59a5cb\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"cea3d588e438a9c725db76c4f9f071a80438c7d586d56563685f0357c2ed5069d6eba598ca58887c029ddeaea6feeb13c63a13f85768390608601cc391412179\",\n \"signing_ts\": \"1578100348\",\n \"timestamp\": 1578100348\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list f074539771eba8eb1229e5e128825261bcdc2967 --parent_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"parent_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\", \"include_replies\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"signature\": \"f812176b6827fab8a97a08cce127a89a1376f26183779e51544b64c9e188ff3819cdd75b5a502b9364550231e050cea40f4747eed11b15ce24511a31ea267888\",\n \"signing_ts\": \"1580597977\",\n \"timestamp\": 1580597978\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "comment_update",
|
|
|
|
|
"description": "Edit a comment published as one of your channels.",
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"name": "comment",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "New comment replacing the old one",
|
|
|
|
|
"is_required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "comment_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "Hash identifying the comment to edit",
|
|
|
|
|
"is_required": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "wallet_id",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "restrict operation to specific wallet",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": "(dict) Comment object if edit was successful, (None) otherwise\n {\n \"comment\": (str) The actual string as inputted by the user,\n \"comment_id\": (str) The Comment's unique identifier,\n \"channel_name\": (str) Name of the channel this was posted under, prepended with a '@',\n \"channel_id\": (str) The Channel Claim ID that this comment was posted under,\n \"signature\": (str) The signature of the comment,\n \"signing_ts\": (str) Timestamp used to sign the most recent signature,\n \"channel_url\": (str) Channel's URI in the ClaimTrie,\n \"parent_id\": (str) Comment this is replying to, (None) if this is the root,\n \"timestamp\": (int) The time at which comment was entered into the server at, in nanoseconds.\n }",
|
|
|
|
|
"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\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"453598016f8bf547984d9f7dae05bfab4ad2d5c07cb92771e991dcfbff2ab4e6\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": null\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2512,9 +2524,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"f95ede15cbeff2da7e4a481c538501c36343077c\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"f074539771eba8eb1229e5e128825261bcdc2967\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -2645,14 +2657,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"518b647925f56fbbdadc5f15058b9196\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"017897f4a57b411ebe066cbf2f54de8e16aeb9c834feb406b1b0991fcbfff25ad85805dbf02124246436d8012302edcdf004a4479aec646070e3c9909aa22f08a482d54f00cb245398f838f4c36941981d0698e2a20a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"1b7b40081d9b1a8f60b7d5a2af031b1c04bd7edbd0675bfa1920f6351524501fa4edf6acb13db77a4ca1c9503fcaa33b\",\n \"stream_name\": \"tmpsg2mhmr_\",\n \"streaming_url\": \"http://localhost:5280/stream/d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"suggested_file_name\": \"tmpsg2mhmr_\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\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\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"2dfb4a9dc1557c5cc89d3447904cc3b493be911e\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"6773acf1a6d9101f7dcd69fcc43a9a2d\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mvkLPgxEeqM1iP5o69JVj4Tm6NpdYjhCZE\",\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\": \"1578100345\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpouzs2ayp.png\",\n \"sd_hash\": \"b610beb101c564ba97da7da38a8fc2dad6e5c9f05534740f9bdfff11a5d59a5e5b081d052e5930ac7d7a78c9ec64fc2b\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"a88779842f46e42daee5fd850456b73107b4711e2628b2fdLine truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"5562eb5ea21493a3bfb29ce6cde063b3\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1580597975\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp8bpmcxdk.png\",\n \"sd_hash\": \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a4Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List files matching a parameter",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"f95ede15cbeff2da7e4a481c538501c36343077c\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"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\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"518b647925f56fbbdadc5f15058b9196\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"017897f4a57b411ebe066cbf2f54de8e16aeb9c834feb406b1b0991fcbfff25ad85805dbf02124246436d8012302edcdf004a4479aec646070e3c9909aa22f08a482d54f00cb245398f838f4c36941981d0698e2a20a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"1b7b40081d9b1a8f60b7d5a2af031b1c04bd7edbd0675bfa1920f6351524501fa4edf6acb13db77a4ca1c9503fcaa33b\",\n \"stream_name\": \"tmpsg2mhmr_\",\n \"streaming_url\": \"http://localhost:5280/stream/d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"suggested_file_name\": \"tmpsg2mhmr_\",\n \"timestamp\": 1578100370,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"f074539771eba8eb1229e5e128825261bcdc2967\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"reverse\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2769,10 +2781,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Save a file to the downloads directory",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1578100350,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpykj53y2t\",\n \"download_path\": \"/tmp/tmpykj53y2t/tmpsg2mhmr__1\",\n \"file_name\": \"tmpsg2mhmr__1\",\n \"height\": 214,\n \"key\": \"518b647925f56fbbdadc5f15058b9196\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"017897f4a57b411ebe066cbf2f54de8e16aeb9c834feb406b1b0991fcbfff25ad85805dbf02124246436d8012302edcdf004a4479aec646070e3c9909aa22f08a482d54f00cb245398f838f4c36941981d0698e2a20a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"1b7b40081d9b1a8f60b7d5a2af031b1c04bd7edbd0675bfa1920f6351524501fa4edf6acb13db77a4ca1c9503fcaa33b\",\n \"stream_name\": \"tmpsg2mhmr_\",\n \"streaming_url\": \"http://localhost:5280/stream/d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"suggested_file_name\": \"tmpsg2mhmr_\",\n \"timestamp\": 1578100370,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1580597981,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp6rn9873y\",\n \"download_path\": \"/tmp/tmp6rn9873y/tmpl4cl26p7_1\",\n \"file_name\": \"tmpl4cl26p7_1\",\n \"height\": 214,\n \"key\": \"9d821b9fb6bf07825b07dac48ce6587f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"061c6b669051268d977ae56667b0a5f895ea63843ac8e28f4157c5c703a9373e99bd0ed3f42a0a1462a096c97797d7d9\",\n \"stream_name\": \"tmpl4cl26p7\",\n \"streaming_url\": \"http://localhost:5280/stream/38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"suggested_file_name\": \"tmpl4cl26p7\",\n \"timestamp\": 1580598000,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3053,7 +3065,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"settings_get\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet settings get",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"settings_get\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/oleg/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpykj53y2t\",\n \"download_dir\": \"/tmp/tmpykj53y2t\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpykj53y2t\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmp6rn9873y\",\n \"download_dir\": \"/tmp/tmp6rn9873y\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmp6rn9873y\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3128,10 +3140,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a stream claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon f95ede15cbeff2da7e4a481c538501c36343077c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010fe58e3e251177a38c4fd8348d4124a515a013f76cbce0c229e35a1132350ba5000000006a47304402203074166d29b98dc529c8a1d1508e75016c50ba20d5025cc88fa3623ca7c021ab02207780bf6259b3a0cd849d9c0b81e2ccd33ff71a95c4039c26a3287fc4f9cce81c012103f2e2ccaf961844ec796b540daf5d42cff1d04a97d4056fa93dcc26c97ec7c2c0ffffffff0134b7f505000000001976a914c8ea871b5657f6189cb8749701cb9b36f8c03e4288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myqJPhEuj6btmLkrdqezi23koaE1s9hsjE\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"4eae8324fa33aac4d8737a08848db7cf00412ef74a8c9e72a455402c6fc8b513\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"4eae8324fa33aac4d8737a08848db7cf00412ef74a8c9e72a455402c6fc8b513\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon f074539771eba8eb1229e5e128825261bcdc2967",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001835dc108b73c9da330e94a6a67ff486c148e749418e86dab9a0beb408fedc94a000000006946304302206ffe396a47ddea4373bef3747365cbdc62fa338f8d244b9b30a62d88ced87deb021f1fc7d0ff88738afed86b5069f4c832f72d2237c649b7f4b15c9c22f5524d3201210335f18e49fad8c76929b8055cb9799c68f96d8d9d73702b3daf4bbebb5d86e6f4ffffffff0134b7f505000000001976a9147d66f90dc0349d3e7eca12fa1f0f4a946df2f3f588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrx27iJkBYSk4Xo1NoJA4zPBpaiEZqz2JN\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"68626c58b20caac03f6e2b8441e4fc359e83cb91d2010241eaea2777de834a1a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"68626c58b20caac03f6e2b8441e4fc359e83cb91d2010241eaea2777de834a1a\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3332,17 +3344,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a stream claim without metadata",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpsg2mhmr_\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpsg2mhmr_",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpsg2mhmr_\", \"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\": \"0100000001e1c3a10f44df49aede90a021d0c9ec6d495bcb1cd35fc3d4d383a4790539c727010000006a4730440220524487b323b690518e0486ddc3ab3c410f36923f6685765976faedeb52cb9f5702204ff3d6bd490007c890497e9ce8cd470ca273914b3095fc1f97e671f0d92bd66201210395301134db56244412f5d36c0d5277eaa3f7db80b5a2460f999de187f9e46f45ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea51856d7576a914ba69e8b2c9aa40bdff8fc5890344f4fff6c7028588ac38fb9423000000001976a914ee3ed40a870a4cfcab28e9b0d3a2a42b135b3d5a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfzyu3xmuyEGe5JrdzJDzA2WTbmzKX4NhH\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100369,\n \"txid\": \"27c7390579a483d3d4c35fd31ccb5b496decc9d021a090deae49df440fa1c3e1\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\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#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"timestamp\": null,\n \"txid\": \"e17fdc5ca2418fced58b9d34c8688c99dcc3e1dd33412a84268889b884f5d523\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n3EgP6VSRrfksucGhy8DES7q9nzVNqt3zu\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e17fdc5ca2418fced58b9d34c8688c99dcc3e1dd33412a84268889b884f5d523\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"e17fdc5ca2418fced58b9d34c8688c99dcc3e1dd33412a84268889b884f5d523\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpl4cl26p7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpl4cl26p7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpl4cl26p7\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011dbc7587c97b46153892c15f248d25413172d3a4ea894dd46513e47a7b271aa5010000006b48304502210086f1c70704ec25faaf7c8731116dd20bf1e848be8d283fa8aaf176b99a19535e02204ec8c5418b4156b6c808982cc00df29b130d01a68137cd7103857baee486e1e7012102b59e1bf2c6be018751c862d0f6d8ce655e889827011701459119da328e50adcbffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c686d7576a914d2daab6118ae9fb65a1ed9114a4abb901edd0bfa88ac38fb9423000000001976a9140b5216b93e93f3a9a31c070d13c54585775f57b788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqQS9tSxZqtZAmVCqUxEATKvmU3pXTnFgq\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"a51a277b7ae41365d44d89eaa4d3723141258d245fc1923815467bc98775bc1d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": null,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgYp4nrnKtAfJFHFzve9Fi2vaSgrd68zKh\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Create an image stream claim with all metadata and fee",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpouzs2ayp.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1578100345, \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpouzs2ayp.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=1578100345 --channel_id=\"34c8b9ae168ede542fbf6c06be1e417ba5f49778\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpouzs2ayp.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1578100345, \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000123d5f584b8898826842a4133dde1c3dc998c68c8349d8bd5ce8f41a25cdc7fe1010000006a473044022012dafd1dec1614e6952f9c76856dada3b0e6297f9f685e6e553f000bc76d6ce902202694ac7ad4aefb336e977beda4fceba693834b687c90d5bc7fb3c9002b2482d3012102480ca93f8eedad5b32e533220b047828b8bacbf22698e783a4f9869817b5a1b3ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db101017897f4a57b411ebe066cbf2f54de8e16aeb9c834ab253012b48d909ffedaaedc15bd1803adaaa38595d1a0b6146f1be6c03cd1775befdc00cdfe79240a54441bf0c25be69276062d2996ca0467d8ddf0720c04d20ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d706f757a73326179702e706e6718632209696d6167652f706e673230b610beb101c564ba97da7da38a8fc2dad6e5c9f05534740f9bdfff11a5d59a5e5b081d052e5930ac7d7a78c9ec64fc2b120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728f9ccbff0053222080112196fa711bd739a0b2d2706f69cf3fcaed58867580adea7190699188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914a711bd739a0b2d2706f69cf3fcaed58867580ade88acac5e7d1d000000001976a91489953b798ec28c4334b1d8dc2132762ec19afbfa88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3EgP6VSRrfksucGhy8DES7q9nzVNqt3zu\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100370,\n \"txid\": \"e17fdc5ca2418fced58b9d34c8688c99dcc3e1dd33412a84268889b884f5d523\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvkLPgxEeqM1iP5o69JVj4Tm6NpdYjhCZE\",\n \"amount\": \"1.0\",\n \"claim_id\": \"2dfb4a9dc1557c5cc89d3447904cc3b493be911e\",\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#2dfb4a9dc1557c5cc89d3447904cc3b493be911e\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"a88779842f46e42daee5fd850456b73107b4711e2628b2fd91c8215c65fc6192\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mvkLPgxEeqM1iP5o69JVj4Tm6NpdYjhCZE\",\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\": \"1578100345\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpouzs2ayp.png\",\n \"sd_hash\": \"b610beb101c564ba97da7da38a8fc2dad6e5c9f05534740f9bdfff11a5d59a5e5b081d052e5930ac7d7a78c9ec64fc2b\",\n \"size\": \"99\"\n },\n \"streaLine truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8bpmcxdk.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1580597975, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp8bpmcxdk.png --tags=blank --tags=art --languages=en --locations=US:NH:Manchester --fee_currency=LBC --fee_amount=0.3 --title=\"Blank Image\" --description=\"A blank PNG that is 5x7.\" --author=Picaso --license=\"Public Domain\" --license_url=http://public-domain.org --thumbnail_url=\"http://smallmedia.com/thumbnail.jpg\" --release_time=1580597975 --channel_id=\"d2d20546efffa072aac98ff68bef731fa4a5033c\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8bpmcxdk.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1580597975, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001f0e855be533ce700b2d9b57c474ef7dc539c167530ab414250862ea874041c43010000006b483045022100c9244cdb45477683823b8377dca2aabacbfac0366e96190e9a18058eab65cec90220043375d6419581f5eb3b67366532e853b83c866520da484c377092e259edec8f01210239101e0fa66ed3f3cbd41db358a777f12eee87f592ec76aca9879b1e3419b076ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db101013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d2cebe33ca8a457d2f9dd5b701084ece71f14e1f20e3ff0886bff97d9c2fe2c904c37f6e2fa0ab65ae27a3a20fee4df0994bb500579e0ee7f735a5f3f289d694820ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d703862706d6378646b2e706e6718632209696d6167652f706e673230f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728d785d8f1053222080112196f43d6092c2f5a569b1929c0388ac8b3575f0009f589060d6d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a91443d6092c2f5a569b1929c0388ac8b3575f0009f588acac5e7d1d000000001976a914dc724d3403482945fb46841164014e01884490db88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgYp4nrnKtAfJFHFzve9Fi2vaSgrd68zKh\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580598000,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"blank-image\",\n \"normalized_name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://blank-image#70d9b50a8b2adb73371258da9e6cbc4488c0e521\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"b7fdb67f18a37ae41154bafc8aa1cc043ad8cfbf3bfe25a440bafb10890e87a4\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mmhdyNp4GVwnX7siY6de3sa7ABQhkad2Ap\",\n \"amount\": \"0.3\",\n \"currency\": \"LBC\"\n },\n \"image\": {\n \"height\": 7,\n \"width\": 5\n },\n \"languages\": [\n \"en\"\n ],\n \"license\": \"Public Domain\",\n \"license_url\": \"http://public-domain.org\",\n \"locations\": [\n {\n \"city\": \"Manchester\",\n \"country\": \"US\",\n \"state\": \"NH\"\n }\n ],\n \"release_time\": \"1580597975\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp8bpmcxdk.png\",\n \"sd_hash\": \"f8d4441c131827832b55322f228756b673619e1342493339ae9b33fd861fc05ff1ef374d330bf660e7ea3287f17f77f7\",\n \"size\": \"99\"\n },\n \"strLine truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3373,23 +3385,29 @@
|
|
|
|
|
"type": "int",
|
|
|
|
|
"description": "number of items on page during pagination",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "resolves each stream to provide additional metadata",
|
|
|
|
|
"is_required": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List all your stream claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your stream claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1578100370,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20, \"resolve\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1580598000,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3710,10 +3728,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a stream claim to add channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update f95ede15cbeff2da7e4a481c538501c36343077c --channel_id=\"34c8b9ae168ede542fbf6c06be1e417ba5f49778\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\", \"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\": \"010000000223d5f584b8898826842a4133dde1c3dc998c68c8349d8bd5ce8f41a25cdc7fe1000000006a47304402206c2a1d14de758134ec21c1ebac7f09c6f550732195d64aa933ebef69aa8a154002207e2a7a16397cd775dec508dfee1c96fe168d4369ce19cc56631807bb4659bb30012103f2e2ccaf961844ec796b540daf5d42cff1d04a97d4056fa93dcc26c97ec7c2c0ffffffffbd74e2b036ee0cb1e41f96ec41cf442ceadae387cd1071befa9750087689dd1c010000006b483045022100f198c09c8fa0302328bfbb8a4eb9fa8e82471d5808c843ea3af46e2e157463a502207b9ff778f705aa250d79a95320ca6c9d8dc71af3c293abf7d6004a8ecc38994101210227da4d9f87093bc831863496f30e690544e3ecf51b174783d6a623bdf6906e04ffffffff0200e1f50500000000fd2301b7076173747265616d147c074363c30185531c484a7edaf2efcb15de5ef94ce8017897f4a57b411ebe066cbf2f54de8e16aeb9c834feb406b1b0991fcbfff25ad85805dbf02124246436d8012302edcdf004a4479aec646070e3c9909aa22f08a482d54f00cb245398f838f4c36941981d0698e2a20a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707367326d686d725f180b22186170706c69636174696f6e2f6f637465742d73747265616d3230d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea51856d6d76a914ba69e8b2c9aa40bdff8fc5890344f4fff6c7028588ac32a0d205000000001976a914f22c67628f4fbf6b6f137e60e7ff41de630e422c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"timestamp\": 1578100370,\n \"txid\": \"e17fdc5ca2418fced58b9d34c8688c99dcc3e1dd33412a84268889b884f5d523\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpsg2mhmr_\",\n \"sd_hash\": \"d5d9055437076e3fc8b5f3a2aa724ec45e1c70fdd4f169839e0d44b8345e6968b8dda9ac4740fc6a0ea01c6cc5ea5185\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mxYNzLoWYLHRSTNpaM1JKoGgAvr3X96aMf\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1578100369,\n \"txid\": \"1cdd8976085097fabe7110cd87e3daea2c44cf41ec961fe4b10cee36b0e274bd\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxWcrRGimXXR7VmSAhgzGkWfENPu5PE4Sv\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f95ede15cbeff2da7e4a481c538501c36343077c\",\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#f95ede15cbeff2da7e4a481c538501c36343077c\",\n \"signing_channel\": {\n \"address\": \"mgegsgW4K5Za5hALM3us2wcKtPiSvZuNoW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#34c8b9ae168ede542fbf6c06be1e417ba5f49778\",\n \"timestamp\": 1578100369,\n \"txid\": \"2dec1041a506773a5fb4e81589ef2f7243cc227c970b24fcd062b2745207dd60\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200042a0e709a4a4becca5e9d95972e931d5046eea76fec6db02616521b4ac48626b14ed5cd2175fcb8a428553ccb4e31c320539c02499f25c465bcf4af324bfbdb4b\",\n \"public_key_id\": \"mhW32CGgi122kZTBp4XnkTFZSTYwFP4bva\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"a50b3532115ae329c2e0bc6cf713a015a524418d34d84f8ca37711253e8ee50f\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update f074539771eba8eb1229e5e128825261bcdc2967 --channel_id=\"d2d20546efffa072aac98ff68bef731fa4a5033c\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002f0e855be533ce700b2d9b57c474ef7dc539c167530ab414250862ea874041c43000000006a47304402203d73a658bc979ffdc9a4c18dedb76b3ae1114ee37dd6a4cb7cab131dc09c790a02206591bbb9e4404fc2f200330876154ba6bd68588896934b79176b2d1fb1438d2c01210335f18e49fad8c76929b8055cb9799c68f96d8d9d73702b3daf4bbebb5d86e6f4ffffffff530f726f7d6304a6a0854c88ab239ac08e6389139f6d1fbdb820f2517d85bd08010000006a4730440220523a8fee6340f312226812eae589ae58738a90e0292873d4052fef61cebaaa100220495fef600fa22d5440498c4bbac06ba758f59ad973e01f3476631eeefcb6af6c012102a17b82a91f6dd05e1f59b7d253ed759f2b1700a257a6c5fb316548d8db79aac8ffffffff0200e1f50500000000fd2301b7076173747265616d146729dcbc61528228e1e52912eba8eb71975374f04ce8013c03a5a41f73ef8bf68fc9aa72a0ffef4605d2d25dec6d7a7fc0ccb5af8d2a946149c6dfaa56df420ce395da32f4e56724f8f23db486334296f6604c32907b9ad948a161efe8c257effff1cc49271b787abc6b570a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c34636c32367037180b22186170706c69636174696f6e2f6f637465742d73747265616d323038ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c686d6d76a914d2daab6118ae9fb65a1ed9114a4abb901edd0bfa88ac32a0d205000000001976a9143cb56178d13d6f05c8b52a3958b8f9d5b10eb9e588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"timestamp\": 1580598000,\n \"txid\": \"431c0474a82e86504241ab3075169c53dcf74e477cb5d9b200e73c53be55e8f0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpl4cl26p7\",\n \"sd_hash\": \"38ebcfcf562af45341b3aaafab25f8fc6a0ceb6683e979a0172bdc80c67130f7aec6db31afb8579f011eb4091f647c68\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqzGRK5QPDwsPxKVULzXs4mAmWvBvD5LjJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1580597999,\n \"txid\": \"08bd857d51f220b8bd1f6d9f1389638ec09a23ab884c85a0a604637d6f720f53\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mzjr9kvkw2Y3H2TtKmmGDpNhPwPCpGHZ1u\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f074539771eba8eb1229e5e128825261bcdc2967\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#f074539771eba8eb1229e5e128825261bcdc2967\",\n \"signing_channel\": {\n \"address\": \"mwK2AaRJ8sxbYFJSGiC94yJVgBn49ctuXZ\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d2d20546efffa072aac98ff68bef731fa4a5033c\",\n \"timestamp\": 1580597999,\n \"txid\": \"1c46bfe00b2d097929169bd68eecb25a08713895e792e1e40dc5af76dce6d616\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004f8f1a05a7dbb77522ff3c3f154ddc3170d7c2bfc79a623fd40f50b60be78a70fb53539be0738af051d261e8846805dd2ba7338c2708d1a4009fc221037b4269d\",\n \"public_key_id\": \"mkZ4Gx3PsoRuSPHfCcR27Pq2A2ENNEmxZw\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"4ac9ed8f40eb0b9aab6de81894748e146c48ff676a4ae930a39d3cb708c15d83\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -3958,7 +3976,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet transaction list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2020-01-03 20:12\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1578100369,\n \"txid\": \"fab51b399e427816b9a9eb806aef897783af8e7016e1b00e4538202c49b56f1a\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2020-01-03 20:12\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1578100368,\n \"txid\": \"2c8b000adc8b7e72b9dab63afca40935cb05683f71ed0cfaffd1ed71fd1fe8fa\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2020-02-01 17:59\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1580597999,\n \"txid\": \"4a3d6e3197947eb0f60e882d459bcfaa3d025f36919b277d0efce8bf68d00929\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2020-02-01 17:59\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1580597998,\n \"txid\": \"9753e8bdb1d516ecdc02be6b11667d007a60fe1aabe59807ce368b5b29f62403\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|