|
|
|
@@ -54,10 +54,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Get a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#341a9096806b69ab5904087fefb8e0709afa42c7\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#341a9096806b69ab5904087fefb8e0709afa42c7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#341a9096806b69ab5904087fefb8e0709afa42c7\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1614617522,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpvmqj47sc\",\n \"download_path\": \"/tmp/tmpvmqj47sc/tmprrtf_b1x\",\n \"file_name\": \"tmprrtf_b1x\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"6eff0b1b4c4e5f5dc1c293c8d3d5771b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0126e8edf270d53abcccef05a2c089dc54d3622533abc062f1bceeb8c322c26423ded588879f34e5b62a7ead3fe139b02ff74a575746a592d87e666c0f654ef370ef921d8bd091aad5743760344f6b96f393ad406f0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fe07a066484c5b68ed890991ddd802b86ab5e5b7974015b42c9e5f504c62c32476949dbeb4238265a859f98e84ac8e57\",\n \"stream_name\": \"tmprrtf_b1x\",\n \"streaming_url\": \"http://localhost:5280/stream/7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"suggested_file_name\": \"tmprrtf_b1x\",\n \"timestamp\": 1614617542,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet get astream#c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1615584586,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpj5_nkfsj\",\n \"download_path\": \"/tmp/tmpj5_nkfsj/tmpg8lcg3me\",\n \"file_name\": \"tmpg8lcg3me\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"61bd4f29046bdc1ee1590c896a5de385\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0141c5fca4fffd6e523737ec0f4b96abbd2b7554c550d423920ef3e130015116f3dd37636cf1491d67b2d51243564cf7c2cc009c80fd27136bf69230a9522ce6cb61e22bfc48380233c15ef8164367b9cc5864673a0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9a8fe645fa3be3dc60fca473a52d73a3d6ebe500217730aaa4a7bf6d0de5fb96a579aa9f60e28b8e5afa88288428e59d\",\n \"stream_name\": \"tmpg8lcg3me\",\n \"streaming_url\": \"http://localhost:5280/stream/a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"suggested_file_name\": \"tmpg8lcg3me\",\n \"timestamp\": 1615584609,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -250,10 +250,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Publish a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwpq12pq7\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpwpq12pq7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwpq12pq7\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000126114def7ea374eb56ab238032e9bd0b3d25a2c382dec6cef0eea595114a211a010000006a47304402202608c0da6108e3ce42595bfd1647f80ebcdb66a124552ed42a52f8197678374a0220180d537ce02f72f82a4a7085880d8e6507c377d037727c43f94a3db7dd8a0fcc012103720185cc6dc195862901cc02b4db3bdcf98eccbb4c12e2741ca5da82c1adc9d4ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d707770713132707137180b22186170706c69636174696f6e2f6f637465742d73747265616d323078d5823519059bc44d713a40e9242537dde1f71738e01bf962485591fd7cf73f196819a3710b0e6321e75861b6653ac16d7576a91426e176dcd84d6b2eaadfd3e0f7694d2491df806a88ace0b46217000000001976a9146a0db11bf8c7d0c0ba2d672582c81acc63fbb72588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mk2RafeFkcy6u2Jtwt2ZP9nxReTHWwdoPF\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1614617542,\n \"txid\": \"1a214a1195a5eef0cec6de82c3a2253d0bbde9328023ab56eb74a37eef4d1126\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj4Y4stof3Vw3itRb5e7M5cnt4L4haTPXe\",\n \"amount\": \"1.0\",\n \"claim_id\": \"255596b809bef7b546d329d19c7dc7b2a8d31f56\",\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#255596b809bef7b546d329d19c7dc7b2a8d31f56\",\n \"timestamp\": null,\n \"txid\": \"9931f0070ef4437e7816598e6362f0410f5d709931a43a4fe89420cc6d9d78d0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpwpq12pq7\",\n \"sd_hash\": \"78d5823519059bc44d713a40e9242537dde1f71738e01bf962485591fd7cf73f196819a3710b0e6321e75861b6653ac1\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqBiKiKk5YPqj8F7C72oUyY42mKpogVkZF\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"9931f0070ef4437e7816598e6362f0410f5d709931a43a4fe89420cc6d9d78d0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"9931f0070ef4437e7816598e6362f0410f5d709931a43a4fe89420cc6d9d78d0\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpbduedakt\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpbduedakt",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpbduedakt\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ae159368dbba180810be0d443887a4f16edc0ca058cdb2d39207be4d10dc0129010000006b483045022100e062c0854d8bf275da0360848566492f6e9936e8839971358e8211089af6c69302200848f3611eb96fbeae34d7685045c2d6cbdc02e8f8d4ba213c6c349103fe936a012102c3fa4f80234a3fad24dbb913349ca4628edefa739191843903b5288276df3bd4ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706264756564616b74180b22186170706c69636174696f6e2f6f637465742d73747265616d32300b55b4c0ba9cde5692f8af4353e2d728cc6539472b9e98eebf79175e9daf072c1a97211cd8c2d1542bd12349b65ec4ed6d7576a914fe6ce3352cfe3084f990d3b0cd8b74420338da2888ac54826311000000001976a9145df5ac94f6e0c6b4032f2086eb371142cdbee15488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzBinvkujKjUZUDaWwk5gvyXJFi8Q8GRup\",\n \"amount\": \"3.941448\",\n \"confirmations\": 3,\n \"height\": 217,\n \"nout\": 1,\n \"timestamp\": 1615584609,\n \"txid\": \"2901dc104dbe0792d3b2cd58a00cdc6ef1a48738440dbe100818badb689315ae\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4iENR9ds5h9HDwaF64zqGqFU9KwxxNheU\",\n \"amount\": \"1.0\",\n \"claim_id\": \"3b62efd8391de818c3d0c9ff39dfbb69ce6ada15\",\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#3b62efd8391de818c3d0c9ff39dfbb69ce6ada15\",\n \"timestamp\": null,\n \"txid\": \"aaf5c1bd09fbfec306470a0e38f639d6d659023c6044a9fd4168e87b1bdec8d3\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpbduedakt\",\n \"sd_hash\": \"0b55b4c0ba9cde5692f8af4353e2d728cc6539472b9e98eebf79175e9daf072c1a97211cd8c2d1542bd12349b65ec4ed\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mp5mSdghRQyuBFwc2ASnSUAvuEu7qkqmsv\",\n \"amount\": \"2.917341\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"aaf5c1bd09fbfec306470a0e38f639d6d659023c6044a9fd4168e87b1bdec8d3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"3.941448\",\n \"total_output\": \"3.917341\",\n \"txid\": \"aaf5c1bd09fbfec306470a0e38f639d6d659023c6044a9fd4168e87b1bdec8d3\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -314,10 +314,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Resolve a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#341a9096806b69ab5904087fefb8e0709afa42c7\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet resolve astream#341a9096806b69ab5904087fefb8e0709afa42c7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#341a9096806b69ab5904087fefb8e0709afa42c7\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#341a9096806b69ab5904087fefb8e0709afa42c7\": {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#3\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\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\": 1614617542,\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#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"short_url\": \"lbry://astream#3\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\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\": 1614617541,\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#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet resolve astream#c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\"], \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"include_sent_supports\": false, \"include_sent_tips\": false, \"include_received_tips\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\": {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#c\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1615584609,\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1615584608,\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -339,7 +339,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet status",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"network_connection\",\n \"message\": \"Your internet connection appears to have been interrupted\"\n },\n \"ffmpeg_status\": {\n \"analyze_audio_volume\": true,\n \"available\": true,\n \"which\": \"/usr/bin/ffmpeg\"\n },\n \"file_manager\": {\n \"managed_files\": 0\n },\n \"installation_id\": \"4wRDyQFBkqHouUMmRjm6zpJuXrzcyhtrPno8CNEmHmqExRGhYznhSs1j1mEdiGpQ6n\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"file_manager\": true,\n \"wallet\": true,\n \"wallet_server_payments\": true\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"ab8b3dd792c56630eafd7756b563f22f64eea6e79a1baef40ec91454d43bd700\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1:50002\",\n \"connected_features\": {\n \"daily_fee\": \"0\",\n \"description\": \"\",\n \"donation_address\": \"\",\n \"genesis_hash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"hash_function\": \"sha256\",\n \"hosts\": {},\n \"payment_address\": \"\",\n \"protocol_max\": \"0.99.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.90.0\",\n \"trending_algorithm\": \"zscore\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"127.0.0.1\",\n \"latency\": 0.009983217001718003,\n \"port\": 50002\n }\n ]\n },\n \"wallet_server_payments\": {\n \"max_fee\": \"0.0\",\n \"running\": false\n }\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"ffmpeg_status\": {\n \"analyze_audio_volume\": true,\n \"available\": true,\n \"which\": \"/usr/bin/ffmpeg\"\n },\n \"file_manager\": {\n \"managed_files\": 0\n },\n \"installation_id\": \"3LmDa19cyvuuzyMfzK5ecH5RQT1quA4xW5BkEK7aC3iXpNHLcqAVEd3fCvnr5JixMK\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"file_manager\": true,\n \"wallet\": true,\n \"wallet_server_payments\": true\n },\n \"wallet\": {\n \"available_servers\": 1,\n \"best_blockhash\": \"978452cb31b6cf7b27e2de9c301cc15eadd5b1a1d1b3d9a5ffc660797c83f6c8\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected\": \"127.0.0.1:50002\",\n \"connected_features\": {\n \"daily_fee\": \"0\",\n \"description\": \"\",\n \"donation_address\": \"\",\n \"genesis_hash\": \"6e3fcf1299d4ec5d79c3a4c91d624a4acf9e2e173d95a1a0504f677669687556\",\n \"hash_function\": \"sha256\",\n \"hosts\": {},\n \"payment_address\": \"\",\n \"protocol_max\": \"0.99.0\",\n \"protocol_min\": \"0.54.0\",\n \"pruning\": null,\n \"server_version\": \"0.91.0\",\n \"trending_algorithm\": \"zscore\"\n },\n \"headers_synchronization_progress\": 100,\n \"known_servers\": 1,\n \"servers\": [\n {\n \"availability\": true,\n \"host\": \"127.0.0.1\",\n \"latency\": 0.0031601539812982082,\n \"port\": 50002\n }\n ]\n },\n \"wallet_server_payments\": {\n \"max_fee\": \"0.0\",\n \"running\": false\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -361,7 +361,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet version",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.90.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.9\",\n \"version\": \"0.90.0\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"Unknown\",\n \"distro\": {\n \"codename\": \"buster\",\n \"id\": \"debian\",\n \"like\": \"\",\n \"version\": \"10\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"10\",\n \"minor\": \"\"\n }\n },\n \"lbrynet_version\": \"0.91.0\",\n \"os_release\": \"5.4.88-1.qubes.x86_64\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-5.4.88-1.qubes.x86_64-x86_64-with-debian-10.8\",\n \"processor\": \"\",\n \"python_version\": \"3.7.3\",\n \"version\": \"0.91.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -415,10 +415,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Add an account from seed",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"tent thank common jar orange intact gown saddle leg employ machine display\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\", \"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\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614617512,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfNmpdoN2z4TKnTzmW57bPcQ2neS1yZtXV6iqBJoiYvqNfuRpgNtarFhjGExg9X7hZ41QYyLSPB7jHXYcH177AWtyU4FnfJA\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YqocXT2dPU7SMVWhfQJVxuzp5AUKPqgvKaybohdJjRTEr2vL4Pj8EsKJvMtgjwyCLfMkDUtnmyno4iCN63hxYgzSeocXH6i\",\n \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account add \"new account\" --seed=\"van dilemma claim adult ahead eagle duck purity ordinary original change aim\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\", \"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\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1615584576,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdHBS5qnvU1QHD3vYazfwdXVMeadPahU9CqMJeghjC7TYtYuU9CRkEKLPyEaxfwqMX8qjytfF22noN8N8JQSuiipxKUdUeAo\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WkDDyVTWsR4Pn5SUkKrrCq68w6fgzyGY3Kc5H5XKNc5R4fyGJk3FDJZ1zjWK1wACtnD327MYnERu3BKQaA5Aexpx3JqVaYU\",\n \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -456,9 +456,9 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Get balance for specific account by id",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account balance \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"2.0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -493,7 +493,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account create \"generated account\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614617512,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfNmpdoN2z4TKnTzmW57bPcQ2neS1yZtXV6iqBJoiYvqNfuRpgNtarFhjGExg9X7hZ41QYyLSPB7jHXYcH177AWtyU4FnfJA\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YqocXT2dPU7SMVWhfQJVxuzp5AUKPqgvKaybohdJjRTEr2vL4Pj8EsKJvMtgjwyCLfMkDUtnmyno4iCN63hxYgzSeocXH6i\",\n \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\"\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\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1615584576,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdHBS5qnvU1QHD3vYazfwdXVMeadPahU9CqMJeghjC7TYtYuU9CRkEKLPyEaxfwqMX8qjytfF22noN8N8JQSuiipxKUdUeAo\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WkDDyVTWsR4Pn5SUkKrrCq68w6fgzyGY3Kc5H5XKNc5R4fyGJk3FDJZ1zjWK1wACtnD327MYnERu3BKQaA5Aexpx3JqVaYU\",\n \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -548,24 +548,24 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer 2 LBC from default account to specific account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000132d41cef83b442d5c02a52d7cc5c665d5babec7960fcaa9a55e6b758a5703b87010000006a47304402204986397b5511342d8598928d402d627c4d15b99758450525b5cf741ca5ed350902200e7f0423dd3054fbbd27544cc1ae346bb4f5efcf30484c780211599dca31f7230121022154229f407e3da7d9bf1212300b2d90acb2bebde8b12f3629d4eec7ae1fe4cbffffffff0200c2eb0b000000001976a91454fd7ae647c068ffca64fd4fff1b270dd904d2ad88ac90d7ae2f000000001976a914e27e2421b53ce41d24f6efd71a54b0d71a05b5d388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miYuQdLrSY52eRscMfQAM3u9efQiFHHXZi\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 1,\n \"timestamp\": 1614617540,\n \"txid\": \"873b70a558b7e6559aaafc6079ecab5b5d665cccd7522ac0d542b483ef1cd432\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"moGLiGk4e9SE6zgkpbhhTWXYRVVd6kuFrN\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n2AY7r7wjQkBi9i2HKRTbGExcqSZTF9iBP\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\" --amount=2.0 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000180f53844c458163587e7a2462fef97b8f18d7cbdb8126704af12c75480b27922000000006b483045022100bd5fc71ce913b92e45198ab5b8a21f60226a9d8f914eb74bf31cf171ac78879102204c632024d52b5c40d54077c44cda78eac270c733c0ecdba2b86fc11d2e0c8894012102fdc5d2a1bb54a816a1a69cff9151f3b8f810f80a6265f26fe1bb5d8dfd11a8a4ffffffff0200c2eb0b000000001976a914791a9f82bebac0c95684056fc5ba1761013deb9888ac90d7ae2f000000001976a9146c0f53cb8eb652b892907ad1b19a383b3061ef9688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n22Hb4rzoXJ8R7DriNFVpzMu96j4kCJKvq\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"nout\": 0,\n \"timestamp\": 1615584607,\n \"txid\": \"2279b28054c712af046712b8bd7c8df1b897ef2f46a2e787351658c44438f580\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrZHx52CTaGxudeeVAgWZcfrNG3wfqfH8w\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mqNKdjTjo4XNfrMnWiHSL1nxaNUNccnLQm\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Spread LBC between multiple addresses",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"from_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\" --from_account=\"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"from_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010d329e3f898f159772129489158312e6bfc635bd85532588e997dd35fbbc7095000000006a4730440220596d2cbbb7786fe4e556c3d14ca93069d6a492c59829a738474dc69cb8b58e3502207089bbce446338804ff01b2f66311ab04d30de656cc52122de4ff379ad588d7701210272fc0810486dd320c64cfb506892385f55c1be3830c90d4baf48493ab5b2c002ffffffff03c0687804000000001976a914155c1bd44dec6ebad3419355d039f576993f31b488acc0687804000000001976a914155c1bd44dec6ebad3419355d039f576993f31b488ac6cb9fa02000000001976a9148b376da42a9be7bc85eb59be0d7304f662350e1c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"moGLiGk4e9SE6zgkpbhhTWXYRVVd6kuFrN\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1614617541,\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhTtpubn1QZAhxTYnxmyGrVxBdmbJqfyXy\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mhTtpubn1QZAhxTYnxmyGrVxBdmbJqfyXy\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mtD4cwfVV1rE9StEYmvwB7iA6wAxEktp4j\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"from_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --to_account=\"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\" --from_account=\"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\" --amount=1.5 --outputs=2 --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"from_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019efca9253c81af13ffb80d1e868429b93e1541401295ba7b1d2157e9bb9ce138000000006b48304502210093a4ca5a23fbac9e67e36fc6fee474cc67b28b6b3a8dde97238a77e026824303022073b05d1a37a8401e13d1e066cb256ce1577f74bc2aa5a6d53f2d266196a2cf210121032f0db3a5737d1206a3b40b73cacce2e8d878fcb87fb5bb59a617d91d5550717affffffff03c0687804000000001976a914f74eac4a266973f50f4793ba1f1218d5c754115388acc0687804000000001976a914f74eac4a266973f50f4793ba1f1218d5c754115388ac6cb9fa02000000001976a914f46b1c61e22f9a7611a34d7a6548e4914bad96da88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrZHx52CTaGxudeeVAgWZcfrNG3wfqfH8w\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"nout\": 0,\n \"timestamp\": 1615584608,\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n44bSjSDyjE2WiK4VfTAAkZzbEQ8vVWuyo\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n44bSjSDyjE2WiK4VfTAAkZzbEQ8vVWuyo\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3oKV46o387p9PMyHH3jyuL9AJLTRa38XC\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Transfer all LBC to a specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000035adccc35c151994176c978fb525da1d1484726defeeb47928e60ddce3b4143b9000000006a47304402207892b6aaffbaefbf40531d03c5a9b511878a59e4441471f45a587a3c798c1cc102204894e9d9997069e62f133e38ad5b441e01028dbbfa3d9178c5d79a39434138290121024bfc784c77b9b5c424e15913a4d4f3d8538b6da71b666916412f70b304f85ac1ffffffff5adccc35c151994176c978fb525da1d1484726defeeb47928e60ddce3b4143b9010000006a473044022050b62c6003325766024e2e3caf381eedaa5c9fb59352bb522948fb980b5ab40b02205765cdb8234805c52599729e2b65309c8a9b0e0fac45da36b2d42c9b306be6ba0121024bfc784c77b9b5c424e15913a4d4f3d8538b6da71b666916412f70b304f85ac1ffffffff5adccc35c151994176c978fb525da1d1484726defeeb47928e60ddce3b4143b9020000006a47304402203530e0b1af549313bf712079f0377c84bff41ed4dc3fa69f1684c25a4dc7777902206ded78228103e93902967f4a99bb1cade9131943df04d8fe30e84c2d9d3de6b9012102831272e46298d6dfed2c5e529f9d6894ab283561e60014513681bd9d76674719ffffffff015027eb0b000000001976a91404c1edc3789904c0bbf3fcaa95df0451ffe8ac3388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhTtpubn1QZAhxTYnxmyGrVxBdmbJqfyXy\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1614617541,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mhTtpubn1QZAhxTYnxmyGrVxBdmbJqfyXy\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1614617541,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mtD4cwfVV1rE9StEYmvwB7iA6wAxEktp4j\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1614617541,\n \"txid\": \"b943413bcedd608e9247ebfede264748d1a15d52fb78c976419951c135ccdc5a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfx7KEBWyBYeJNBnLpfQUvz3MJQgfhgpK4\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"9bd18930dad54b06895ae9562b5daf0a56b8a57de63e6f7e6ea6f73e457881e7\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"9bd18930dad54b06895ae9562b5daf0a56b8a57de63e6f7e6ea6f73e457881e7\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account fund --from_account=\"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\" --everything --broadcast",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"everything\": true, \"broadcast\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000033ca354ca7e4dc06f748c5be5ec2284d60e0f74ab5deb836d1a15e8a4724b708b000000006a47304402207216bfe5617e006a7527855f328fc072ff7dbd0e65041a47238086a34863109902204d34198618e9aea86871043830590e4f672f8bf92897c0c64aaadf75be5ee996012102ee0795bb6cba5c6e605bcd0e47654e41596ef08420869dd5ed0bd649d77feeddffffffff3ca354ca7e4dc06f748c5be5ec2284d60e0f74ab5deb836d1a15e8a4724b708b010000006b483045022100d59f003aab9aad3dc3dc2524cf036c1f56b2585cdb94762ca3a42dad8921c34f02205da9c8ce0946ec863603cbe88d35559ae1f94bffc961077517f191d25b6eb0ff012102ee0795bb6cba5c6e605bcd0e47654e41596ef08420869dd5ed0bd649d77feeddffffffff3ca354ca7e4dc06f748c5be5ec2284d60e0f74ab5deb836d1a15e8a4724b708b020000006b48304502210091592f0bb80217271b9fd9ff86be0104c10e2d83f44d5aed1cd93f86752394fc02202f55ffdff9e1ae51975a121e16d373efc89cecb3adefc669df661f6612c99e8a012103eebd7f7d3e1b5f9b3c9982db3004e576ee1a43afa388b508032eb2de6f3d8df4ffffffff015027eb0b000000001976a91481ff85afc5958b2816f3abd54bccbbc5af2408c888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n44bSjSDyjE2WiK4VfTAAkZzbEQ8vVWuyo\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 0,\n \"timestamp\": 1615584608,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n44bSjSDyjE2WiK4VfTAAkZzbEQ8vVWuyo\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 1,\n \"timestamp\": 1615584608,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3oKV46o387p9PMyHH3jyuL9AJLTRa38XC\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"nout\": 2,\n \"timestamp\": 1615584608,\n \"txid\": \"8b704b72a4e8151a6d83eb5dab740f0ed68422ece55b8c746fc04d7eca54a33c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msNKZo3skF216TbdtTLZzgh7v2VTagh8Lr\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"92aa9677fd0d55b39e8081bab760d8f7b463d99f8bd8c270acac96bd1c2391b6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"92aa9677fd0d55b39e8081bab760d8f7b463d99f8bd8c270acac96bd1c2391b6\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -623,7 +623,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Yb4yA32NnmtemPgx44k4uPrhwheckV8v8187ekKvvQCRcFe92srG96sDAuhnNE1ouakm5pSrLLHb4DE7uiZ4LrauuLJbmk3\",\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\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WbiZfxXQhcjt8rGK3xVBJBf9LSpFc9gWTpDh15XaLL7UEsHoKAJrkTo6Tyrz6ASV5XRX3DqCRZzusdJGk1H1L5NnAun4Nnh\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -668,10 +668,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Remove an account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}).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\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614617512,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfNmpdoN2z4TKnTzmW57bPcQ2neS1yZtXV6iqBJoiYvqNfuRpgNtarFhjGExg9X7hZ41QYyLSPB7jHXYcH177AWtyU4FnfJA\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YqocXT2dPU7SMVWhfQJVxuzp5AUKPqgvKaybohdJjRTEr2vL4Pj8EsKJvMtgjwyCLfMkDUtnmyno4iCN63hxYgzSeocXH6i\",\n \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account remove n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}).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\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1615584576,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdHBS5qnvU1QHD3vYazfwdXVMeadPahU9CqMJeghjC7TYtYuU9CRkEKLPyEaxfwqMX8qjytfF22noN8N8JQSuiipxKUdUeAo\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WkDDyVTWsR4Pn5SUkKrrCq68w6fgzyGY3Kc5H5XKNc5R4fyGJk3FDJZ1zjWK1wACtnD327MYnERu3BKQaA5Aexpx3JqVaYU\",\n \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -764,10 +764,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Modify maximum number of times a change address can be reused",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\", \"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\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1614617512,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfNmpdoN2z4TKnTzmW57bPcQ2neS1yZtXV6iqBJoiYvqNfuRpgNtarFhjGExg9X7hZ41QYyLSPB7jHXYcH177AWtyU4FnfJA\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YqocXT2dPU7SMVWhfQJVxuzp5AUKPqgvKaybohdJjRTEr2vL4Pj8EsKJvMtgjwyCLfMkDUtnmyno4iCN63hxYgzSeocXH6i\",\n \"seed\": \"tent thank common jar orange intact gown saddle leg employ machine display\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet account set n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6 --change_max_uses=10",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\", \"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\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1615584576,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdHBS5qnvU1QHD3vYazfwdXVMeadPahU9CqMJeghjC7TYtYuU9CRkEKLPyEaxfwqMX8qjytfF22noN8N8JQSuiipxKUdUeAo\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WkDDyVTWsR4Pn5SUkKrrCq68w6fgzyGY3Kc5H5XKNc5R4fyGJk3FDJZ1zjWK1wACtnD327MYnERu3BKQaA5Aexpx3JqVaYU\",\n \"seed\": \"van dilemma claim adult ahead eagle duck purity ordinary original change aim\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -803,9 +803,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Check if address is mine",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mtvCXEsGA2q58oQguPN6UX4yW6G2siM7gP\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mtvCXEsGA2q58oQguPN6UX4yW6G2siM7gP",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mtvCXEsGA2q58oQguPN6UX4yW6G2siM7gP\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqwU2Uet3LmmRMSSjHJ7KP8ZwELx3wpAWS\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address is_mine mqwU2Uet3LmmRMSSjHJ7KP8ZwELx3wpAWS",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mqwU2Uet3LmmRMSSjHJ7KP8ZwELx3wpAWS\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -852,14 +852,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mhD6W7FXxoQNTAAFb6bECZF5X4wZLqmA8L\",\n \"pubkey\": \"tpubDA9GDAntyJu4SuhChfFCCfu8Tc3MAn6obZhQfy9a12gbDF4p5ubnw2UEX14JdJ9v7Vyo33h8kXSXxz9aUVP4wYBrZmHL1SZhSZg6yC2KZGf\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"pubkey\": \"tpubDA9GDAntyJu4k19VpZ7D1hQ6T9CZa9YkyZGY1o8SzNsuq2rrD53fAHTxeoyeF3ZzNJ5V53yfURtVNW58tVJDqkxF7WnVzDKBkoGksva9BsF\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"miPM5b4GHqaWFNBETw7Am9C8p5zcSRAcxg\",\n \"pubkey\": \"tpubDA9GDAntyJu4wKW6x4o9id6ZkawXDGobFKDJZsg4pRCym7Ej9CC8LXUPetQEF7EEVq6Gv5rCLN3jmn2S1LPohEixLAwSQd8gYznMwQTdw97\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"miYuQdLrSY52eRscMfQAM3u9efQiFHHXZi\",\n \"pubkey\": \"tpubDA9GDAntyJu4ELSuUmgxbxBkqoZaq9F3bCLGsa7YDZpyg6HeYacXV3S7r5QnryvJM75UHPfzhyhU3bagYdxUA94BoM6xZwXp19eTRkNMh6c\",\n \"used_times\": 1\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mj4Y4stof3Vw3itRb5e7M5cnt4L4haTPXe\",\n \"pubkey\": \"tpubDA9GDAntyJu4Yo3GeXGEGuUu51akjsA2riNMv211bdZxGryBgPL4rTmtDbs6bfcD3cA5WKuKFYWsYobqJbTxdSBp4Vcn2Pz627SUkcTNY3Q\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mjKVfMRwZAHrPeBX99sMCBi1WZuMFSuqop\",\n \"pubkey\": \"tpubDA9GDAntyJu4Jq1kVfkxbyBKgzHzWvySYNXzdhSKauphenfgoJ14gMCnHb9cuBVdEeSuxMAj195ndYTuXkv7jcUfjn3P2PKNRTN8N8fRi4z\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mjY6uqFkdGDNQtDyKHn8fE7bY7QiqahBQY\",\n \"pubkey\": \"tpubDA9GDAntyJu4XXeFNCkHEcJsukQ1YMMLL7SpBooYmtkPqG29kCUiQfZse63S6bRLgm1K1CghiwYobxH5uHoDwsQqbZvHHDWVnAVdoKzm7e4\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mkETCup9SZQYbmUGDSECiVX7xRRLcjBUNu\",\n \"pubkey\": \"tpubDA9GDAntyJu4TcEuU41ZXAiKZUnrseTiDgVEg7qZre26EBMf6M65YpeoL2fsXZEHy6ewzMwbS2cxijzmm6cNsntsb5Ue4iGTae8c7bMzgdy\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mnvSyH1YWMVpFwG4tWt6okP2XE6NF5GULH\",\n \"pubkey\": \"tpubDA9GDAntyJu4rENx71GqeCrPZ3mP5z7cGoXo8DFm5KbG5KKyqb5PZa9TLFnYWzThSX7X92wjWx3xb7P7MFdwVc5kZag7tuTTpQW4wxmV41W\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mpi13upmq2FsTD5BWZnf3GcEsdwKVbxNTV\",\n \"pubkey\": \"tpubDA9GDAntyJu4FxSPi6nLjgV896EbDYa7yk7ay1Kqqmxv1kfsKWWzXrvHqqVBTyCrfgjv372RHSZvugXyVmK2VXawnL1jPuiLmUuqrXQtSa2\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"pubkey\": \"tpubDA9GDAntyJu4bc67KJ1r71QFytM8n2xHn672qiVmh74TjjHNuc9PkJxpYQuiZuPdQ59uEk5cq3rWZG6dpUfqQdqeKgXNEm8W88zdMZGTzyr\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mrhWsEWjXLCpSRBKrwoKCGk3iUDFt28bgH\",\n \"pubkey\": \"tpubDA9GDAntyJu4HUXKDLzqShSRCZh9a4qLHoV42gJEL5VpGjcTuwfd68CyHaQH4zPQQB67qJBrRjezCoDeuaK9f5DzjbHwkUBh4av2MFmaR3j\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mrvwv7dcS2dQ8M6L4F4DfBqu7u4pqqeSSg\",\n \"pubkey\": \"tpubDA9GDAntyJu4QTPfnXHtKodUK19jFedUeAP11KPJ2k7TU9hRMy39wdmFaeQjTL19VE3Y1ffYv3a5e1TdndWv8KQKDshqET97vAmEQaY2ajD\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mrxKxB7oSggczKX3n4nhJnE6CKuNQTPzuu\",\n \"pubkey\": \"tpubDA9GDAntyJu55N37r4ihdDzcuuzFhKRG6XjGabXkHidZQa6vcLYiEgaMBkDqspBba4zEYyVWpNBzko2a81rEhbzokKRNd4zmrgfjBRa8Pa8\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"msdoyVSK5w4ogmqN8sK9gTduSXiUTkAgbW\",\n \"pubkey\": \"tpubDA9GDAntyJu51npWkF9cdbhsLKUsoJSeV4kSTnfXuqpGkwKnyuCgvoYeKfvU6CqjFJP7TrMvsbouCypGbjGNtTuWFUaTYeavwheK4MBb98n\",\n \"used_times\": 0\n },\n {\n \"account\": \"moetGm9Nacy2cehxsaXyN1yknhMRmbigia\",\n \"address\": \"mt6oz3ZNkLvXMBHN5yES4qtXU2mBSnWa7X\",\n \"pubkey\": \"tpubDA9GDAntyJu4MrZgsbFEFciNRCGBoEfpj9VWopzZUFKBPMSRkWQLBi82mmGzfJC5e1QEbLUo5szrDmH14S6XTycbWuE43dimvR3R8uWCXr9\",\n \"Line truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mkHtF4yhanVQVtjtHATGyr4m5g1UdJgS3q\",\n \"pubkey\": \"tpubDA9GDAntyJu4VKEvp6Qr1SJ2jU3gj7XMhqqXPYoufzKdDMZCiFu2xFJaHnZVW8AmWEVsJPC1QXE5Jkn7PKVm63bxaENrV4UD39di1s6Y96s\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"pubkey\": \"tpubDA9GDAntyJu4mCJpp8xm4j2cxxKpfvv5mu3yTepZeEUGGoeecC6g436Hh91j56ccTVZDVPcuJpDyzqEauYqg2F4M3gPZXxEvB2kMUkqR5i2\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mnkAf6W7HKb3PH79QgbkcE95fBmFHk9Sqx\",\n \"pubkey\": \"tpubDA9GDAntyJu4Lf22Yy8kvAX9B1EHabPNYmdCzpj7oq2QqqEsAs3MLZmyyXJNSY3WXFxnY25vnXyjGaYV7j1hTyehFVhvopGPMNUMD3unxUR\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mp5mSdghRQyuBFwc2ASnSUAvuEu7qkqmsv\",\n \"pubkey\": \"tpubDA9GDAntyJu4TfVGM3LRBmnWiWAFtstMjZ5Uti6zZnQWXYWLwVb2EgiP1nvP3pWGrN91e8qSy4ENXStuu5QiAarUbwLsgq43fN5qoPCXdwS\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mpxyKvpi4SN9P3CZkobvinfjf4vAGuKiyH\",\n \"pubkey\": \"tpubDA9GDAntyJu4SBQxCB578kKZ7pgd4nqNQcA1x8PtETAJmgNF83kZrrchgarV6MKLBakWRiKgXzuKGffho8JPpdWGd3UARYGzYbJs3o8y1ZP\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mq3VxAFmEjxqQCjoAw5SZsrAozLB8r1WH6\",\n \"pubkey\": \"tpubDA9GDAntyJu4H7A3NWENyt3bh7w7mWAJhMjPXvbRpCgSkR7BjQeV4WY7yMmNZfoCUHQST4y2x1qm21FkbkmAGzLw49q6uikFgMNrQcPouGp\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mqNKdjTjo4XNfrMnWiHSL1nxaNUNccnLQm\",\n \"pubkey\": \"tpubDA9GDAntyJu4LAuSqC4r92TRzcNcMECefYiQm96jnBHFfR2xKHgSFhNgL1tTiucWNBqnddvbbWcufS3eatb5EySp9ivxz8TsuU3ubKVjgei\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mqXGJYv88GSeYykYhmvg64wNnEEg8gMHtc\",\n \"pubkey\": \"tpubDA9GDAntyJu4Eneghfniz4utfe1DdGKGGzK4F4UaFr8dXCeoV3eARLbuTWx1BZymN4h3qFNMoLFhbTmVKs2Rj3zz6Au4qBnPw35Cup3qx3s\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mqwU2Uet3LmmRMSSjHJ7KP8ZwELx3wpAWS\",\n \"pubkey\": \"tpubDA9GDAntyJu4MXpsCUr8Axw1nCTg1FA7F5xuwQiFUHueNZH5ZiiB3Nzfjarfyrvm2yMjujzhbpL1P9KvEi4JgQTegNZgkqB9pymtJPMCKzm\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mrHkhVYDHRpEArVbrszQSMsRtGgpGJZPrS\",\n \"pubkey\": \"tpubDA9GDAntyJu4sVPZuQRMKU1BwVirPrSo7W5BbCTqrScSUbqBKKcpT8ftAAUbFBfH6hvhSbQMGq7tVg2rRPgi4yUYsnJjYRqra5UeeE9LRNC\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mrftCy8xGxvWHY4p66xNxFZZZwdU8fcT7h\",\n \"pubkey\": \"tpubDA9GDAntyJu56cXDXsb1Bmvyfgw56RzjX93evCQs5sQ8TgPhySt4qkH7e8nffDQ1vrejvdakWUJEmAk6HxXS2ML4Fybu5oC75yWqAKhLaq7\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"msNKZo3skF216TbdtTLZzgh7v2VTagh8Lr\",\n \"pubkey\": \"tpubDA9GDAntyJu4NuDkuhunrtDUWfkEa9Gk7DeYTqS5f8XhYvTtVfRVBZuhFqbVvxz7L2NjgHg6Gaefx8bQ9zLhKZ6UQJLZc7kU3Ra7GCkzUS9\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"msjz4bgF42SxAjwjimtP7hCqXnnz6Kg6hT\",\n \"pubkey\": \"tpubDA9GDAntyJu58Y9eBSUoySoCGwpLZvniHdPMpJgGs3m3HLBCgGzG94MdHWwJm6SAnYNiM1trFXMtT7Ae8SG2GBVKWiP3Xxr3mPh5EsKbkhh\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mt6sq8ancqFkSz3vJXcYpnK3PQeit8yNrM\",\n \"pubkey\": \"tpubDA9GDAntyJu4Tf8LaUKdLteFwAhE87SfEZUFYDpY6DDjtwYrYCf7rhRg6Uu7wrAKtHUopw5AK8KwEpAbBVT9Xj8MLuvwXveqhFWjYhgzSWg\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mva6uC3NvQcq5PEzJnGMdVdYTsn8UrJ1aG\",\n \"pubkey\": \"tpubDA9GDAntyJu4p799G2K46tmCnFfeNZRQzngSvNSBMY2pT8wCcXBnTBqXxbXXNKiMNwczUV2wsAMWBt7yBfSTrxSsN8YV7ro3HCkQNjXDtps\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1YhBK34Jjtq5ycwyCnC1BnYin3Mt19rNe\",\n \"address\": \"mvqE9aA9HhQsvB9QDeG9mbrPqRxTgLDLUx\",\n \"pubkey\": \"tpubDA9GDAntyJu4wQr4AG4S5TXkFw37K1LUWBRfP8UVAeuN48MyRpNbxgg1qWeYWxoskFfGkzk8nJRtJkoMTqmjyYXCpuPVxnGAiH2qssgaYuU\",\n \"Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List addresses in specified account",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mg5pjFcqNgssvvARZ45TQ6fQKtrmxKTujz\",\n \"pubkey\": \"tpubDA9GDAntyJu4w8rpMBzhbP64GQmTDJL56f724zpR1813PC1qHnysvWiSKT45oQexCuKGGVBhfRoumTwPTFuHCJz4nVqLb6Q1GgL1Xdmrx6P\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mgZQuMVDZ2TjEBtejxKRhYVKGH3JBN9i4E\",\n \"pubkey\": \"tpubDA9GDAntyJu4Jm8h7JifKMPwufPCQSPCeRZpx2mpDa3CyMmRqoPqVRyGysMdMkpsuxGne8GgYHdowVQNXDvjX8p4zcD4ZBWcPirqKDduRyb\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mgoD77f4yRbV56JKCJjFU5n9KxE4W54kK6\",\n \"pubkey\": \"tpubDA9GDAntyJu4fJgxTkg18kXpd7aDzx4C2tnNwjADn9snhgLL7HtuBxBomTZUaGiZrV782oEWB9EidRMNK3PvBEHdWdq7sZ9SjmgWGGHYbka\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mj2bt9Nxtp6cTu21KPy7fQaSdmQYhoLyoA\",\n \"pubkey\": \"tpubDA9GDAntyJu4tBJXe2jh4eZ9xLmFFfq5DsNYVeHANyWEgo97JEzb2eJMUdwCJ7YQRR1FEvE7xQMhNC4KGZterMTFhyTbrj3Wdix1mx5U2dF\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mjNfwntKeDUGrs2EM1JtdrmVANy5Rchbye\",\n \"pubkey\": \"tpubDA9GDAntyJu53ALJmpgjSp6MnbavYuTkYVPk2qjq1VdRDBG7vFgZiRJhyhMMWRcqCMi6vzBzPiZicHT4B3rfsR8HAMYgwZjhArzJjj8acRQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mkuASEDuxGxmuLTkHKaJVSQGAshuFRpn6P\",\n \"pubkey\": \"tpubDA9GDAntyJu4ix13QzDXUthWPWkwBFsZygvqt1xgveBHkEZvKJjt8oQ8iKezXimqhurnQjFXFAmEY39zyMU5L7G19HVrM9ZLZTGgThqc4k7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mmmDGK34t5hToNVWdd1Ck8FRMZCTS4mQgh\",\n \"pubkey\": \"tpubDA9GDAntyJu4YXksLDJcZ1bbMnTeRCwAyZPVCaYiaaXzDeCPTg2BowaTHviWfvx4AfwWACpHRQfgZybLE3hjqJkxxfdaJjYbLnXLzYatj1t\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mnVBUd9GzaTfWhEXfBoVUNhLtH6creMb4x\",\n \"pubkey\": \"tpubDA9GDAntyJu4FmRoSyap2bxwmn3eu2awUo1tnwhztai5Xj2qxiGw6mbY2334PQhHhvvE4i2AxTn8erxiTH1KVuq3hrrGK3wnFvUT6vER4p1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mnzyt2PiwXgWkqRN932o3ZF3Mv8ViYxopT\",\n \"pubkey\": \"tpubDA9GDAntyJu4KC1e6MCzkTb5SZxY1LhkCZGL6Zik4TgwM4kb4ocGEgVGtVxGjHB3BCh4NgmjnmAdv3vd3WfSJUURZPMM5Tc5zLPh9zAuk5B\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"moGLiGk4e9SE6zgkpbhhTWXYRVVd6kuFrN\",\n \"pubkey\": \"tpubDA9GDAntyJu4TxctXitMPVrMkoo5BaZis6DVUwk2ebrXEg4XzcxCzoYDX6cMZTmwcaA9PQJ1uVeAmqAx44L6mcFDaYDTkcmQ6GetnxyXi8R\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mpCF6t8AkRrYe6yoLUkRSmVPRudBwe3PHY\",\n \"pubkey\": \"tpubDA9GDAntyJu4n3xyT1WEujW7NAx7DM3DnvoUiSd1bgnrmu9Q6QKo9apagiGdHXpm79FybNVAwdNm6sSK38VMxc7MrxSvgVHgZceiQv9eg1h\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mpQYyuTDSYKShf3wFgXK7AepZ4NW3ZBWCT\",\n \"pubkey\": \"tpubDA9GDAntyJu4QjFxxzvT9zwFaDgqWMQvMtfwfVC36wbED7T8kzihmxZjbQvS6iDcaMWDFcVLjPnbHE8yucvZryt7eRQMHGK8gYwo9fcdQyB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mqZQYYsrP7mdBG3HnR2j3L3Eih8YA5aN2S\",\n \"pubkey\": \"tpubDA9GDAntyJu4XiR3MqBPAwGF9yivZd17KhDacr3cCY8YxSd2AxTanzpanYXfB64oEnDrRzJGr3e4D5ozVXBJRFjTQhQo9dCWg4e2LKeWzPd\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"ms6LogwYxDCEgDnaEpx26NWyeobTt16Lpn\",\n \"pubkey\": \"tpubDA9GDAntyJu4TFoLt9SGw9AN98UcNv92VrrVhvR2tkWim1QWG8GSzsfDXE9tb6kMmYAkLuLf2J7dEw37D7hsZCbXSGbcZGV9nzWqZUARHHh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"msTLNz1a553EwTdyU4KpaYEDt45JUo6oak\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ec7oddukLdLNHRq2t3K19TGNHUbyPDspWP2TFsW2dE2A5X9mpKuT8db57C299iY5xhdRAMYaLrnwowmzytepDiQ3CthuPxN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mrGeWaNtsACvfSZBAaDk5CuEporjwGKERo\",\n \"address\": \"mtD4cwfVV1rE9StEYmvwB7iA6wAxEktp4j\",\n \"pubkey\": \"tpubDA9GDAntyJu4HdgwssdTMN48zmqPod81562vS8mxmD1eUMEvdMz87aCnUnScropSBTiY7eVQHy1t67dt1eMrAzV4YPe8Dafce3yaCMGFzBq\",\n \"Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address list --account_id=\"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mgN8FxWSyQCp7kiz1epV44uCXkj8bcEzMq\",\n \"pubkey\": \"tpubDA9GDAntyJu4U53iNSmJ8jMqBmdcbFJZFppCqrpWMgcw8MnE6NE9Mh43YLYbLdqUae75VUvAHF61AemaZh2oFChRqyhP4Qz8VryLQ9j7XdA\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mgrQyGKe5jMhrVcjJueC1uUMrLvDcabn6w\",\n \"pubkey\": \"tpubDA9GDAntyJu567yVhBtGCewHUApfmvrr2eRe7rqNk8c6ox8vKz8TkyEAhK7tBkP9AwV6RX1cYZFrEFWhhWsLKY1TeyAwuxcKigHB8FbvGYw\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mhDUQbRUp6kSMZ41UjYbuizqFzPU5utVLt\",\n \"pubkey\": \"tpubDA9GDAntyJu522WL42acmJfMKX8Qc1gwk1uCcxAmxLZfEMiZsQPCrgsQNpqHw4QmkXQHy8WbJY9g3bHtNnQHZ3i6bJjGPNnaa2122gfkvKX\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mimQSUqms9gWccWPwQyYqDp2P2B5gSbqXm\",\n \"pubkey\": \"tpubDA9GDAntyJu4ErNuA2Xd5mfSNwqVQgAUmd9tQqEdQ8HKkSTMn6fyw1rmyhpth6Zmv6pAaTNQQRM69LkZRn6KGn6H6Jw1rRE3uPLaaAUU1G4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mjCf7DmeyJjECSanT9xac4UiCn6mByRuoQ\",\n \"pubkey\": \"tpubDA9GDAntyJu4t56KS93f1xYWvuYdaumEXSLvBGmnihqQhXtJdzx2mqs5dc2sLeTfZ4HpWKTxEEGLs6ryje2oewpeNiaeLeDjfVgkNQdUnXu\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mjPuyS9eubWpc3ZxfRfbhqor2hyXv9R7s6\",\n \"pubkey\": \"tpubDA9GDAntyJu4b47QC9q98MiajRft1gZzqoSV873qz7hMaSXNQtr7DZTnDCqTYhVdL7m8mmTZAmAevppvZAHmfeQWUnMvYMCJ8VhUqZ5SAXS\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mkR5MsjruB8D1TdSz8yWFnLHgujo5A7fLm\",\n \"pubkey\": \"tpubDA9GDAntyJu4EnYECwbeuNrDYEta2eo6nyJtLzHJoKoWY3oKKmodp1g2hAHmQ689SX6HBVT1X6hFqbkFvoHUzBsgDRrEXKDZhzqcT1UFfT7\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mmaxCaSgG9hh6DXXPMGwhHmFpRQGLbxgqc\",\n \"pubkey\": \"tpubDA9GDAntyJu4TQSA6iL1W5DL2szjqMVgRhNEZqpRRLqVRtwEcLYQNbFp5FbKjEzWr9GcjTioaZUj3beHLFumNhbsjC3rPYi8tvkqaLBbib8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mnYsZ5paD63PpZwdaM688eJwZcHoGXuFPu\",\n \"pubkey\": \"tpubDA9GDAntyJu4MGF9CrAXZs3MNZLe8nMQscLUnMbFzrWiQxzwSytaeoYNLRTtbj1xyGUdnrZekmPc8yRm1RKb56t7Muc98JEt16oF9fZxSwB\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mqdSoBw5qNifRUB87XP84h4P1LfgEo9WgW\",\n \"pubkey\": \"tpubDA9GDAntyJu4yDRGuZy9JbqB3VSJHrHQKju6hWfaCWdNupPN6qbGh2d2NmUS7zZjjV3QrUUo3FaiMQXtKF3yCLrGwHwgGZnqNUK5eyoW2g4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mrZHx52CTaGxudeeVAgWZcfrNG3wfqfH8w\",\n \"pubkey\": \"tpubDA9GDAntyJu4JzM4AwxxyWyyPwzNPTPU3UKNTruQVmazao4ufktsWy9SiLwut69mAqLmjSnLFePmC8xwDED8DRBXN33PPutG96s3NrWA6pC\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"muHA6N6VQPrfsxKFh4yYt5nRCcr7gwrVfm\",\n \"pubkey\": \"tpubDA9GDAntyJu4HMeuMNAEtbeeKfw1gpepsYHxoKmKXs6owjVJguwEtNMChGziCkKh932kbVPDHrW8zBGP5doD2EsW6M7z425HUT388P9yc6v\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"muc8E9U9FsNGZCiLFNjmXqsaVs5qAXmnek\",\n \"pubkey\": \"tpubDA9GDAntyJu4xE9sJarEJEjFcosUVc5k8dePYYtRNtAJFXx9RAmghtUkboAUPcaaUFaWUhEoKd4ihJAxFWoq34Q5swSups1yHXW8Qbw4HQL\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mvjJeWmfnzmBniCywpYgiEsscwsCjV37fr\",\n \"pubkey\": \"tpubDA9GDAntyJu4hcyPHRvbfu7i3tjTiqewzh9yN4Y8Yr4wMF7mgnqm4h3YuYUk2WVyTPUiQmepwVuxYCMzz9rT2BuKZ9VgBShAFegGXqE5H7f\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"mvnm5gLzDXQ66mBvzCquEXG8Gd2xeowBaX\",\n \"pubkey\": \"tpubDA9GDAntyJu4od4jxu7vNwSvdsBzhCxGGPoTZpJU4GCocwHDBndAVTnSAvMwvpLWPfeHWp28T45cv3hHjkk2arAiDWjncWEVFPx45ZEGePu\",\n \"used_times\": 0\n },\n {\n \"account\": \"n48yVSFjB8UAoAZrRJgx4t6sCUNs9F6Fa6\",\n \"address\": \"myh5CGYXMJ5DzxeZKhFcTDHQZs4vH5U8EU\",\n \"pubkey\": \"tpubDA9GDAntyJu4H6TsQiTYXGzLic9LSLTGU3WdfUmJ9ku9rvfwptPGgU3xcTk6yZtqZ52aEpTZ3CE3GYxSFhobFfKqD4TVdzTMFmLXfjTS8Li\",\n \"Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -887,7 +887,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"address_unused\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet address unused",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_unused\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mtvCXEsGA2q58oQguPN6UX4yW6G2siM7gP\"\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mqwU2Uet3LmmRMSSjHJ7KP8ZwELx3wpAWS\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -937,10 +937,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a blob",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete 467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\"\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob delete 36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\"\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1018,7 +1018,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet blob list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\",\n \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"58961338efd8c9625c707d56910cc253284c2735086ed4b390f35d6ea6e14a53ffa828098bb48b1b64170570f4944705\",\n \"c02f2789d2981f4b0060a0dd07701a483911d63174d2b4176b9f5b57f15f07f5503ef75969cab58b9900cb423fd05871\"\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 \"36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\",\n \"5e8e98dcf30a5937b5276159a66616a06ce56c5dfb095770ace5f407a3ff1b87c0571ee35f99d6bf9cb39b841f8e37ce\",\n \"6be3528fa1472e276343c3df3b16296c8064bfa1c1fd2de2316bc533b516723ac458de3c30119a96ad1819230ae8669d\",\n \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1099,10 +1099,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon 332562d354dc89c0a205efccbc3ad570f2ede826",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e682ae85e925c6d1c74e5d820f54a64810e6aa68fad4794bece7f32c05c848a3000000006a4730440220609a1a05c47403eb0d276b89d18816dcb9d5236b2f3585cf22994c68926c8e3b02206091265a8a026800309cc8430b3d2af2c8397c98cd0b831f907e5f8bff80bdb9012103a94ce99ae89da7d9fec0101eb9f86abb863499216cbd68e7a9fc50dc6622a859ffffffff0134b7f505000000001976a9149c1d0ab10b29aa2d2ddae2239c2e3d0c8bf1507b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mukQVqUvP1VA8DbtU4dZQhRX7mCtBmj3LF\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"b8ec0ec3f940e1123ef4b9d80eb0becc2770e6c866fa4038638931327d860c6d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"b8ec0ec3f940e1123ef4b9d80eb0becc2770e6c866fa4038638931327d860c6d\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel abandon c554752bbdab964b0fec3737526efdffa4fcc541",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ec57645b9eb2139b8a4425b24938738da3886920ed1f8086c2c6b2f29fc8171a000000006a4730440220142f0aeeb1cda4fb218a072fd038da7a4212feffe470bb897abb4581e85733ab02201a6f41b4ef0439acf478ad41f7844a57d06d8495ec1686441567d570333c29f80121023e475232aac2aabba695fa6591d0b6f604fb54220d177797cfcfa1a08de0d728ffffffff0134b7f505000000001976a91426a00166d611fcd3e8d1c483febb580e28479d0688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 9,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj3BeiefQd8cmmzBRXVX8GP6T4TRvCYwGL\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"3835d9fab8a83c503608353ab310e11e8e4480352a82f14c00dce1c23b4c5011\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"3835d9fab8a83c503608353ab310e11e8e4480352a82f14c00dce1c23b4c5011\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1232,14 +1232,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel create @channel 1.0",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010d329e3f898f159772129489158312e6bfc635bd85532588e997dd35fbbc7095010000006a47304402204133c0dbf88df2176f218c8f5c0bbc29c245f6aa1eb3cbb0a9c07adb97072ac8022008ed9cc77285474dd26e5f3d327e2a69bf7fbbe3deb0509423243bb16d80bd01012103cf51878980112651725133ef58ce4835e2249613b4c19468fb8f5561471efc72ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad6d7576a9147135b5501344722770c0120a98c62c40957eb02588acc462a029000000001976a91403b939fd79e17bb4f68f28aca3575960bfbc984188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2AY7r7wjQkBi9i2HKRTbGExcqSZTF9iBP\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1614617541,\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\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#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": null,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mfreDPojuipR176hD2AURDizEw9VjPPRqw\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019efca9253c81af13ffb80d1e868429b93e1541401295ba7b1d2157e9bb9ce138010000006a473044022007e25f38ab1804360b30f2aeac501baeefd78fe6b3ce31033f392878dae916a302205fc32b600b3d75808444d4ad52bb68c72df9c314e351c198139ad226b17afceb012103c37e9ed2676b22501da9339fd08ea064692460c0ad0dc98103b61cdd41817aa9ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c6d7576a914c1e3224da0d55cec331b0e7aa250f7427491f90888acc462a029000000001976a914c493c0e11792fc25bc7808c6888dfba291f6475988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqNKdjTjo4XNfrMnWiHSL1nxaNUNccnLQm\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"nout\": 1,\n \"timestamp\": 1615584608,\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": null,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mySMjjxKLniDPCXWVKAqSkogBCEHxm8Ukn\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\"\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\": \"0100000001e682ae85e925c6d1c74e5d820f54a64810e6aa68fad4794bece7f32c05c848a3010000006b483045022100aa8515f49dd1e553ba6e52c9a9c8f1d8eb9769473b02aa16582d3a431f477de202205ce2ad416127653eab5cb07a2fa601962370764edc7a56d8d090fd7a6b1f4d10012103853589bae237270c466d13b1c0bd7e478c5fa71dfe1a0b906c719c03bb4906bcffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200040ca6a45b0900052e3672c72828a611bd19e385636d0d99e3de8ede122b38d87f41a44806d827e7a5195b794b186e78689d364504a40e8829e9ffee254ef437c1121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9147d330d0b2f87042e0651807d567480860cb0274288ace221d305000000001976a91464d002242579ea9f4498813560365770900a6aea88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhNq64YUeZbSgDzyK5gYv8TmsfVZS6yKxk\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrvwv7dcS2dQ8M6L4F4DfBqu7u4pqqeSSg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ad88c3c7ab2c163e55a61e0801cbf9a843eaaf58\",\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#ad88c3c7ab2c163e55a61e0801cbf9a843eaaf58\",\n \"timestamp\": null,\n \"txid\": \"e50a1080b8a8b9b9330a0fdc52259061fdb36857e7b2ee6e2af672ab129a8344\",\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\": \"3056301006072a8648ce3d020106052b8104000a034200040ca6a45b0900052e3672c72828a611bd19e385636d0d99e3de8ede122b38d87f41a44806d827e7a5195b794b186e78689d364504a40e8829e9ffee254ef437c1\",\n \"public_key_id\": \"mjYtgBDpAVvn3P1zUYPGPELvcdTHZNLonv\",\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\": \"mpi13upmq2FsTD5BWZnf3GcEsdwKVbxNTV\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e50a1080b8a8b9b9330a0fdc52259061fdb36857e7b2ee6e2af672ab129a8344\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"e50a1080b8a8b9b9330a0fdc52259061fdb36857e7b2ee6e2af672ab129a8344\"\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ec57645b9eb2139b8a4425b24938738da3886920ed1f8086c2c6b2f29fc8171a010000006a47304402205a2b74f36350cb53fe5db817e68220ed9a75fe2b8701d0fbed913af19203afce022067dff32bbb66305728170db9b62dad0105281b656b1a5b0587071ffd5c885312012103d11435527ac9469ec685669faeb498efb41e120e4699e4e6744dd56eabc10d0cffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004a2e26fcaa9cb82ad1880e27c1f71b332202504922dc515fb4490774e9fb1a57621b4529bb222ea13c472f2f19e76222903dadf8b80bfaad5ec93ab6f1b1f5733121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a91467a4cf0d933d065d93244757a798b39b326a2a3d88ace221d305000000001976a9142df2beebd6aede0818a2359e36b20775f3b9149688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2uh7vqLsj8ku5qJ2mRRZr3dz5XJVPr1aK\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"nout\": 1,\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mpxyKvpi4SN9P3CZkobvinfjf4vAGuKiyH\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0b1b0ee01e69c16a0acf5d59266b7bb295b2a97a\",\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#0b1b0ee01e69c16a0acf5d59266b7bb295b2a97a\",\n \"timestamp\": null,\n \"txid\": \"b87c082c7fca96391575b00eab7803cde700093422b3d3172e8bcc6efd57c8ce\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004a2e26fcaa9cb82ad1880e27c1f71b332202504922dc515fb4490774e9fb1a57621b4529bb222ea13c472f2f19e76222903dadf8b80bfaad5ec93ab6f1b1f5733\",\n \"public_key_id\": \"mjSCAhwzt788T3v1XNzznMvVGDw2edxMmJ\",\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\": \"mjhuVxbKYR4tsXjrHXhfTdCSXCzjbqbFsJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"b87c082c7fca96391575b00eab7803cde700093422b3d3172e8bcc6efd57c8ce\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"b87c082c7fca96391575b00eab7803cde700093422b3d3172e8bcc6efd57c8ce\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1361,14 +1361,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your channel claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet channel list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1563,10 +1563,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a channel claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"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 332562d354dc89c0a205efccbc3ad570f2ede826 --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"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\": \"0100000002202513f2ee02055335b657541abd405fec24116ad35282b321037f2bce0e7ecb000000006b483045022100dbc735f2eca61cb3289ad87ed1850c4f1c8890e6f41102d8d82e51a3f2082d7102202e26ec245dbee5c8d3fa614087ad21915eb5d4315e27fee18d439b27f81e87b4012103a94ce99ae89da7d9fec0101eb9f86abb863499216cbd68e7a9fc50dc6622a859ffffffffe78178453ef7a66e7e6f3ee67da5b8560aaf5d2b56e95a89064bd5da3089d19b000000006b483045022100960a7c311b679f53c84ab5bbafa0ea7e6dec983ee0b5b312c2a291d0f96a270d022001c1eea2cb4ab68d33e4b3bd0a9a87469ab58c62b8ff6065af02cc2619c507b2012103c0cae933d66cb23f634b37722b7de1e692a0111baa0eb76fd5fadd537b832a0cffffffff0200e1f50500000000a6b708406368616e6e656c1426e8edf270d53abcccef05a2c089dc54d36225334c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad420b4e6577204368616e6e656c6d6d76a9147135b5501344722770c0120a98c62c40957eb02588ac6ebeea0b000000001976a9141466e870dfe006a14b78d55f1b2b30b5905f5fc788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mfx7KEBWyBYeJNBnLpfQUvz3MJQgfhgpK4\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1614617541,\n \"txid\": \"9bd18930dad54b06895ae9562b5daf0a56b8a57de63e6f7e6ea6f73e457881e7\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\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#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": null,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mhNq64YUeZbSgDzyK5gYv8TmsfVZS6yKxk\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"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 c554752bbdab964b0fec3737526efdffa4fcc541 --title=\"New Channel\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"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\": \"0100000002743b463e7f2f6e2b631c0f36ed75d5ae0ce1e3dde8cfbfa164d244a181935804000000006a47304402201e2388f6ce31b2fb31ede6d5e4ac4d588fa86eb4e4e66adee6ee43dca94884d202202140e8a4b1975a04d67ef7443a852a97440932b0a33021b719f34d2c6ea20fef0121023e475232aac2aabba695fa6591d0b6f604fb54220d177797cfcfa1a08de0d728ffffffffb691231cbd96acac70c2d88b9fd963b4f7d860b7ba81809eb3550dfd7796aa92000000006a4730440220425b52ae7eb774792fdd29b6d015835b93e6d5fd980147a452714a0251907ae302201baf29f88e9f1ccca263b8b74e0df39a04dd9857cb32ea38e002d9d251709cf301210229d1278c218a40a2ed1e5a4f605f0a50f3b0f17481e86e853f1a9a66cc4675a7ffffffff0200e1f50500000000a6b708406368616e6e656c1441c5fca4fffd6e523737ec0f4b96abbd2b7554c54c6a00125a0a583056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c420b4e6577204368616e6e656c6d6d76a914c1e3224da0d55cec331b0e7aa250f7427491f90888ac6ebeea0b000000001976a914eaa78a9eef0657f8feab070d1a4e4678939f8de088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"msNKZo3skF216TbdtTLZzgh7v2VTagh8Lr\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"nout\": 0,\n \"timestamp\": 1615584608,\n \"txid\": \"92aa9677fd0d55b39e8081bab760d8f7b463d99f8bd8c270acac96bd1c2391b6\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": null,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n2uh7vqLsj8ku5qJ2mRRZr3dz5XJVPr1aK\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -1665,14 +1665,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"claim_type\": [], \"claim_id\": [], \"name\": [], \"is_spent\": false, \"channel_id\": [], \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false, \"include_received_tips\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -1998,6 +1998,18 @@
|
|
|
|
|
"description": "lookup and include a boolean indicating if claim being resolved is yours",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "has_source",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "find claims containing a source field",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "has_no_source",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "find claims not containing a source field",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "new_sdk_server",
|
|
|
|
|
"type": "str",
|
|
|
|
@@ -2009,17 +2021,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Search for all claims in channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"has_source\": false, \"has_no_source\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim search --channel=@channel",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#3\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\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\": 1614617542,\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#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"short_url\": \"lbry://astream#3\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\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\": 1614617541,\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#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\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\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"has_source\": false, \"has_no_source\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#c\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\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\": 1615584609,\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\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\": 1615584608,\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Search for claims matching a name",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false}}' http://localhost:5279/",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"has_source\": false, \"has_no_source\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet claim search --name=\"astream\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3/astream#3\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\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\": 1614617542,\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#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"short_url\": \"lbry://astream#3\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#3\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\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\": 1614617541,\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#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"short_url\": \"lbry://@channel#3\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\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\": [], \"no_totals\": false, \"include_purchase_receipt\": false, \"include_is_my_output\": false, \"has_source\": false, \"has_no_source\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blocked\": {\n \"channels\": [],\n \"total\": 0\n },\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#c\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\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\": 1615584609,\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\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\": 1615584608,\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2204,12 +2216,26 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_received\": \"true if txo was sent from external account to this account\",\n \"is_spent\": \"true if txo is spent\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_received\": \"true if txo was sent from external account to this account\",\n \"is_spent\": \"true if txo is spent\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_feLine truncated
|
|
|
|
|
"examples": []
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a collection of one stream",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"c6c350a68561cf84b94529b41351dcffeb24c1a7\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet collection create --name=tom --bid=1.0 --channel_id=c554752bbdab964b0fec3737526efdffa4fcc541 --claims=c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_create\", \"params\": {\"name\": \"tom\", \"bid\": \"1.0\", \"claims\": [\"c6c350a68561cf84b94529b41351dcffeb24c1a7\"], \"allow_duplicate_name\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001363e22a25b6497c5870b59650c78fc434d6851f6237ba540d6ec1f8f0978ca81010000006b483045022100f9353481934c8fc8c31469a3eba3850d1864e44901e63cd8333611b1f1380a5002203367bc1a80580fcdb187ec4a6f65b46ac902c60cbada9e149c3e94b088c7b3cc0121030dd47724f0e8aca465a43cd0bb13afe13a171c02b84e1a854abc8ac15ce87ebaffffffff0200e1f5050000000091b503746f6d4c6f0141c5fca4fffd6e523737ec0f4b96abbd2b7554c5f5e8393d586aacd0b75105e57ac27f7ce1bd08122e2a4c88c18a1e40a9ab608fff47b1732fcaa9567cc37497f2596b8f492ddac2ab1ca070ecf30348fd9102d91a1812160a14a7c124ebffdc5113b42945b984cf6185a650c3c66d7576a9144f489ba0f450dc6bf0e70af610c2d0eca210249388ac202c7e17000000001976a914ccc7372f60f554a4f04b1e980ea3c0154c0eea8388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2F2zGJ9Sd3J9B7omgAiHKM2QznK6rp44u\",\n \"amount\": \"4.947555\",\n \"confirmations\": 2,\n \"height\": 215,\n \"nout\": 1,\n \"timestamp\": 1615584609,\n \"txid\": \"81ca78098f1fecd640a57b23f651684d43fc780c65590b87c597645ba2223e36\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnkAf6W7HKb3PH79QgbkcE95fBmFHk9Sqx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"f8abd392c7b1e4ddba4cf969bd2d9e0a779858f3\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"meta\": {},\n \"name\": \"tom\",\n \"normalized_name\": \"tom\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://tom#f8abd392c7b1e4ddba4cf969bd2d9e0a779858f3\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 7,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"2901dc104dbe0792d3b2cd58a00cdc6ef1a48738440dbe100818badb689315ae\",\n \"type\": \"claim\",\n \"value\": {\n \"claims\": [\n \"c6c350a68561cf84b94529b41351dcffeb24c1a7\"\n ]\n },\n \"value_type\": \"collection\"\n },\n {\n \"address\": \"mzBinvkujKjUZUDaWwk5gvyXJFi8Q8GRup\",\n \"amount\": \"3.941448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2901dc104dbe0792d3b2cd58a00cdc6ef1a48738440dbe100818badb689315ae\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.006107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.941448\",\n \"txid\": \"2901dc104dbe0792d3b2cd58a00cdc6ef1a48738440dbe100818badb689315ae\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "collection_list",
|
|
|
|
|
"description": "List my collection claims.",
|
|
|
|
|
"arguments": [
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve",
|
|
|
|
|
"type": "bool",
|
|
|
|
|
"description": "resolve collection claim",
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "resolve_claims",
|
|
|
|
|
"type": "int",
|
|
|
|
@@ -2242,7 +2268,15 @@
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_received\": \"true if txo was sent from external account to this account\",\n \"is_spent\": \"true if txo is spent\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }",
|
|
|
|
|
"examples": []
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List collections",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"collection_list\", \"params\": {\"resolve_claims\": 1, \"resolve\": true}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet collection list --resolve --resolve_claims=1",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"collection_list\", \"params\": {\"resolve_claims\": 1, \"resolve\": true}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mnkAf6W7HKb3PH79QgbkcE95fBmFHk9Sqx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/tom#f\",\n \"claim_id\": \"f8abd392c7b1e4ddba4cf969bd2d9e0a779858f3\",\n \"claim_op\": \"create\",\n \"claims\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c/astream#c\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 213,\n \"creation_height\": 213,\n \"creation_timestamp\": 1615584609,\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"short_url\": \"lbry://astream#c\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#c\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": false,\n \"height\": 210,\n \"meta\": {\n \"activation_height\": 209,\n \"claims_in_channel\": 2,\n \"creation_height\": 209,\n \"creation_timestamp\": 1615584608,\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#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"short_url\": \"lbry://@channel#c\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"confirmations\": 1,\n \"height\": 217,\n \"is_channel_signature_valid\": true,\n \"meta\": {\n \"activation_height\": 217,\n \"creation_height\": 217,\n \"creation_timestamp\": 1615584609,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263191,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 217,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\"Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "collection_resolve",
|
|
|
|
@@ -2436,10 +2470,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\": {\n \"abandoned\": true\n }\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment abandon 3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_abandon\", \"params\": {\"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\": {\n \"abandoned\": true\n }\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2494,17 +2528,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Posting a comment as your channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=341a9096806b69ab5904087fefb8e0709afa42c7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"3917a529a33136da5080987aa32134e1102ccabec898629ff7a017740cba50e3be08cfe6e90673d54b37cbf1fbfb739e43c5ad832fb66623b3b22b696ec00fc6\",\n \"signing_ts\": \"1614617521\",\n \"timestamp\": \"1614617522\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment create --comment=\"Thank you Based God\" --channel_name=@channel --claim_id=c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"Thank you Based God\", \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"9928d58bc45c9e150fb337f59547aeff6e5e8d5d4f992366443444b1db29746396c236e0dab66d2c6d87e49a01829d78779e07cef5a19540b5f096d32b557459\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Use the parent_id param to make replies",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\", \"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=f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b --claim_id=341a9096806b69ab5904087fefb8e0709afa42c7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"464727ccf35807017cc662b65e3f7327389ffa5cdfd169906809ab8d05caa90a5e13d62e9252f904bf6834f0078b57754e127c5dcda091d4805e996d4e69b475\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"signature\": \"80cf34bd8a2441b3a2fe6cf7d4f79b909c977ee7dd33adc351c2f86031183f83988cee68f5d3e6168c1226f4fe4dea4d02bab434fd2d9a41847ddc76bee2460a\",\n \"signing_ts\": \"1614617522\",\n \"timestamp\": \"1614617522\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\", \"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=3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba --claim_id=c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_create\", \"params\": {\"comment\": \"I have photographic evidence confirming Sasquatch exists\", \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\", \"channel_name\": \"@channel\", \"channel_account_id\": []}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"63b98aaf4da358417bce4e99a598b01f48d3340a6e5ee7d4f00c134015db7c7319c6b6dbf32528e92448c20bec7bcf1651f0219d74d9d5da409280bc27d056ed\",\n \"is_claim_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"signature\": \"3677eef74b880bf8bb985801506783445a532d4768bb0912307dbac5f2c3c98e00f1b0bcdd7e426de4e4b3839b47e1ac37fbbfc91804d44b64e0c5a6786141d3\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2591,17 +2625,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "List all comments on a claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_list\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list 341a9096806b69ab5904087fefb8e0709afa42c7 --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"464727ccf35807017cc662b65e3f7327389ffa5cdfd169906809ab8d05caa90a5e13d62e9252f904bf6834f0078b57754e127c5dcda091d4805e996d4e69b475\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"signature\": \"80cf34bd8a2441b3a2fe6cf7d4f79b909c977ee7dd33adc351c2f86031183f83988cee68f5d3e6168c1226f4fe4dea4d02bab434fd2d9a41847ddc76bee2460a\",\n \"signing_ts\": \"1614617522\",\n \"timestamp\": \"1614617522\"\n },\n {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"3917a529a33136da5080987aa32134e1102ccabec898629ff7a017740cba50e3be08cfe6e90673d54b37cbf1fbfb739e43c5ad832fb66623b3b22b696ec00fc6\",\n \"signing_ts\": \"1614617521\",\n \"timestamp\": \"1614617522\"\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\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list c6c350a68561cf84b94529b41351dcffeb24c1a7 --include_replies",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"include_replies\": true, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"63b98aaf4da358417bce4e99a598b01f48d3340a6e5ee7d4f00c134015db7c7319c6b6dbf32528e92448c20bec7bcf1651f0219d74d9d5da409280bc27d056ed\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"signature\": \"3677eef74b880bf8bb985801506783445a532d4768bb0912307dbac5f2c3c98e00f1b0bcdd7e426de4e4b3839b47e1ac37fbbfc91804d44b64e0c5a6786141d3\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\n },\n {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"9928d58bc45c9e150fb337f59547aeff6e5e8d5d4f992366443444b1db29746396c236e0dab66d2c6d87e49a01829d78779e07cef5a19540b5f096d32b557459\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\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\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list 341a9096806b69ab5904087fefb8e0709afa42c7 --parent_id=f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"464727ccf35807017cc662b65e3f7327389ffa5cdfd169906809ab8d05caa90a5e13d62e9252f904bf6834f0078b57754e127c5dcda091d4805e996d4e69b475\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"signature\": \"80cf34bd8a2441b3a2fe6cf7d4f79b909c977ee7dd33adc351c2f86031183f83988cee68f5d3e6168c1226f4fe4dea4d02bab434fd2d9a41847ddc76bee2460a\",\n \"signing_ts\": \"1614617522\",\n \"timestamp\": \"1614617522\"\n },\n {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"3917a529a33136da5080987aa32134e1102ccabec898629ff7a017740cba50e3be08cfe6e90673d54b37cbf1fbfb739e43c5ad832fb66623b3b22b696ec00fc6\",\n \"signing_ts\": \"1614617521\",\n \"timestamp\": \"1614617522\"\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\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment list c6c350a68561cf84b94529b41351dcffeb24c1a7 --parent_id=3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_list\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\", \"include_replies\": false, \"skip_validation\": false, \"is_channel_signature_valid\": false, \"visible\": false, \"hidden\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"has_hidden_comments\": false,\n \"items\": [\n {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"I have photographic evidence confirming Sasquatch exists\",\n \"comment_id\": \"63b98aaf4da358417bce4e99a598b01f48d3340a6e5ee7d4f00c134015db7c7319c6b6dbf32528e92448c20bec7bcf1651f0219d74d9d5da409280bc27d056ed\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"signature\": \"3677eef74b880bf8bb985801506783445a532d4768bb0912307dbac5f2c3c98e00f1b0bcdd7e426de4e4b3839b47e1ac37fbbfc91804d44b64e0c5a6786141d3\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\n },\n {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"Thank you Based God\",\n \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"is_channel_signature_valid\": true,\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"signature\": \"9928d58bc45c9e150fb337f59547aeff6e5e8d5d4f992366443444b1db29746396c236e0dab66d2c6d87e49a01829d78779e07cef5a19540b5f096d32b557459\",\n \"signing_ts\": \"1615584584\",\n \"timestamp\": \"1615584584\"\n }\n ],\n \"page\": 1,\n \"page_size\": 50,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -2770,10 +2804,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Edit the contents of a comment",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"comment\": \"Where there was once sasquatch, there is not\",\n \"comment_id\": \"f1f76cbbcb1581cf103a405628df19867b9805cb113461fc1fb94f6b0f09f02ad21b21e4ac4159847830eddc8e07aed8b3e7eb5100de72031d16f6cbacb1623b\",\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": null,\n \"signature\": \"b27214ba2b15d8340bedfa24e1367d96c285d4281003fd8e3d7ff0dbc1e369136a32985ee881f978b46565936b6ec6e43a2ebe6312ec8936fb5dfb89dae8d760\",\n \"signing_ts\": \"1614617522\",\n \"timestamp\": \"1614617522\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet comment update Where there was once sasquatch, there is not --comment_id=3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"comment_update\", \"params\": {\"comment\": \"Where there was once sasquatch, there is not\", \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"channel_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"comment\": \"Where there was once sasquatch, there is not\",\n \"comment_id\": \"3bf1b9120cddc12380351217b5494731ead87c13fd7686dd8e15b9a499bc68e5bf6ba120e2b5429b4a8b1d14f09f20679120d26806e1313b67987a44669f37ba\",\n \"is_hidden\": false,\n \"is_pinned\": false,\n \"parent_id\": null,\n \"signature\": \"bf097351a8435099c6e3256682fde467f7a2b7cc778d05a604f2b8f4c8438dd22ca480397d8be1eaa6988e03a9e388cec0b710688d4053ea9d2e4c22d2503c68\",\n \"signing_ts\": \"1615584585\",\n \"timestamp\": \"1615584584\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -2863,9 +2897,9 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Delete a file",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"341a9096806b69ab5904087fefb8e0709afa42c7\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\"}}).json()",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file delete --claim_id=\"c6c350a68561cf84b94529b41351dcffeb24c1a7\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@@ -3026,14 +3060,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\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"is_fully_reflected\": true,\n \"key\": \"6eff0b1b4c4e5f5dc1c293c8d3d5771b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0126e8edf270d53abcccef05a2c089dc54d3622533abc062f1bceeb8c322c26423ded588879f34e5b62a7ead3fe139b02ff74a575746a592d87e666c0f654ef370ef921d8bd091aad5743760344f6b96f393ad406f0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fe07a066484c5b68ed890991ddd802b86ab5e5b7974015b42c9e5f504c62c32476949dbeb4238265a859f98e84ac8e57\",\n \"stream_name\": \"tmprrtf_b1x\",\n \"streaming_url\": \"http://localhost:5280/stream/7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"suggested_file_name\": \"tmprrtf_b1x\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"0c72e22f16527d3579029d3bedd0a2d83221f79c\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"is_fully_reflected\": true,\n \"key\": \"fa258a093ceceae11c63d634fc60b12f\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mt6oz3ZNkLvXMBHN5yES4qtXU2mBSnWa7X\",\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\": \"1614617520\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpxh499vmj.png\",\n \"sd_hash\": \"467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Line truncated
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"is_fully_reflected\": true,\n \"key\": \"61bd4f29046bdc1ee1590c896a5de385\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0141c5fca4fffd6e523737ec0f4b96abbd2b7554c550d423920ef3e130015116f3dd37636cf1491d67b2d51243564cf7c2cc009c80fd27136bf69230a9522ce6cb61e22bfc48380233c15ef8164367b9cc5864673a0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9a8fe645fa3be3dc60fca473a52d73a3d6ebe500217730aaa4a7bf6d0de5fb96a579aa9f60e28b8e5afa88288428e59d\",\n \"stream_name\": \"tmpg8lcg3me\",\n \"streaming_url\": \"http://localhost:5280/stream/a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"suggested_file_name\": \"tmpg8lcg3me\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"459474e6402d2da49e6842deae2ac66adbae2a5f\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"is_fully_reflected\": true,\n \"key\": \"f48785bdb254c4dbf249635a805f4cb8\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mxmDc6Fv8GNAcbCx3euSbmEhmLcUZ8pA6A\",\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\": \"1615584583\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpcdjwibad.png\",\n \"sd_hash\": \"36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Line truncated
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "List files matching a parameter",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"341a9096806b69ab5904087fefb8e0709afa42c7\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"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\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"is_fully_reflected\": true,\n \"key\": \"6eff0b1b4c4e5f5dc1c293c8d3d5771b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0126e8edf270d53abcccef05a2c089dc54d3622533abc062f1bceeb8c322c26423ded588879f34e5b62a7ead3fe139b02ff74a575746a592d87e666c0f654ef370ef921d8bd091aad5743760344f6b96f393ad406f0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fe07a066484c5b68ed890991ddd802b86ab5e5b7974015b42c9e5f504c62c32476949dbeb4238265a859f98e84ac8e57\",\n \"stream_name\": \"tmprrtf_b1x\",\n \"streaming_url\": \"http://localhost:5280/stream/7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"suggested_file_name\": \"tmprrtf_b1x\",\n \"timestamp\": 1614617542,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"reverse\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file list --claim_id=\"c6c350a68561cf84b94529b41351dcffeb24c1a7\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"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\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"is_fully_reflected\": true,\n \"key\": \"61bd4f29046bdc1ee1590c896a5de385\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0141c5fca4fffd6e523737ec0f4b96abbd2b7554c550d423920ef3e130015116f3dd37636cf1491d67b2d51243564cf7c2cc009c80fd27136bf69230a9522ce6cb61e22bfc48380233c15ef8164367b9cc5864673a0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 100,\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9a8fe645fa3be3dc60fca473a52d73a3d6ebe500217730aaa4a7bf6d0de5fb96a579aa9f60e28b8e5afa88288428e59d\",\n \"stream_name\": \"tmpg8lcg3me\",\n \"streaming_url\": \"http://localhost:5280/stream/a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"suggested_file_name\": \"tmpg8lcg3me\",\n \"timestamp\": 1615584609,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3150,10 +3184,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Save a file to the downloads directory",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1614617522,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpvmqj47sc\",\n \"download_path\": \"/tmp/tmpvmqj47sc/tmprrtf_b1x_1\",\n \"file_name\": \"tmprrtf_b1x_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"6eff0b1b4c4e5f5dc1c293c8d3d5771b\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0126e8edf270d53abcccef05a2c089dc54d3622533abc062f1bceeb8c322c26423ded588879f34e5b62a7ead3fe139b02ff74a575746a592d87e666c0f654ef370ef921d8bd091aad5743760344f6b96f393ad406f0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fe07a066484c5b68ed890991ddd802b86ab5e5b7974015b42c9e5f504c62c32476949dbeb4238265a859f98e84ac8e57\",\n \"stream_name\": \"tmprrtf_b1x\",\n \"streaming_url\": \"http://localhost:5280/stream/7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"suggested_file_name\": \"tmprrtf_b1x\",\n \"timestamp\": 1614617542,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\"}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet file save --sd_hash=\"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\"}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1615584586,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 4,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpj5_nkfsj\",\n \"download_path\": \"/tmp/tmpj5_nkfsj/tmpg8lcg3me_1\",\n \"file_name\": \"tmpg8lcg3me_1\",\n \"height\": 214,\n \"is_fully_reflected\": false,\n \"key\": \"61bd4f29046bdc1ee1590c896a5de385\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0141c5fca4fffd6e523737ec0f4b96abbd2b7554c550d423920ef3e130015116f3dd37636cf1491d67b2d51243564cf7c2cc009c80fd27136bf69230a9522ce6cb61e22bfc48380233c15ef8164367b9cc5864673a0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"purchase_receipt\": null,\n \"reflector_progress\": 0,\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9a8fe645fa3be3dc60fca473a52d73a3d6ebe500217730aaa4a7bf6d0de5fb96a579aa9f60e28b8e5afa88288428e59d\",\n \"stream_name\": \"tmpg8lcg3me\",\n \"streaming_url\": \"http://localhost:5280/stream/a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"suggested_file_name\": \"tmpg8lcg3me\",\n \"timestamp\": 1615584609,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"uploading_to_reflector\": false,\n \"written_bytes\": 11\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3434,7 +3468,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"settings_get\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet settings get",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"settings_get\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"allowed_origin\": \"\",\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"audio_encoder\": \"aac -b:a 160k\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"http://localhost:2903/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpvmqj47sc\",\n \"download_dir\": \"/tmp/tmpvmqj47sc\",\n \"download_timeout\": 30.0,\n \"ffmpeg_path\": \"\",\n \"fixed_peer_delay\": 2.0,\n \"fixed_peers\": [\n [\n \"127.0.0.1\",\n 5567\n ]\n ],\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"save_blobs\": true,\n \"save_files\": true,\n \"save_resolved_claims\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"transaction_cache_size\": 10000,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"video_bitrate_maximum\": 5000000,\n \"video_encoder\": \"libx264 -crf 24 -preset faster -pix_fmt yuv420p\",\n \"video_scaler\": \"-vf \\\"scale=if(gte(iw\\\\,ih)\\\\,min(1920\\\\,iw)\\\\,-2):if(lt(iw\\\\,ih)\\\\,min(1920\\\\,ih)\\\\,-2)\\\" -maxrate 5500K -bufsize 5000K\",\n \"volume_analysis_time\": 240,\n \"volume_filter\": \"\",\n \"wallet_dir\": \"/tmp/tmpvmqj47sc\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"allowed_origin\": \"\",\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"audio_encoder\": \"aac -b:a 160k\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"http://localhost:2903/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\",\n \"libtorrent_component\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/user/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpj5_nkfsj\",\n \"download_dir\": \"/tmp/tmpj5_nkfsj\",\n \"download_timeout\": 30.0,\n \"ffmpeg_path\": \"\",\n \"fixed_peer_delay\": 2.0,\n \"fixed_peers\": [\n [\n \"127.0.0.1\",\n 5567\n ]\n ],\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"max_wallet_server_fee\": \"0.0\",\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"prometheus_port\": 0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"save_blobs\": true,\n \"save_files\": true,\n \"save_resolved_claims\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"transaction_cache_size\": 10000,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"video_bitrate_maximum\": 5000000,\n \"video_encoder\": \"libx264 -crf 24 -preset faster -pix_fmt yuv420p\",\n \"video_scaler\": \"-vf \\\"scale=if(gte(iw\\\\,ih)\\\\,min(1920\\\\,iw)\\\\,-2):if(lt(iw\\\\,ih)\\\\,min(1920\\\\,ih)\\\\,-2)\\\" -maxrate 5500K -bufsize 5000K\",\n \"volume_analysis_time\": 240,\n \"volume_filter\": \"\",\n \"wallet_dir\": \"/tmp/tmpj5_nkfsj\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3509,10 +3543,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Abandon a stream claim",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon 341a9096806b69ab5904087fefb8e0709afa42c7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000015c5062ab22b0a8ab3e85d5a49ec6b9df373fbedfce426e093ed1ff839384b3e5000000006b483045022100fde9a141e52ecfa67b0d8946818bc04ff91fb7d82527edbafc951cc5154e91c60220077dead4cead23e90582c11655a12851546ad0ac90409599fa21e1fa1b63232d0121035c6111d7cb945938d8723d18784600e4e2e3a3465f649e46ad952784b1415d0bffffffff0134b7f505000000001976a91429b5b215165592781699d0dbd80db1fff5e336a288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjKVfMRwZAHrPeBX99sMCBi1WZuMFSuqop\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"a25181256747f0b6920e75e24a36f75f3f7b618a06a031b6560fe530c65246c8\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"a25181256747f0b6920e75e24a36f75f3f7b618a06a031b6560fe530c65246c8\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream abandon c6c350a68561cf84b94529b41351dcffeb24c1a7",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c0a2c3b2b33f3fb60d56e5b2a1153aa494e49543779ec9dbaa4d94a9f0ca77d8000000006b483045022100e3cab20ec37918dde1cd02d03c9e1ca2b4a5dee01f30ec0acaa40be11ef8d1de022015ee87d9a5daa00f37f9ba7699aa35e0a21ab9237ddd8c58139d22703641eb8c01210235a692c30d6eab809762ddcd52f76b4d926efaad4aa3164d9fa2516e5f2bc574ffffffff0134b7f505000000001976a914a8dff52a5c45b2e7c0f86f8657282e489004701788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 214,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvut78iGHusAQJ6ANMBXKFjQvJeEtoZqmp\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"c4bdb1e1bf237af7afe6292b22ab57d0908b7ae8a6b7c8cddf53c178ce720da0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"c4bdb1e1bf237af7afe6292b22ab57d0908b7ae8a6b7c8cddf53c178ce720da0\"\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3550,7 +3584,7 @@
|
|
|
|
|
"name": "file_path",
|
|
|
|
|
"type": "str",
|
|
|
|
|
"description": "path to file to be associated with name.",
|
|
|
|
|
"is_required": true
|
|
|
|
|
"is_required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "validate_file",
|
|
|
|
@@ -3725,17 +3759,17 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Create a stream claim without metadata",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmprrtf_b1x\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmprrtf_b1x",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmprrtf_b1x\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001202513f2ee02055335b657541abd405fec24116ad35282b321037f2bce0e7ecb010000006b48304502210084330f2a6499a1000bb9180d6febf39c06930bcfaa06eaee6a7b551c67cd05940220544ed53fbbb8d66c2c98736227b72c93b4b833b2249a2209f404cf5bee9aa653012103c87713796392383cf70ff6f803c360f5210e535250038b45c91c78f10191dc85ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba296d7576a91418e1f74585d0ababa6a9900e68abbaae775f9f8388ac38fb9423000000001976a914dbcde34ee35c461cbbbd9e271a003e33ad090df188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfreDPojuipR176hD2AURDizEw9VjPPRqw\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1614617541,\n \"txid\": \"cb7e0ece2b7f0321b38252d36a1124ec5f40bd1a5457b635530502eef2132520\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\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#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"timestamp\": null,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1ZAvQeY9v6s3d7ZM1JjJoc99cSgEGKXBA\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\"\n }\n}"
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpg8lcg3me\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpg8lcg3me",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpg8lcg3me\", \"validate_file\": false, \"optimize_file\": false, \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001743b463e7f2f6e2b631c0f36ed75d5ae0ce1e3dde8cfbfa164d244a181935804010000006b4830450221008d080e059c31c57c701ec74e3fb980e0b86e4b2160655bcd282cdb4bcbe5573202201ff0e2d0e479cc24cf0aff7efee5b15750dd47a6b308c609490123c8e5c3c3d9012102f2158ca41b184282c93dc6fbfb40ca438fbc9eefa355ea109d93f254d7fbad11ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d6d7576a91436a2e1ec031f5acbf11279485f5ce9a3e2742bb088ac38fb9423000000001976a9149de6eeb0091cfb26d51b11e7ffbb9d115ecbc25788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mySMjjxKLniDPCXWVKAqSkogBCEHxm8Ukn\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"nout\": 1,\n \"timestamp\": 1615584608,\n \"txid\": \"04589381a144d264a1bfcfe8dde3e10caed575ed360f1c632b6e2f7f3e463b74\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"timestamp\": null,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"muus2dj4agonrHqDfa5rBUHLys6SLc5wTz\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\"\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/tmpxh499vmj.png\", \"validate_file\": false, \"optimize_file\": false, \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1614617520, \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpxh499vmj.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=1614617520 --channel_id=\"332562d354dc89c0a205efccbc3ad570f2ede826\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpxh499vmj.png\", \"validate_file\": false, \"optimize_file\": false, \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1614617520, \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e2e06a7270a7bcb44ab41921cb5eda203e043bcfd2f1ba7d04be11ae07adffd2010000006b483045022100d9c5636a7ebb63384d3df1a203684d520055d9a2d8a89bef191f63ff3e8dd72402203ace6f0dd1bc36d16c1f0979b163ddf9a2487ff1a872517eff4ecf848eb7aa30012102ff6c2fd1fe9a8aca899f423076be784b971de6bb4430dc8908178f23e6d50609ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010126e8edf270d53abcccef05a2c089dc54d362253389ecfc6a60564d434e16e71b722cf031862cbc326a2adc6137adaa6f4ac89099fcd88a5563f97ce23554ae79d69c95e46b155e079af3aba36fd5a2bf3fd4fe130ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d707868343939766d6a2e706e6718632209696d6167652f706e673230467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728b0b7f481063222080112196f8a08b700535c837dcff460f475af1259d206ead8edebcd96188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9148a08b700535c837dcff460f475af1259d206ead888acac5e7d1d000000001976a914317357f5b8cb2c307b01f7c05e496000279b3a2e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1ZAvQeY9v6s3d7ZM1JjJoc99cSgEGKXBA\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1614617542,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mt6oz3ZNkLvXMBHN5yES4qtXU2mBSnWa7X\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0c72e22f16527d3579029d3bedd0a2d83221f79c\",\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#0c72e22f16527d3579029d3bedd0a2d83221f79c\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"1a214a1195a5eef0cec6de82c3a2253d0bbde9328023ab56eb74a37eef4d1126\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mt6oz3ZNkLvXMBHN5yES4qtXU2mBSnWa7X\",\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\": \"1614617520\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpxh499vmj.png\",\n \"sd_hash\": \"467a0cb4dbc2041da81c2e0d27d92130668b544e9df9c358a2f97bf37f0be823494a06989217790c2b486733156f394c\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thuLine truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpcdjwibad.png\", \"validate_file\": false, \"optimize_file\": false, \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1615584583, \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpcdjwibad.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=1615584583 --channel_id=\"c554752bbdab964b0fec3737526efdffa4fcc541\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpcdjwibad.png\", \"validate_file\": false, \"optimize_file\": false, \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1615584583, \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a9dc627db06734351bd8c4beb1b71d1a685331d4a5a8a1fb314f55e83b079833010000006b48304502210082ee89f320d26d356337635aa216e7ee54aa43a123bdf669320d9a76911b0fc102207fda31483c4e8d5e56ccc0897109572110f8ec8505d60a110ce19468410bb77f012103ddb02bc325c83a313ec8b80f82e3f59a707867326d705a4aca4f7b80f0948d4fffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010141c5fca4fffd6e523737ec0f4b96abbd2b7554c5b090588afeef9d6519aea72087552410c9fdce723b6b26966127277f88ebd827d627534007a6c1352ab7410aa46ac2e9b71d4c2bf0960cf1844a4dbbbee27f900ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d7063646a77696261642e706e6718632209696d6167652f706e67323036c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728c7baaf82063222080112196fbd2cbe258a38f1268bac9c59c92921c8bdaf7d611aa7ff77188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914bd2cbe258a38f1268bac9c59c92921c8bdaf7d6188acac5e7d1d000000001976a914e357e7613cd9c9808612a54e8b372109ce3db7fb88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"muus2dj4agonrHqDfa5rBUHLys6SLc5wTz\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"nout\": 1,\n \"timestamp\": 1615584609,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxmDc6Fv8GNAcbCx3euSbmEhmLcUZ8pA6A\",\n \"amount\": \"1.0\",\n \"claim_id\": \"459474e6402d2da49e6842deae2ac66adbae2a5f\",\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#459474e6402d2da49e6842deae2ac66adbae2a5f\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"81ca78098f1fecd640a57b23f651684d43fc780c65590b87c597645ba2223e36\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mxmDc6Fv8GNAcbCx3euSbmEhmLcUZ8pA6A\",\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\": \"1615584583\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpcdjwibad.png\",\n \"sd_hash\": \"36c91318ae26b8732ac451addca92147c96f68813505fb03a130050ce77ff5b9426b4e091c2e94eed68a2624c8dd9869\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thuLine truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -3805,14 +3839,14 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"resolve\": false, \"no_totals\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"timestamp\": 1614617542,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"timestamp\": 1615584609,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"title": "Paginate your stream claims",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream list --page=1 --page_size=20",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"name\": [], \"claim_id\": [], \"is_spent\": false, \"page\": 1, \"page_size\": 20, \"resolve\": false, \"no_totals\": false}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1614617542,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"timestamp\": 1614617542,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_channel_signature_valid\": true,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": false,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1615584609,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"create\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_internal_transfer\": false,\n \"is_my_input\": true,\n \"is_my_output\": true,\n \"is_spent\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"timestamp\": 1615584609,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
@@ -4145,10 +4179,10 @@
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"title": "Update a stream claim to add channel",
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update 341a9096806b69ab5904087fefb8e0709afa42c7 --channel_id=\"332562d354dc89c0a205efccbc3ad570f2ede826\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\", \"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\": \"0100000002e2e06a7270a7bcb44ab41921cb5eda203e043bcfd2f1ba7d04be11ae07adffd2000000006a4730440220201129be03f5df42b4be3af4a876354d1c7648c4448a9f364b884380a4985abc02201e77dff4a640b4c577ab6786a010052b56acf9e5d71f18dc8e0e7a8945a2ba300121035c6111d7cb945938d8723d18784600e4e2e3a3465f649e46ad952784b1415d0bffffffff44839a12ab72f62a6eeeb2e75768b3fd61902552dc0f0a33b9b9a8b880100ae5010000006a47304402200c1753e0ea0d81e90f6adebe88b8bf925d1554416da7f0cd9b9e467b967edda202202f1a6e878b34d4be059e7d0f68ee7048bcd22511f1ec390c269444bf61818ddc012102852fd74eec4abef333ed472a12f8aa54d9c100d3e6a0006eca7e978d5a922d6affffffff0200e1f50500000000fd2301b7076173747265616d14c742fa9a70e0b8ef7f080459ab696b8096901a344ce80126e8edf270d53abcccef05a2c089dc54d3622533abc062f1bceeb8c322c26423ded588879f34e5b62a7ead3fe139b02ff74a575746a592d87e666c0f654ef370ef921d8bd091aad5743760344f6b96f393ad406f0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70727274665f623178180b22186170706c69636174696f6e2f6f637465742d73747265616d32307f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba296d6d76a91418e1f74585d0ababa6a9900e68abbaae775f9f8388ac32a0d205000000001976a91433b9b10868e6b571acf2143fac60adf68fd5fb4e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"timestamp\": 1614617542,\n \"txid\": \"d2ffad07ae11be047dbaf1d2cf3b043e20da5ecb2119b44ab4bca770726ae0e2\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmprrtf_b1x\",\n \"sd_hash\": \"7f233e541a32e773ea38913fe381f67be41031f39178a750464d9cc38cfc9c366c6f41d3c3a7e562fd4804a40229ba29\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mpi13upmq2FsTD5BWZnf3GcEsdwKVbxNTV\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1614617541,\n \"txid\": \"e50a1080b8a8b9b9330a0fdc52259061fdb36857e7b2ee6e2af672ab129a8344\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhnXD3X6vkY1dq6jSyHp3kKwR19i9KGskM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"341a9096806b69ab5904087fefb8e0709afa42c7\",\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#341a9096806b69ab5904087fefb8e0709afa42c7\",\n \"signing_channel\": {\n \"address\": \"mqqYzSoc7WDFdrt9CZDKBBBnHCC3Yy6qnX\",\n \"amount\": \"1.0\",\n \"claim_id\": \"332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#332562d354dc89c0a205efccbc3ad570f2ede826\",\n \"timestamp\": 1614617541,\n \"txid\": \"a348c8052cf3e7ec4b79d4fa68aae61048a6540f825d4ec7d1c625e985ae82e6\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000411d2876bc6cb242ea19d92477dc47a2cd2561ff860f815f9babd8a6cfe812ce10da942e03af02a6c0a2e3d98cc5a24ad2788418aed6a76154a705c7551aceaad\",\n \"public_key_id\": \"mqcFrmD3NtEPs5AoEaDsBCH78ta6LyKpYD\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"e5b3849383ffd13e096e42cedfbe3f37dfb9c69ea4d5853eaba8b022ab62505c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n Line truncated
|
|
|
|
|
"curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet stream update c6c350a68561cf84b94529b41351dcffeb24c1a7 --channel_id=\"c554752bbdab964b0fec3737526efdffa4fcc541\"",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\", \"validate_file\": false, \"optimize_file\": false, \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\", \"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\": \"0100000002a9dc627db06734351bd8c4beb1b71d1a685331d4a5a8a1fb314f55e83b079833000000006b483045022100e4ad258ecbc8ba309aad1df7132a27a82b52924b129438bbf620f4eb01b1870a02204fbad3527cb0c50ccf68e10b979beabab28f2f3f1de3882c1af60c7f2fc838f001210235a692c30d6eab809762ddcd52f76b4d926efaad4aa3164d9fa2516e5f2bc574ffffffffcec857fd6ecc8b2e17d3b322340900e7cd0378ab0eb075153996ca7f2c087cb8010000006a47304402205195c7a9d9e91ec0ac44804aad650b59640deab8902afb227558dbcd6a904c6c022003405f254777e18dfe3627829a3dcfbbfd7c871d9f055e92048037ad840809730121034c7ca9c7c7292a6b3af97ae528c4009d8b2fd81ad47e097246158a2dde325ab9ffffffff0200e1f50500000000fd2301b7076173747265616d14a7c124ebffdc5113b42945b984cf6185a650c3c64ce80141c5fca4fffd6e523737ec0f4b96abbd2b7554c550d423920ef3e130015116f3dd37636cf1491d67b2d51243564cf7c2cc009c80fd27136bf69230a9522ce6cb61e22bfc48380233c15ef8164367b9cc5864673a0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7067386c6367336d65180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d6d6d76a91436a2e1ec031f5acbf11279485f5ce9a3e2742bb088ac32a0d205000000001976a91479f2dfa8adde4932c05f17c95b5378cc0e396b9888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"timestamp\": 1615584609,\n \"txid\": \"3398073be8554f31fba1a8a5d43153681a1db7b1bec4d81b353467b07d62dca9\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpg8lcg3me\",\n \"sd_hash\": \"a4af75c0a2727a18b62bad35efb78428eab095be90aea271b11d1210997b3708c607e1c9d970d5a2a815d81fb5e39a4d\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mjhuVxbKYR4tsXjrHXhfTdCSXCzjbqbFsJ\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"nout\": 1,\n \"timestamp\": 1615584608,\n \"txid\": \"b87c082c7fca96391575b00eab7803cde700093422b3d3172e8bcc6efd57c8ce\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkVqugrKPEo2Hgue4j1SjTxd44w4biLUC6\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c6c350a68561cf84b94529b41351dcffeb24c1a7\",\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#c6c350a68561cf84b94529b41351dcffeb24c1a7\",\n \"signing_channel\": {\n \"address\": \"myC8od9dubp4GCC7FCksF7MKwWey3E7PNo\",\n \"amount\": \"1.0\",\n \"claim_id\": \"c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#c554752bbdab964b0fec3737526efdffa4fcc541\",\n \"timestamp\": 1615584608,\n \"txid\": \"1a17c89ff2b2c6c286801fed206988a38d733849b225448a9b13b29e5b6457ec\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a0342000490d50f7e45f57165141af7167d31cbc29864d928fd20e7cd4ec6626c7e10a442d3db7fc2b4e7dede8ca6adadf16d0dee56b3d8a99bc1867c1618dbe224f35c1c\",\n \"public_key_id\": \"mr5fHUyHetn78nkZh7eSXnJwbw99XuAYUu\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"d877caf0a9944daadbc99e774395e494a43a15a1b2e5560db63f3fb3b2c3a2c0\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n Line truncated
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@@ -4524,7 +4558,7 @@
|
|
|
|
|
"curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/",
|
|
|
|
|
"lbrynet": "lbrynet transaction list",
|
|
|
|
|
"python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()",
|
|
|
|
|
"output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2021-03-01 11:52\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1614617541,\n \"txid\": \"9570bcfb35dd97e988255385bd35c6bfe61283158994127297158f893f9e320d\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2021-03-01 11:52\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1614617540,\n \"txid\": \"873b70a558b7e6559aaafc6079ecab5b5d665cccd7522ac0d542b483ef1cd432\",\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\": \"2021-03-12 18:30\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1615584608,\n \"txid\": \"38e19cbbe957211d7bba95124041153eb92984861e0db8ff13af813c25a9fc9e\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2021-03-12 18:30\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1615584607,\n \"txid\": \"2279b28054c712af046712b8bd7c8df1b897ef2f46a2e787351658c44438f580\",\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}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|