diff --git a/lbry/docs/api.json b/lbry/docs/api.json index a9a007c7e..762512710 100644 --- a/lbry/docs/api.json +++ b/lbry/docs/api.json @@ -41,10 +41,10 @@ "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#e6240792cbe2dfad0b0949049ba863d771e5c77d", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp7tmfhh4e\",\n \"download_path\": \"/tmp/tmp7tmfhh4e/tmpoh0e9d1l\",\n \"file_name\": \"tmpoh0e9d1l\",\n \"height\": 214,\n \"key\": \"9c95dcaf892c6c79d762519c8cc4bb78\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6e19ca975e11e171c01d6c8649743175d2594921ae653600c6e526b36d0bbd137fdede16e57501b6b6b39e5c48432d4016569e49598ff9c5181942b5de4b2ff306b5198cab6f56efd734a2e0abd8466ed90200a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fb9047c71344ff7c341a056058c1d43ae73f332b864ee0ebc3595cb4dd6b7b55e91f6206986a8b1c78c3da1d50325ee8\",\n \"stream_name\": \"tmpoh0e9d1l\",\n \"streaming_url\": \"http://localhost:5280/stream/304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"suggested_file_name\": \"tmpoh0e9d1l\",\n \"timestamp\": 1568697536,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\"}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#5987f6f4ff665040b855d8a85f71d12ae00ee191", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpe98a6c71\",\n \"download_path\": \"/tmp/tmpe98a6c71/tmp8cucwd4t\",\n \"file_name\": \"tmp8cucwd4t\",\n \"height\": 214,\n \"key\": \"ea9248d3e5e6a61ca9267667e95728a9\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"016bfd5f46ad0c75042cdb38de5e8b7526161e46d9903b1f49801f2cc7efcf95f26725086e084c22de1d3b0586c0f392a6b0add722b640c85199a74b66c0413a37189bc9ca7b9717b7abc1722936b88648b661df280a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"92c190c519b544678ca58fd06d8b4d659529d935a5da7fb0aa7094df998d4cadf4ed69d3a00cb63c0fbcd2c1264db254\",\n \"stream_name\": \"tmp8cucwd4t\",\n \"streaming_url\": \"http://localhost:5280/stream/a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"suggested_file_name\": \"tmp8cucwd4t\",\n \"timestamp\": 1568987034,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"written_bytes\": 11\n }\n}" } ] }, @@ -190,6 +190,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -219,10 +225,10 @@ "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmppj4hjnq0\", \"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/tmppj4hjnq0", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmppj4hjnq0\", \"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\": \"0100000001ffe9ea45d806eebb260eeffdba949c4b5341529401b87b1c1775085f57425f31010000006a47304402201532e30c22eb3b1492f1acf90a57ac00360a0602641726916ac6e59e190f687802207ad84176b093832abb11511baa29e0daf563dfe60f72695302e7d0d5c0e5a9ab012102c9a9cedfedc283eb4483181ca5f3cb29d0862a3d782b2aafe1d059649cddd565ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70706a34686a6e7130180b22186170706c69636174696f6e2f6f637465742d73747265616d32305dfe959b79f272cbefda43508db774c5309e151b01a81e8bc03490336ad357bb4c8fe2220dd97c5dbbb15ef03510f4a66d7576a9141248bcd490589f8a0e08d9399f7c33d6f748bbae88ace0b46217000000001976a914d862f2b655414eb5f8b4937c19c3a69303e1b91188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mnGZ9ax7DpY4hpXYWJ1xFFVJZtmSBj5voh\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697536,\n \"txid\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhBdbQTgeH53Ubazjz5xyqdQmem84MSjQD\",\n \"amount\": \"1.0\",\n \"claim_id\": \"331ef39782a94ae2e4c2270898f71aac1a458a8e\",\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#331ef39782a94ae2e4c2270898f71aac1a458a8e\",\n \"timestamp\": null,\n \"txid\": \"b5f11675f740cddea52bf2b51874473132bf1aae83f6afab817d3dfc9e66f9b4\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmppj4hjnq0\",\n \"sd_hash\": \"5dfe959b79f272cbefda43508db774c5309e151b01a81e8bc03490336ad357bb4c8fe2220dd97c5dbbb15ef03510f4a6\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n1F6nXKS82wtzhPN4Xrn94Fa9ou27n6mqk\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"b5f11675f740cddea52bf2b51874473132bf1aae83f6afab817d3dfc9e66f9b4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"b5f11675f740cddea52bf2b51874473132bf1aae83f6afab817d3dfc9e66f9b4\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpriix2n4z\", \"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/tmpriix2n4z", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpriix2n4z\", \"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\": \"0100000001af28bd361ff69190edf866df56808f2941f7998463fa36cef04cf03ba46f548c010000006a47304402205f753519aca73d55c655ab865d169f6e2dd69056fe8c00b20935d512024dc60b0220573137e9f04357a257e8cfb153a2ceb08456e0f708291ea2fd8e9af6308efd8d012102a9c23cac32f67f23dd6ca986a5f5b24ad1f987523ae23b653f1d9d5e4e7f37c4ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7072696978326e347a180b22186170706c69636174696f6e2f6f637465742d73747265616d32304678049e2976f8ad97d709e8e187f0cf71149c6d659359b9231f47714cf1c7b1715c450efe7ff14e927fc05f05e2ef5b6d7576a914cafd4e9ae2990e508fa97b2a7add648a58ff5b1e88ace0b46217000000001976a914b8d1e5cba3c021c02dfcde105c4ccb9e005701b488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mmJoTWjLZKYCAfuGVEkfiMPFZaygW2Nq3W\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987034,\n \"txid\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mz2GEtMTorwoKNojFvaRMdMVgf4BcD4kyy\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0517fc3838007c62706f5a9fb2bfec1c9290a795\",\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#0517fc3838007c62706f5a9fb2bfec1c9290a795\",\n \"timestamp\": null,\n \"txid\": \"4d41090729b3f76a7ece26ca93d49cf201825fa7c11cb5551a3aa09fe3a87d12\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpriix2n4z\",\n \"sd_hash\": \"4678049e2976f8ad97d709e8e187f0cf71149c6d659359b9231f47714cf1c7b1715c450efe7ff14e927fc05f05e2ef5b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mxNC5J2g9aynKXTGMhZpgKyNXrNhSdVcTu\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"4d41090729b3f76a7ece26ca93d49cf201825fa7c11cb5551a3aa09fe3a87d12\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"4d41090729b3f76a7ece26ca93d49cf201825fa7c11cb5551a3aa09fe3a87d12\"\n }\n}" } ] }, @@ -241,10 +247,10 @@ "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\"]}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#e6240792cbe2dfad0b0949049ba863d771e5c77d", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\"]}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\": {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9/astream#e\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\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\": 1568697536,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\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\": 1568697535,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"short_url\": \"lbry://@channel#9\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\"]}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#5987f6f4ff665040b855d8a85f71d12ae00ee191", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\"]}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\": {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#5\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\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\": 1568987034,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\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\": 1568987033,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" } ] }, @@ -266,7 +272,7 @@ "curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet status", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"outgoing_bps\": {},\n \"time\": 488361.594159095,\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"71ma17z4bftmiPJgWrNuQHeU1RmGJCYvY4gKQ6Fdfqm7PyB6CerRLQ9AvNZjC3fh2a\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"8e4210fb5797ad504ff0670f054a75a7daef67586e3685eed1868701be9d9cd7\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\n \"port\": 50002\n }\n ],\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"outgoing_bps\": {},\n \"time\": 632293.818091308,\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"5cqSmcsrtSnw9NBa6dH5sXYfyBFBGPSyAjaqi1icqo8oK8mGnUDufzhkxrdbdhMJXF\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"blockchain_headers\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"9e8580ea00abc127c8922e3c53c7e01bba5e1b78242864bd47d65ab1c838c8ba\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\n \"port\": 50002\n }\n ],\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" } ] }, @@ -330,16 +336,22 @@ "type": "bool", "description": "create single key account, default is multi-key", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": " {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }", "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\", \"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\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568697502.7570467,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeW6CDAiHueSsMY2gog46bpvn7TDenS6LwChCkCw2dV3jGYCu2MKi2RzentAfjnkuFBnAdsNkM1DopCGJDyKgFrTp6rcjvds\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Xy7z6pNtK46yvZYcy1F1B8XZPyFxChtjmgwyNbkcoyfbSeg1G6zAXNWD2rdPjT4gvcz72C3tMktG1zuk9XDQJLwX9EVBNk9\",\n \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"camera whip poverty code vocal act crack minimum ecology sight north bone\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\", \"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\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568987000.5992434,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPe896xj97xu7NHkQWKdBErUY5ua7EJg9V7MDvgCEgoJ7mzvBCrgZHPr7Gf7zaPZFkWc5t2izBtsaQZWL9epS4U1x6EcVUEFD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XbAtrNoiNJmUrmvSUxN9Rn8sC69XiwwswqUhJb4GynjeB56Q7U1Z6YrZvpA7d6KdG81msvG8yqS8N6gTvUxUbkoYgw4Fvzv\",\n \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\"\n }\n}" } ] }, @@ -353,6 +365,12 @@ "description": "If provided only the balance for this account will be given. Otherwise default account.", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "balance for specific wallet", + "is_required": false + }, { "name": "confirmations", "type": "int", @@ -377,9 +395,9 @@ }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"reserved_subtotals\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"reserved_subtotals\": false}}).json()", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"reserved_subtotals\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"reserved_subtotals\": false}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": null,\n \"total\": \"2.0\"\n }\n}" } ] @@ -399,6 +417,12 @@ "type": "bool", "description": "create single key account, default is multi-key", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": " {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }", @@ -408,7 +432,7 @@ "curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account create \"generated account\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568697502.606734,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeW6CDAiHueSsMY2gog46bpvn7TDenS6LwChCkCw2dV3jGYCu2MKi2RzentAfjnkuFBnAdsNkM1DopCGJDyKgFrTp6rcjvds\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Xy7z6pNtK46yvZYcy1F1B8XZPyFxChtjmgwyNbkcoyfbSeg1G6zAXNWD2rdPjT4gvcz72C3tMktG1zuk9XDQJLwX9EVBNk9\",\n \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\"\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\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568987000.429785,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPe896xj97xu7NHkQWKdBErUY5ua7EJg9V7MDvgCEgoJ7mzvBCrgZHPr7Gf7zaPZFkWc5t2izBtsaQZWL9epS4U1x6EcVUEFD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XbAtrNoiNJmUrmvSUxN9Rn8sC69XiwwswqUhJb4GynjeB56Q7U1Z6YrZvpA7d6KdG81msvG8yqS8N6gTvUxUbkoYgw4Fvzv\",\n \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\"\n }\n}" } ] }, @@ -421,6 +445,12 @@ "type": "str", "description": "id for the account to decrypt", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(bool) true if wallet is decrypted, otherwise false", @@ -441,6 +471,12 @@ "type": "str", "description": "id for the account to encrypt, encrypts default account if not provided", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(bool) true if wallet is decrypted, otherwise false", @@ -480,6 +516,12 @@ "description": "split payment across many outputs, default: 1.", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "limit operation to specific wallet.", + "is_required": false + }, { "name": "broadcast", "type": "bool", @@ -491,24 +533,24 @@ "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000011b885448b1cea6c5586bb8b511b706bcab28fcbe87d6007ee0de8b0f97ea3cb3010000006a47304402205822fbf630ed2de7514e65773d68ce37101f73d4d7b107d4fee367b7f837b18a02207ba90d8f3a6c0b726021917042f3b681a8d8fc995f8ee54cb1d709de85ccfcb70121039fad36b34189dde9fff481b23dc2b76724daadef2ee398341b15d4764ca75603ffffffff0200c2eb0b000000001976a914bf3fe4ff94139ae43df5e7fd1b69b5f9b5bcc3a988ac90d7ae2f000000001976a914be8b4e5eedbab62df395f9936beebc5a68d0a6ac88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhUmGtDYLQ4h4G8U7ivxtfQv7phN2ybyp3\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697534,\n \"txid\": \"b33cea970f8bdee07e00d687befc28abbc06b711b5b86b58c5a6ceb14854881b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxxBuAQjcwY7e17fGCFG7n23ZKuj4e4sGP\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxtTZfLc4o4wuvqzWxj5B3eLMA4ToMqPeT\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001fb5bdecb8ac25a3bb1ad4361f9b54a7bb8b3bdd6e0a5a92fa819a4a6e97e201f000000006b483045022100e69315b402633c5cd7093a4775da546c5edcd4f16d32c44820dd3969d54f528f0220464bd46b4c729c275b587a9a54c1f4d8754ac851b7f3f5a04a30feecf7e5cbeb012102557aacb97b506c3d07d07768c20d3d8fd6b2611ca599e371469e920bb64e5507ffffffff0200c2eb0b000000001976a914be9b459d9af7b81bd6235283c2f376d37e98275388ac90d7ae2f000000001976a914a6e28702bd16f03782db71bd78c8794e63bec23988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrEVeLaPuopB5WNii9Y1RziUjmA2b7An8g\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568987032,\n \"txid\": \"1f207ee9a6a419a82fa9a5e0d6bdb3b87b4ab5f96143adb13b5ac28acbde5bfb\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxtngz5z6SoFRPQpxXqGmqmK3nfqTgcHtM\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mvjMqJ9qkPWsxUEREwzVpmjE2o52bsD3mq\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"from_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\" --from_account=\"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"from_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e8f6527b6b151cc0202a565ff0322844d6c8b128e9b356c5266f294ff908e5ff000000006b48304502210096e23dc0df0108c183382de04d1e6056fabae2a9b364b7501cccb8b48343f55602201aef636e77b256076f0952b172d61c4f9985b80a41f00bf735e58e576cae838d01210270063a5d382f21b80e9e39e48008ca09fb31f18801f2a92587072d3dd91006b8ffffffff03c0687804000000001976a914ae65ebe3c0a8d93d260ff1b8c6a7dac552d452ad88acc0687804000000001976a914ae65ebe3c0a8d93d260ff1b8c6a7dac552d452ad88ac6cb9fa02000000001976a914cd5add13baad8a5435bde5fc4bf5c9b6ed5d46b688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxxBuAQjcwY7e17fGCFG7n23ZKuj4e4sGP\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568697535,\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwR5y4MMTA38T2KpBLipYbAzTQ2ECTC2rQ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mwR5y4MMTA38T2KpBLipYbAzTQ2ECTC2rQ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzEmfh4uspXPtTCfsXNsfLmiCbXFS4gyHt\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"from_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\" --from_account=\"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"from_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001bf23c5b635839f2795d3a340abbe92a6487f1104f6d49119a467a961d5a48689000000006a4730440220595f3eb3a67294080273b628aeaa56648da77c5f12637515e5fbf34cbed72afe022045db7846ad0cb36c849bd718f777ab8c5ff320123e85abb1913a3adf727b8a3d012102bd661957a911d9438c0e96b3a6b7c388307144656c35e5983ab823cd8b185a91ffffffff03c0687804000000001976a91400d811c69e6c9c7d6817b3696710085e1387afcd88acc0687804000000001976a91400d811c69e6c9c7d6817b3696710085e1387afcd88ac6cb9fa02000000001976a914de0b1fd3917aa6d437cf1f3917594eeba5eac53888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxtngz5z6SoFRPQpxXqGmqmK3nfqTgcHtM\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568987033,\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfbR8pcRN3ebuAuY8RTbhsPW8J4RvuoV6g\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mfbR8pcRN3ebuAuY8RTbhsPW8J4RvuoV6g\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n1m1da7rPwiDKsi5yon1B2Biadn858q4LV\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000035cbff4dfc5206c6e4a929516fdc53b7552f172bff5396eb025be64f415b25f05000000006b483045022100ce27dcae6d83b403427d61e3ba3be21703197cbdccb8873d732e8ea697866e8902205e6c2e383cf65e0d4b96ff4c5b3c1028fcd02a90d40af5eb1d646ef53bcf0dee012102263d935797baea729480ff60982ae925246861cbda8030f0823fca52bd8573c4ffffffff5cbff4dfc5206c6e4a929516fdc53b7552f172bff5396eb025be64f415b25f05010000006a473044022046c98ede4f9b70f46777b3fc07688a6516d720a82b7d7b02428fbd5ac664b87b02200c97620289d0bdfe5554a6b3c13bd755ebd4e9b732f26d6d1b66c15ff9ab2a40012102263d935797baea729480ff60982ae925246861cbda8030f0823fca52bd8573c4ffffffff5cbff4dfc5206c6e4a929516fdc53b7552f172bff5396eb025be64f415b25f05020000006a47304402203637c70bd5e99778655087b1399f27cd8539e93cf959736d8e30130519e38d31022055f627c046bd393d78c80509b2fa5e81b9511750eda0fc5a7fd0d7ae8eed953d0121031cc1da14d49277a386f4d4388675474aa3338cbd6ab6b5909cbde6d18f4bfe91ffffffff015027eb0b000000001976a914310cab328cac85ed3a7e8808c4dfab23cd12aa0488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwR5y4MMTA38T2KpBLipYbAzTQ2ECTC2rQ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568697535,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mwR5y4MMTA38T2KpBLipYbAzTQ2ECTC2rQ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697535,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mzEmfh4uspXPtTCfsXNsfLmiCbXFS4gyHt\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1568697535,\n \"txid\": \"055fb215f464be25b06e39f5bf72f152753bc5fd1695924a6e6c20c5dff4bf5c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjzJahABzt26MksXaCcwB1VfdunaEjbTeU\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"a3543687b502e93af74cc65a1795988c4340b409da009dde532d4395a8ee2454\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"a3543687b502e93af74cc65a1795988c4340b409da009dde532d4395a8ee2454\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000003d2cdec537dd1a4419446f1a39b8f427f552d2b5aaae44e794970a02ec3e66c6b000000006a47304402203456353ab8178af2bcb70fc9dea36c074d055390996def754843ed0a541c01bc022065630c82023f7dd57b9748c13edf2f5597cef6f7581672152cb7207c88eaeb5c012103bc1523cb8fdac1b8e7d1029a69e3a32e06b1f8fe7579afc7d50674a89cf7b158ffffffffd2cdec537dd1a4419446f1a39b8f427f552d2b5aaae44e794970a02ec3e66c6b010000006a47304402207c957a412d7710c247221ff4deeeb14571ccd809112dbfe65c06f0b273fa506702200eb7aca81c67dc5d02013f017eb62aeb90d39530e97e330f0a6f1c8485cfd6a0012103bc1523cb8fdac1b8e7d1029a69e3a32e06b1f8fe7579afc7d50674a89cf7b158ffffffffd2cdec537dd1a4419446f1a39b8f427f552d2b5aaae44e794970a02ec3e66c6b020000006a473044022069c34e9997cdd46721bf838cc9676cd063603eb460b07debf137c89cf64a7d6c02207302247ec2c9894c71dcf338af93d0e7c0dedc9b7bf2343b66a2c34562d1604f012103d0946a17834fd6bae294e33ee2efe7df479866e679fc7215e31d2fb58a81e664ffffffff015027eb0b000000001976a914846310671e8818ced7997425e014c44297b9348588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfbR8pcRN3ebuAuY8RTbhsPW8J4RvuoV6g\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568987033,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mfbR8pcRN3ebuAuY8RTbhsPW8J4RvuoV6g\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987033,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n1m1da7rPwiDKsi5yon1B2Biadn858q4LV\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1568987033,\n \"txid\": \"6b6ce6c32ea07049794ee4aa5a2b2d557f428f9ba3f1469441a4d17d53eccdd2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msaxAU73Ufh1YvJGJy23BEPzHaejUT579B\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d405235c56eb4939d0355a5d28402f188d3173465e13f9d47a4a9ea4579ad1f1\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"d405235c56eb4939d0355a5d28402f188d3173465e13f9d47a4a9ea4579ad1f1\"\n }\n}" } ] }, @@ -522,6 +564,12 @@ "description": "If provided only the balance for this account will be given", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "accounts in specific wallet", + "is_required": false + }, { "name": "confirmations", "type": "int", @@ -548,7 +596,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 \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"is_default\": true,\n \"name\": \"Account #mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"preferences\": {\n \"theme\": \"dark\"\n },\n \"public_key\": \"tpubD6NzVbkrYhZ4YkmscbUxdCLyDk2GpJakbniWSxHoGNZvEfyoRDv5oEEcKyWjPdUmn4BbKqLqDa1wHBnKs2pu1eZ8xv7PQejdeNN7VYWxAsD\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"is_default\": true,\n \"name\": \"Account #mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"preferences\": {\n \"theme\": \"dark\"\n },\n \"public_key\": \"tpubD6NzVbkrYhZ4XKddbVhmFQ3rXoq8oHTF3AmZR9h76729JAknrfL31j1Q3MNXgskaWgViPnapyRkf7Dvn8ZLdeoT436LAnFDEfTSCvonMzet\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" } ] }, @@ -561,6 +609,12 @@ "type": "str", "description": "id for the account to lock", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(bool) true if account is locked, otherwise false", @@ -575,6 +629,12 @@ "type": "str", "description": "account for which to get max gaps", "is_required": true + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(map) maximum gap for change and receiving addresses", @@ -589,16 +649,22 @@ "type": "str", "description": "id of the account to remove", "is_required": true + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": " {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }", "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"}}).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\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568697502.606734,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeW6CDAiHueSsMY2gog46bpvn7TDenS6LwChCkCw2dV3jGYCu2MKi2RzentAfjnkuFBnAdsNkM1DopCGJDyKgFrTp6rcjvds\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Xy7z6pNtK46yvZYcy1F1B8XZPyFxChtjmgwyNbkcoyfbSeg1G6zAXNWD2rdPjT4gvcz72C3tMktG1zuk9XDQJLwX9EVBNk9\",\n \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"}}).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\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568987000.429785,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPe896xj97xu7NHkQWKdBErUY5ua7EJg9V7MDvgCEgoJ7mzvBCrgZHPr7Gf7zaPZFkWc5t2izBtsaQZWL9epS4U1x6EcVUEFD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XbAtrNoiNJmUrmvSUxN9Rn8sC69XiwwswqUhJb4GynjeB56Q7U1Z6YrZvpA7d6KdG81msvG8yqS8N6gTvUxUbkoYgw4Fvzv\",\n \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\"\n }\n}" } ] }, @@ -612,6 +678,12 @@ "description": "account to fund the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "preview", "type": "bool", @@ -632,6 +704,12 @@ "description": "id of the account to change", "is_required": true }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "default", "type": "bool", @@ -673,10 +751,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1 --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\", \"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\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568697502.8288746,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeW6CDAiHueSsMY2gog46bpvn7TDenS6LwChCkCw2dV3jGYCu2MKi2RzentAfjnkuFBnAdsNkM1DopCGJDyKgFrTp6rcjvds\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Xy7z6pNtK46yvZYcy1F1B8XZPyFxChtjmgwyNbkcoyfbSeg1G6zAXNWD2rdPjT4gvcz72C3tMktG1zuk9XDQJLwX9EVBNk9\",\n \"seed\": \"upper dynamic evidence front rookie olive divorce rhythm token castle try holiday\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\", \"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\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1568987000.6695647,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPe896xj97xu7NHkQWKdBErUY5ua7EJg9V7MDvgCEgoJ7mzvBCrgZHPr7Gf7zaPZFkWc5t2izBtsaQZWL9epS4U1x6EcVUEFD\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XbAtrNoiNJmUrmvSUxN9Rn8sC69XiwwswqUhJb4GynjeB56Q7U1Z6YrZvpA7d6KdG81msvG8yqS8N6gTvUxUbkoYgw4Fvzv\",\n \"seed\": \"camera whip poverty code vocal act crack minimum ecology sight north bone\"\n }\n}" } ] }, @@ -695,6 +773,12 @@ "type": "str", "description": "id for the account to unlock, unlocks default account if not provided", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(bool) true if account is unlocked, otherwise false", @@ -720,15 +804,21 @@ "type": "str", "description": "id of the account to use", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(bool) true, if address is associated with current wallet", "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mvP4ef8rBzcrnww1xKg6TLj9mhFFse8XKk\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine mvP4ef8rBzcrnww1xKg6TLj9mhFFse8XKk", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mvP4ef8rBzcrnww1xKg6TLj9mhFFse8XKk\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -749,6 +839,12 @@ "description": "id of the account to use", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -769,14 +865,14 @@ "curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mhUmGtDYLQ4h4G8U7ivxtfQv7phN2ybyp3\",\n \"public_key\": \"tpubDBWa1eoaZkmc9ficJRiCfJNTd1WJ6Vd3qV2hhc3ip1WBfDZV6DDt6HEyi9w4bY6V6a5o3UokY1zaoJq4tNQiEb7HLPaeM2fgp3V7aY2oU15\",\n \"used_times\": 1\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mxn47GtzinnaTagFXycpW5yNXs1ywTXvZm\",\n \"public_key\": \"tpubDBWa1eoaZkmcCPhKWy2BDeFJt4GEEKAyMKmPsmAjtDVZNJKyrzoTYH9ubcQFqGn4UNSbtWDhA7895ET8eAF1Y9RbYEUbziwL9ckFRpHDGyy\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mp77qNSPiG55cJwHeu23kn3HgcBR1AXGXy\",\n \"public_key\": \"tpubDBWa1eoaZkmcD7sbr1vkHCWtovUSdfBrWLSE5MRyUck6UrFSRibRRCo1p4jpozK8JNbnTKrvL4D5Cx1V9G7RDoYbnR7ATsmDt4KPCram1Bh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mvKPfW5WQapVHzm18ckuZmZborfYcCU5mz\",\n \"public_key\": \"tpubDBWa1eoaZkmcHjL9JWo24GJMJp2CN92NHdTHPP3EuQzG9bsgtR9rBjUbkFFcwisKvD7eZ84wd6EuzebXxwjDzBoXzbpADfc5dLA1EQSwuKJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"public_key\": \"tpubDBWa1eoaZkmcJhCWEKFBHYkjrSFTRZ6QGt9hFhf8HGpnLFgc1dbVSNjZQjL9dtKwGkpXJK6iBLTDKxJy6ZeE3f4NhSp2y4LvtUBD8dnn8mh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mhBdbQTgeH53Ubazjz5xyqdQmem84MSjQD\",\n \"public_key\": \"tpubDBWa1eoaZkmcMTBhkWnYQ7ahuZuLbEasnv1RxVJ2SHYipHenBQM3xv3wmiLCd62Yzo6Zp5zvZf1o8BtA42rqNu83pL33zm4MDGLvk4GCGV6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"public_key\": \"tpubDBWa1eoaZkmcQu9uv5JY1zsqjzDcvrZ9WsTbzdv5ZsGufet59nDgQQs2C9TFf15bvvGNRkn2wgGApotK4CtGU9BY5zAXR4sbTQSGL7Zhmx1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mxUCqpbpRvJrfcF9jJtYNRAvptMtT3ezjw\",\n \"public_key\": \"tpubDBWa1eoaZkmcS2ZQdeU1VD5fiLFsAytTD37tXCuVtTreHuQAopQuG1s9krJLrGtxZAJ2rxf52FtS81pZRJwg76v2bFMuXGjy7J5xCHQuoMP\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mqE2DaYrVRh9nrNo4kaLvn941S68BBAcoV\",\n \"public_key\": \"tpubDBWa1eoaZkmcUV1pWtthsYmyUTwfs9QTWnpoJu5zKiGJv4WPFoQKBZhq5m9c1xKt61Vi3ZAYUniq7jjmCxoVpM9hfNUo3NjzKTxvV2GKF9N\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mw747zX6JpWxp3rpfaXAZ41Y2iTPL2ZEwq\",\n \"public_key\": \"tpubDBWa1eoaZkmcXfvNHB2ZfptS2LaTJooDXC4a52Wy4FZu6nkfwueZ4miTAS3fYTKd1ZdqsziEXNVJ43okeK6v4ebcBRvz2Q2XfDgRco1CRQE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mmaFVurJuMDM52sqkYjypBn1fCggEvmsXu\",\n \"public_key\": \"tpubDBWa1eoaZkmcbABbHWYsgt2bmFUqJFL8g4pm381W2fjg6Q7Y3U2G6FN9R6j9q1oGYFxLPMhD2KVi5L6zYeLndH7VqKnYExgqf1P6f2WUwQH\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mz8RqqLWCrPSoThtWhuihUqqx1iznxxv6A\",\n \"public_key\": \"tpubDBWa1eoaZkmceE1ir9FMFivfrnbZWMWsge7MYXsVCoyxGtXn9fq2u6RNdqDPnWQzbv35hsaXEHWgRg3MA9TEseD1xcPGu2uavSnJKLLhP2n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mx8mcZj6WSWURRGPJcgc56Vi832aMa28u3\",\n \"public_key\": \"tpubDBWa1eoaZkmceJXgKDKEGamfr6YSbU1NPTVUuwF2e3BV6xQbPbmKv6mDskeMtkSSR5136PEvabVPmRa2hoEMUm8XhY4gz6FMxanADYh45K7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"n3XbxcAw4ji8MmC6A9r8WYMBFNs6PFPiEf\",\n \"public_key\": \"tpubDBWa1eoaZkmchrRNBJ4CBMQXRwLnCxw7LbUe2d3gdtizC4FYs9bwqK9tWdwFGK3jmuuZzT1EwJzqY57TNS23QfjWzRs4MzJz4EinZiXVzZb\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mqbAiWQcWJyXYjPc72HKLZT5eCQjf7ub6q\",\n \"public_key\": \"tpubDBWa1eoaZkmcmdiBgSy74dNd7dRQgF6eKKhXjpdf4Gs45K4tMrTiqpwJCM29MYpRxFaW1VyopGrTX6gArmGWnHiQDpqf4NvjdATgXgzMkgK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mu2XfzxFzmynjmZvdGUshkxn1EqMFuXwVg\",\n \"public_key\": \"tpubDBWa1eoaZkmcnxhb7F5ey75C1hyVdiKdxhavNcrJJ4XrrVDZdxigt66pPXgS2EA4xhfPccN2786xkMRQNmJdRndaou7rYa2vAupacTiRXDg\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mqGHquFqTgqa43cQhbeZGyZUecomRocxCb\",\n \"public_key\": \"tpubDBWa1eoaZkmcqKRbtVKmsysfUzZQmSxFvMCPmxWVLM4AR5pNX71iW36kcq1NnVjp7arWvNWEbwDXneRnnTnY5rmYefCHREGzTyc7W55TEJQ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mqR1VKfTghQbun5ta4LM9FzEznTeJLSQfm\",\n \"public_key\": \"tpubDBWa1eoaZkmcsSmkrZM1wb6U2K7HrpoH73JwVWRbxWEimaJPpzLr7JjY7EQg4DwkAwuW6xPfferD6Az2vNn3Log7y6m24rAAMHVWaSxhna7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mymCCNcWXUnpZp5hvr2FGko3zsVyGfKeV3\",\n \"public_key\": \"tpubDBWa1eoaZkmcvDG22xw94sMNcmmVKEH8H5vdPJy2rh2v73qS73JWU4Hw91D3pN4t4v7Z1xyHV1sUSNKL3iCPsgKE4s6FionxhDTYWFyoDrG\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mgSKniKrznKR4TNWgZssqNg7s6kds5hqeN\",\n \"public_key\": \"tpubDBWa1eoaZkmcyagfKPTQA44KmwkQco8oRJFABdcyE3B1ZowBjXL7251rERYJ9proDKuAt4D8Po3XHiDx3sPtf47ud17Z2wcAmULyuNcvCNK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mjzJahABzt26MksXaCcwB1VfdunaEjbTeU\",\n \"public_key\": \"tpubDBH9hSXmMxwFL46mwhsmMPGrqXyiHhEhcJVa36yASYr9KjwFHbpsPG73LyseP96ZSdygNW63sAQ8bR9F431u7VfuzH6bZLLNAvyqyiZDq4Y\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mgroeThx8PJ2K6XFzR5E7akGprBu6DoHS5\",\n \"public_key\": \"tpubDBH9hSXmMxwFPo2CABEA1J4hVb4RjETRLJE7VpKEWQ9zJXNVVa9PsCoFuQAcHmcWXTMs9ZsGGVepzevHEJUn6f2k916dGrDK2sH8BK7wQ5p\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"n1nm7ZC8Q5cqtJiNi9J1z4hU43cThbRQjQ\",\n \"public_key\": \"tpubDBH9hSXmMxwFSpbtP1CGs3w9r1CcQvhG4PSv3xs2n5VRAv1P6VDvTFSv19t5ztKFMAajVrnFiYXaxcyrWJa3Nte22gqeCFWAMFHFnqPvc7t\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mnPEPwkJtBPcYrtYYwiu6C6HuvZ6CwSd9H\",\n \"public_key\": \"tpubDBH9hSXmMxwFSyvLi9S9LaUUdokLYzDENkEkF2Hs91stAseiZiYDhFwWSWuArKJeNkebK3QvrZam35nDenmKQcTP5Q7a7VmV1PsHDwFvsM9\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mxtTZfLc4o4wuvqzWxj5B3eLMA4ToMqPeT\",\n \"public_key\": \"tpubDBH9hSXmMxwFWziZztVGLZFNAjL8nhsGAPNhLwiveb6yf2C5LqMej6mx54tafBGj8USTR5ddjy6H4v1stGsfvc2m78p8aWHpHToad8sqB2T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"mrPPGfVZgJ3QKH7rRbFCchxZv6q4ZmEMk1\",\n \"public_key\": \"tpubDBH9hSXmMxwFZCkU3cGVChKkQZvf9v6Nt4WNTc17V8wvFhDTCi13gVZ2EHmoS8Mb5PjPFq45vWnt4Sq1ZP56jdQUKkApvEu6X1pt62HorZj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mnYXbwqRJFVSdw6FK8Am4btCCH2ukRJUPj\",\n \"address\": \"myCkpWHsFjPzgcy1AXrVSJsFEW6gjEWfkv\",\n \"public_key\": \"tpubDBWa1eoaZkmd1TrkMP6bpctvZovhzcjBLhbK9HW8YkYhABY9b5QWgy9QpxRk9EcpSoEJY7Vk3idEh9RpQPWDwGNFa9StpAjv2sN3wKTwjZC\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n2SPZLX879EqX8TiuSjSfFzPAVd9HV3ZGg\",\n \"public_key\": \"tpubDAW79XdMBSWKAmLX1i1FMADJDmFtT3MCotSzWQnJSEa6zWgmaKSmVUPzTezsQPsFiiHC13QjJiUoUkzxATHQUWxKT49uVKzwfKvDgb3jwRT\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"muycQZrJzCvoBRf9Q2j8Yv3k9YoQ9tTzX9\",\n \"public_key\": \"tpubDAW79XdMBSWKDFRnJDkZkoeEX3Y9yxqxsXBj9WePsVWfSDKCkspPiusSuMgCWxdaKRXHhKegw4AUCvGzabBCweFJPvSToU3jgCTyWXdNdz6\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mhAnGuHQ6GCbkCmLyaK2uW4qVKvLFGT6Mb\",\n \"public_key\": \"tpubDAW79XdMBSWKFezVG5mJfHJSpwxPcbBeZGjzhe4wjpwTW1fFFnLVTW9yekoEsEPv8zoK5zcuppbHHYBVeuNVqDY3qhcBczj3DNVHotLKP1D\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n17vJ7c88iwosA6GCcQmVwqKQtfFEpm34n\",\n \"public_key\": \"tpubDAW79XdMBSWKJ7qUXXYRrEVnxuxR8x9kXR1hKeRaDrPgJ8FJx4ASTuPqyXMS7mNC4WB5b8RP9icqGCHgr9UTFFkr26NMAdDPnAd6CmrHUwM\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvXn2CnkE9D2fuoCuEFtwdHeD32AtM4G4o\",\n \"public_key\": \"tpubDAW79XdMBSWKKDzubZRTFuTjJRaPxebfT2dMoJTtFhECNMKvF6P2dYzqpDSuJV5qSRygDigQ3UZSStcb8kJMP9xeYXncLf3Pp4UYtm1uanG\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mus9Ydyfgkz3ptRotMCi47gT7RjZU3rRP1\",\n \"public_key\": \"tpubDAW79XdMBSWKP5ArqdvNsqK7CpwwcjK1pC9VmikE97pGTiyAHScXyEPMxS751pFDh1xJYPpHQhNwxNAWR35DdrJ1VVbNS6PHMCRB9Dxuj2L\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvqQwJwQrS1zqEkD599BtUJrWVJqAehR8J\",\n \"public_key\": \"tpubDAW79XdMBSWKSKCUic4eoG6pF5vWDLndf875autDdD6J8knyApjHrjJJLGTM6TCxPw4RR9AL9nRRCRDaqcTReo3V7JiNxByjkr2DSTvay6E\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"miX1UmkzbmSCi2HwnHEbHnTP6q3YExTDJh\",\n \"public_key\": \"tpubDAW79XdMBSWKSznFKWhZvrJwbtV7H3rVFGcBBL6sS9Mdq26BKfF3qxQ4zXuvzM3bzQ4JattpCcde91VjJxvnB6sotfoycDoixQzV3PPZyc8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n2NHQWJQwNVG4iTgpPML6EMGF3sZkQrkLv\",\n \"public_key\": \"tpubDAW79XdMBSWKX9L3fSuiRkmeLXr5vHXduVh5NBbuMBsnG62QhwjREbrKkxgNpCEMWs5hSuc8ce6bWPf35QCXCuqbHtnCStfe2TsyB31VLG4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3552X5PNyePrCn8eMZvS9VD6tCSqoGev4\",\n \"public_key\": \"tpubDAW79XdMBSWKZgJhxA3JpsRbH61nV4ZZ6bgXKXKyeaR3PAyPoA4Tq2LXTV8RbJMUwjk2egdeChqHvpi8iW2nexw9AVbEjXRca2MebSzC27E\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mm2Hs9wb14t7tvtUoMfFS2dQdJDTbDXegb\",\n \"public_key\": \"tpubDAW79XdMBSWKbMYiufrkCoSyhtrXrLN3f3DvHb3cUnqAhk4Em1rj1APi7RZKonFyTzp1q9nYvtyGyfWQvPx4vgFeAz5cm7gRC1PMdUBtJE8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n4nkQgcwUoNUmuBGkF5D6JVYWBD2oCjxgy\",\n \"public_key\": \"tpubDAW79XdMBSWKfCDkmbx42E8qVn3LB94ubCTCAJLYfFfiixqkxAmbpgRBEvFScVFBuha4tskB5akYJBvMgoRB4r2VPwmNWKMtNojC8pcrucX\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mrHpQCzrWqcwfjwkUCDjFhniQLLUmmhzv1\",\n \"public_key\": \"tpubDAW79XdMBSWKhjSxC7oEssmJ98LzLo1jFrh3QPP7pXiL7FkszShZkVJPhdNdJz3wY9CKx4YQMSiMZNjS2w9tPLnCWGFMRxfc6G2XKvg3UAX\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mjkoxxoD1AAgpFF9jfsYStKKaqNqj9tWeE\",\n \"public_key\": \"tpubDAW79XdMBSWKkJomBp9MSfM8ThaZBt89iddTR2zFzYiGPf1EdWbn1wR87cvwzCdeteBgXWQDTwAPHKhdSBRyTy25o2V8qy7JSDJ42bFUqGM\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mnoxUJhBkHwm9CWL2k9qabVFfKaFRWHT4U\",\n \"public_key\": \"tpubDAW79XdMBSWKnQXAU3QeDvgWGCiNmY3YhD59yTNEFbhKcCXMiR79o5YQRT1vVSYKKKjWKmXyAjZ21Y75RRK1fxs2omzZ2TmzkzYfjSfcUU1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mj799p6WPq35ZStjpbdrShpyzHb186FJ6K\",\n \"public_key\": \"tpubDAW79XdMBSWKpDrJ2sCm6hW8FHUieAtu45ZVGpeWuqPF5AQYjj6md34Wg8nvjHmheuobABnaiyub7yrzURiurB5Dn7ZjE1VEoGHizJMXCHL\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvGxSbinYRsyyUaw72TNVLww73Qhe3ZjPe\",\n \"public_key\": \"tpubDAW79XdMBSWKsZzUivQqKgXDXpzUjKFU5QNy6x9TeZM724UJWU2z6nvEtHf7wwzyfwU4mjebmYMmFcRBBKLpb2CWHvgfEmFKs5gJ71fHsWm\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3tScZbpAQtwiXz5Qffx5WYon6XE7xE1Zi\",\n \"public_key\": \"tpubDAW79XdMBSWKvXmcyS5xm23jTnty87zyw8ek34bsX9N7T9UhXhCTnUpUZX7j3LpsY22oAT8YcaQm2nUKxofRT3d3zagcJcrX6WY5U5qhFX1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mqCgp45Ric4MhyiRahC19zLX4EkzVjeWAC\",\n \"public_key\": \"tpubDAW79XdMBSWKwqN7uRmLC6Vd19tkFE58mJrsDNJqZE7ZrhwE6M9ooycjUmsSpCZwZ3LpH4uVJfujwZu1feuBhkbScN8vW9aNVNCQjQiYPHU\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mu3fBASWD35c1ZE1BZrFD2mhTaupaq8PGh\",\n \"public_key\": \"tpubDAW79XdMBSWL1ixCKHokHLmEwTfMoV4MwX4WPW778Tqv4EmffaUff8oK4XTQtDjcQBCDcga4VzSpVmM7eShgdrvC8T1NpSCoo9S2KYUMmX7\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mpqzuoAXDAQtqf5Dwtnbr66SM3tE4pp3rp\",\n \"public_key\": \"tpubDAjFStUwjDH7vkKdLDoTi1Q3FwK1sjBQNnQEiESyMAWLSjp8krEtkDCzM41KX1fFeoyL7VH8DZf2UmNBESsCG9urtCjfZfb1C9kgG7WkhuB\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mzEmfh4uspXPtTCfsXNsfLmiCbXFS4gyHt\",\n \"public_key\": \"tpubDAjFStUwjDH7zPEsqkYmbcsf5GCHcnUvNWh9ZXpY6vwuQmekFaDEQe3LRmYHNwRzBstwicJykjrAfahdd2BY9Kedptme1A9ZNk3MNqNp4LK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3i7bqoEqUQ1RcStUikgzYzQMytGbf8Kce\",\n \"public_key\": \"tpubDAjFStUwjDH82VTa38QcPiMmLSJNSc99ekVyM89GpooKvdAmnEz3XSYZQAP4ovHHcKa2x4bPmrpkHwXf3Eq3zckWFXx17YfnsBvgN7TV3Vp\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mzLMzMJutdQAX6d7RCSv2VdioLxZRqzfT5\",\n \"public_key\": \"tpubDAjFStUwjDH85HwL3XKTXtsbqXm569EysEWxojGWcBcYHrjFfR77ycGqjsqnktN5v2rqXyt21mywwsAj5H6ETFsGVV9Qs8y9s4eiHueqZPN\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mxxBuAQjcwY7e17fGCFG7n23ZKuj4e4sGP\",\n \"public_key\": \"tpubDAjFStUwjDH86uewVAKqMtbEac2TJnrhCacjSSujZPwLZGvgDrLpog3KKGui3XJjYkNbKSkK15nPhiy4qQcPUtetJWQ6pNaBUvBTn9zx5jH\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mx4a4weRmfyGnmNbJos3T4UwYhiJYBGQ6Y\",\n \"public_key\": \"tpubDAjFStUwjDH89THDa6QcAbgSL5NJBDQ5x9UwVy1YHzm7u6LBTrSBTi7akGiicqHK8h2DRsU5ZpTyVJ3pFE98JyemicyGvM2n4ARLSwKD4C9\",\n \"used_times\": 0\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mg5XG61vApxKY8hrYQpsDSC2prjRFdoSFz\",\n \"pubkey\": \"tpubDA9GDAntyJu4y6STXyLvFwYonUMxxFG3KF7vjU1L1UYViguMccEsniZGJ1wAEEumX7DnX3KqaD34MNrXn4UtUSPgcNL8csX8YtyMFzayxhJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"miFZaZR26oxWBuGHoVewAJY2zUMqCAXRPR\",\n \"pubkey\": \"tpubDA9GDAntyJu4XPG4er5WN36WhksXyXMKk4zNG3cf9wCg7DBToXy2JG3XdJAXTUeTkAHpEtmsiKEfoVP6Wq6FrYps4jVZVytS5ZaF87bnpyN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"midzUwJrhafgqSWY1hnVAb3qv35MSnmjV2\",\n \"pubkey\": \"tpubDA9GDAntyJu4pyFW6VunWPThfijGmBzxtX3F7mQPa6vLye9QpGUjNZ2R8ccXarf6HzpoLHzK34NJXGMDvrpNastiNgd2Tm2ruC9wp45QFnv\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mipxo98QKrHrUuUQYjFZK46oqLGtLmMSwH\",\n \"pubkey\": \"tpubDA9GDAntyJu4UNZPuyUMAd3etuVUwnqb9P3TkGEBJ5moLKocCv5jZGu89MmhLJyFvcB7JbUd1X2yQoxbDTCEtRYRPSz9oPtUvvV7dVyKqoX\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkFySn1FLcsV4G98Q34rTyFN5Axg1PiQjU\",\n \"pubkey\": \"tpubDA9GDAntyJu4NEJVD6mYkauq2H7Yzu4Jf9A5xSYD8i5NX7zA6kD7xaFxhmYH2jnvvj3Xc6bvFBAb5yaXZJYfgGwPtz3XKEGDcJQ81kuxm3L\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkUTw27JHZoJHJHzSDQ97Ceyq4VBej3yyK\",\n \"pubkey\": \"tpubDA9GDAntyJu4QmdN5bBMNsonCPSGXSK8rSHxPt4mTDkhZrFGAGbTVwKXv1MUXnotkefxDtsCuAtbhZ3wDdtSzvEYoavwkr318ZCHULeoop4\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkwgTXU3CySx1QjuChm3fCVkrxNA1ngjoN\",\n \"pubkey\": \"tpubDA9GDAntyJu4a4sJE8oxnPats4nwGznyiKAbo1FKpQChBYMPwrXkkLNUfY9F7K9anoXaazu7nttpH4uVnHU7j6tdMsgsqzVXnMG6mUnEq4U\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"moUzj5xGfJRgaNudB4AerRhAGt4uKDcjnT\",\n \"pubkey\": \"tpubDA9GDAntyJu4QZer5R5xHsYAyg6o1ypSyu5CqrfYemiGDuErjV29v8H1WMRwwxrtD2UgNRzxnxnsFNFiecreLUHCHQZCbqGEwGfqsXanVPR\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mp3PGvEji1MXbH3SSTEQPwpJFnCcBvfsic\",\n \"pubkey\": \"tpubDA9GDAntyJu4s8tSijSESvdCreh7xYonotFtqEgTVMcVGEqmz5ALpFJBqW6EVtNvWtDzYWPAK1TseEyADNNBdSWbbshLB9XqaqczwHVas5K\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mr1ieSxFna6Yrma5Ltm5CwD4vhCeHwDkrg\",\n \"pubkey\": \"tpubDA9GDAntyJu55fZc8Yvf9vD8FzSKnXmJoBDp58FVjVscWYNM5W4dD4PSCDs6oeGfSsmoRM1NZMbJPywj4bGG3czVMciYhXxC54WkWAPndsD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"msStoF5GdKoedDQrmGNqcxuTgxJUHDTzv8\",\n \"pubkey\": \"tpubDA9GDAntyJu4ck9jWkt1UHZcNnZMKkkPkjqD1uU5dvTwdDXY8VgrWSxdh4xj9cTwZJu9WJ9KtQjABwxJszCV4bEzdR39dQoSjiwyVF6xHuJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mtN7W3i3DxpmngQAQ6dphzJGyKpyCRAhQ4\",\n \"pubkey\": \"tpubDA9GDAntyJu4GUKk3dCgFKgwjZhKPqhVsXzLYqss5vDn5WLNp8ew81fZmAVZW1aQEEa34bAsMzUdJDyNoF3hoZYxj46424mWoSamR5Wh3BJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mtPJ9NoLSFGRLcvkXTqec4H1b8cvNvVDmo\",\n \"pubkey\": \"tpubDA9GDAntyJu53XZTnvyT14Rczz9kxB5F5zQfhzPQChccfT9FUXB1uKYbfngHdA9xdeGmrnfKtNKebDwnwZNUEpteTUvj4Uw6ypjXpiXQGVW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mvcRx2osvbBhCUhcfx3wEzxYVSHuMP2uoJ\",\n \"pubkey\": \"tpubDA9GDAntyJu4TUjpRLmrWdsR2ofuw4VjwghCYQBJJvdSPncQwUohwkyb2DodQe7f7zNRz3oDUzJ4z2FJw7y7tjyaLczu8fY9VR395XqQhwE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwCQWwiVaBN6W6ykrkQx7vFafLK24nW2Nh\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fequkn1sLtjceVm74eJiCFxZasFNV5hZ7RRbUVhV8hN1uxLGcu7nycRAhNEuDsEK2Q6qHgFdRvzYiWkLBBcPnvRLhpbC9Di\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwJtCMVSCBokj61eotXbuCQWyYYbaRh2Jo\",\n \"pubkey\": \"tpubDA9GDAntyJu4eZWXpQk8URGnudrP6wiGaCb6t1AtvN1ENS4AabSxe3RwAatHomygs2uT1e5cxEtWzGfQeF8KNEs2CJXV4Xx1Tp38mgamGKa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwPJjB2TsnuutPZjy6boCGTNcUKkYfpBeB\",\n \"pubkey\": \"tpubDA9GDAntyJu4mQNp3uErTbVZGSeps16NoxCgWuQKoEfKzXjabaPWsNWDUQv8rHTz7M78FFmWvVZzDY8q2pRrsZRTZ1fKHfnmraAUot2GNkz\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwn2nMoC75u4TZCWtjt84SjTTjNLUvwG7M\",\n \"pubkey\": \"tpubDA9GDAntyJu4KxALKMr8nt4S124RujUVhACx2topLQiaW9Sh63hy8BwGko5BbDX9YegWZ1HnwW2Eu1jdECXMNZN8iLnpRb2UtbnKUpSWLp3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mxnsSgZUudUu6FdhFFGtLq9wnPE7kcpbm5\",\n \"pubkey\": \"tpubDA9GDAntyJu4FrkNRUhQxxxyL3GoEVwzFQXEWEgL3NetQmQQnWpjed2KMX5ispZh8eLJC2qCjhE3xuzBCkSw2rr1L8RsXh46eMWuJDcATft\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mxtngz5z6SoFRPQpxXqGmqmK3nfqTgcHtM\",\n \"pubkey\": \"tpubDA9GDAntyJu4HvhxXAmpSWr5C5B94v212cFdVybkJS7j9G87VeNqvHHPXfJxRQBM8YZkbjA7EsHceEGU6ymeVTFG9oCsiJeKa6nwn6ypdoL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"myzTeKEFjr28Ui8t5uSyn4poyK6CpwbaWr\",\n \"pubkey\": \"tpubDA9GDAntyJu4zvay85ihpnxTMrXPovQuorU27uHgyxXbdhRJ9TKwgL5VFUJJzergkBWHy8wP1v9HxNitavBAdhLHUgDZUCqgnZJP63xHir6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n1PhqEu95vGdkVhX52V4NHoFueQrFXYzsi\",\n \"pubkey\": \"tpubDA9GDAntyJu4fUi82pqai3yd1bKYUfeEzpVWDxeeRrsSfMeN2uh3sn86aucvbP8zh4HN9iTp22CE3zkASaiM7Hm7RSHxQey1fyvLNRPYRYg\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n1m1da7rPwiDKsi5yon1B2Biadn858q4LV\",\n \"pubkey\": \"tpubDA9GDAntyJu4NmM6JxRkDceik2Q3EVtfymoYC6RLBx1ofW9EfoYLF4bwpgdPLT9G3eujG9a5iUXfBDrdt8qewEAbMFCdnEN1yu41SgRb4Je\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n2AkiTbZPhUhKUTv7HtGA9sixG6mmJUVzT\",\n \"pubkey\": \"tpubDA9GDAntyJu4vCebxeHm5FS4hEqx3vkFMDqTPds84hXxjrtdumQQPFiqSC4Whj1r8HTQVhT2Y76uKrmndSkZSw2RLtwLqv6gjKVkwRXHa7n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n2FEq5YjxN5dQSdWS6nxbhxWHe6BUcdFeo\",\n \"pubkey\": \"tpubDA9GDAntyJu4j46UW4VNR8ns9NbojeHcWSuWsVcjdPoB6YCQ1svoqfzPEnv5d4H68EuJgUUHw2Ltqa4TZfGxRfBc3GdHyooo4zsaKJmTGR4\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n3Kug5wkv11xsnpiWLLPdntfGahRM5gvaU\",\n \"pubkey\": \"tpubDA9GDAntyJu4Kj3js8egKAnquagYAcATwALVWFmKCQHwXrACsQNYedqobw7hNykCH9z7KsrC6AyyJV3a3rLzdAyrrke53YRnzjFCG8iwFnS\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mfs2ytqXkxb9S1dGPms3N9fdytPnPAJras\",\n \"pubkey\": \"tpubDA9GDAntyJu4btP5UodVBZCMjKCu9y1bddLfbwqZkbadYXa8uiraLaLoUipquWWMJpN6M1VkapNbUeoroknnBeLtGucgZMg7hByCWQnvPVU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mgLfBypW77HF5yFFrFPgoiqW2u8rgejUF4\",\n \"pubkey\": \"tpubDA9GDAntyJu53xywLvTVqg5FPujfPN54ZfyBK4RJhg9X3PJMBXqs4CUpZudi8Db6ZMXp5ZPDWA1VxfdBnp795HguqgnWDewAEChSUeewZS6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mhHdrqNDP6EN1799gCeGJu8rAwS9kdqFKs\",\n \"pubkey\": \"tpubDA9GDAntyJu4sYsiMJsB9YmhLtFCEqqZbZe3CWNXjFNWzvSRXCZn4CACWFrFDz5kJh2qVHnZJWfjtePWRRpNpbtwmxdsdFSJ3VRB5SuhtNg\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mhV33ed2SewRTF97mJHMwcKV7dqY6MQVdn\",\n \"pubkey\": \"tpubDA9GDAntyJu4SZKK3Ns3yinHHznRTSJbmFCaWWRiytW7C5XjepXBEkCAbgrnvab24AuM76QCdU8eWvun8dMrat7RWhesZe5DFR9bRB26Pdt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"pubkey\": \"tpubDA9GDAntyJu4T1Z7n4HcxYybxcLMfUVpNPW4pEUapN3maDyGbf2f4pBBtiA9Xr3cszEUtk91pi7KR7u4TwAgMSAsYTUKgbDUxZ3hGx9Gz2p\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mmeqTJpc7drGQgwFMFzn44wPesZLLC5SVi\",\n \"pubkey\": \"tpubDA9GDAntyJu4Gxp8KXquKrPWYVeYW5ZCgvSWXV1pMz2YHbDUEmCsmppb87Bp685yzx6zQsvspNjAnwGwUhhjoDp6n4V3iJXKHR7T19rPRif\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mrEVeLaPuopB5WNii9Y1RziUjmA2b7An8g\",\n \"pubkey\": \"tpubDA9GDAntyJu4G5GMrn7L32ztBaMFYYZp9wdy2ajLEq7fnVAoYeEwsUYMedhMbwThcUCE7Hi63wMJPTgdpTEk3SFXJd9YF4sUTNG7BeNZMe2\",\n \"used_times\": 1\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mrFKUbtLovNmn15Dssa6QEgoc7fEybDKXg\",\n \"pubkey\": \"tpubDA9GDAntyJu4KXyRKEBModAb6MZN3UUL21aeGUG9X9EgMncGm15oPqrXSgFGqEVqfsH6Luuuw7z4UPYw6r7KRq1aJTSr55txRQYXhVfkeXm\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mtreu1T79vWw5pBai4Zfa64pwXRKD319Vh\",\n \"pubkey\": \"tpubDA9GDAntyJu4pmmkjMeerxtfZHykRKWTass3cCFNKKuuNnBZetwKTEzekWzYi9KLyAkFaoesnjBoCoY8Wtr2MueMAosRPzqBTrQZetopA3A\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mttm7KfFMpdomhCsZk8Tn1FhrUvsu16miS\",\n \"pubkey\": \"tpubDA9GDAntyJu4wnfeciCrJ8dJ4h7CDiFVcLenkSQ1LahYHNfhAMkPQhkCn1q97T4soGPzXZVmdSzs9ZFxPz9hPcSFRML2ELasXyxYZWVDVks\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"pubkey\": \"tpubDA9GDAntyJu4WrGQ9MppmvPJxFDPR2rNsEVyhkeaKjcEzJ1j1qpPU2K1YLVPpc4dR6PwX3XnirERowuqGvzVpSxYuF2rXk5CoKyxdt2rL2T\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mvP4ef8rBzcrnww1xKg6TLj9mhFFse8XKk\",\n \"pubkey\": \"tpubDA9GDAntyJu4KLAA15Sizvsf3a6ipeXDgFpfpFqrkBfUMVZAD4MCeJqX2oWc19nLLQt3zecuWquokRGBUbLdfrpxam8NyEvYzSBQ18cBoZh\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mvjMqJ9qkPWsxUEREwzVpmjE2o52bsD3mq\",\n \"pubkey\": \"tpubDA9GDAntyJu4TxKuczi5KZN8XZ3o9QdFpEuTg2jQdViJAfpWH6iTmQCDx8KgSThkVocZYs9Pa5qJ78mFt6N4CzAhm2thuU2dHD71vpaj4ab\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mvs5rXLmtrCgUjL2sdEjnwxPkNqFFkTXSD\",\n \"pubkey\": \"tpubDA9GDAntyJu4uGJnEDViJyfGj7e7SnP9rK87qYfWbbXMkcg5GVFzhga3zwP7NGaRwLDESaahRYcEUw8sxFNs5rgvR7sJdPwsYNLAbV8W98q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mwWorGq4wfVycs6rKFWMYAb5iRvAZVsVLX\",\n \"pubkey\": \"tpubDA9GDAntyJu4GSFBZwaqQLMooxNG8Wm2KrxHeTdKrRx78LNaCrUyZmg32JHHi3Utvjut5x5nz6xNM3b3SpaQPr3nyqvTJfMhNSC8ifS8gB3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mwnsJt4MvCxbhCvrF23haQn42PCfWwXdG6\",\n \"pubkey\": \"tpubDA9GDAntyJu4mGSxoCxeC6ZTjRjyMc13pjXavg26vnCZy49HuAqu45qE8MYh83zPyUcj3vpFyaB4wa7VDKpstDrgjXvZEcwfLL2iqSbgQ5t\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mxNC5J2g9aynKXTGMhZpgKyNXrNhSdVcTu\",\n \"pubkey\": \"tpubDA9GDAntyJu4PEmqX2CQWRAmSDDUk15aoy3izVHof34XBKAhP4EhK2REoBmugpxgVGY217rXm4LURwryn3q29S5peM8kkoTjimDJpJXpou1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mxWei3midnwHdDTD4BBjsYAs5uyaUy1AeD\",\n \"pubkey\": \"tpubDA9GDAntyJu4zNMnxH7Ex9ZLNbUuNeRJWUnAhGQsSGYPEQsSYaU2tB4RqaVbwv8E8jMDTsydrXjkU5feznoBL7WP2TjkHeP2xm3i9WdUuRz\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"my2f5ABaovJQvVQ7natnYNfYPDb57eoBWw\",\n \"pubkey\": \"tpubDA9GDAntyJu4P9t4UHSAZgvpWXmba1SNaCxGSbXsgz6M3DzWqsrkpCEnotFo3q2NQqMRuoycD8PxREmSDgZ3f35Jdv6uPcojA17jaBeqKh3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"myx5WnMWh9LUCY3RTWQv12GPjLjXpN3DsL\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ef2e7Be4ciA3t1Ugm2wdRJmuomf6Joset9CsBC33NXiGkWqVMcUAwQ79VhHxzsooJymc8ooQFnVv3LAuHBEVpqnfaTK9skU\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mz2GEtMTorwoKNojFvaRMdMVgf4BcD4kyy\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZKvQTyP2cDGFF2oi5ep5VSD9ECHG45EWygqFsVPKNVsMNU5NBqxouUTxqsBodCc41tLUmq6yP8BmhrCC26yw1KCs5pscoGx\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mzvv5RsGVXep3aQGUsy7PUJFmVxXsWQaEA\",\n \"pubkey\": \"tpubDA9GDAntyJu59K4Lh1bKJXUoQXmaCxSq3dz6zAhJmoo273P2tqWGK1f7Fbtz51c2mDZ6QG9FZ5gEGhYK19RW7HZHnrbpjweWe724Gqsn6LK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"mzyW7McTeBokZZ6EHJvDjEtTNUjLh9KFuk\",\n \"pubkey\": \"tpubDA9GDAntyJu56gh7BGhZx2YYLbVs8iD5Wm62ezk89mkoHQSdfoJiTKbPjcQD4bYi8sngqx1CAy7q97z5LTNAycFUo2JWkhx7vMLQexgeMz8\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"n2qXc9RgxME9xiiqLKgtTJSt7odACMm48m\",\n \"pubkey\": \"tpubDA9GDAntyJu4cr96SAuRvrhdZAPqX8ohxLhKfCVjZin2ZwRLWEAMwra6wcfD4MiQV2sa2a1RG8CZWtX6Ctyo5FTroz7Lr9tHBJhcRieSKF7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"n33GR4ajxCxhcV7cMqfuE5HxuS4Edt3CxC\",\n \"pubkey\": \"tpubDA9GDAntyJu4gRWHPjQizQwEkhKzaA3j2cN7uygCzMiCgvvovUagjkrAuKyzXGbWP7bq1zjSmqRfoMbKmeWJcPquqz9T92qs5MENQSon57c\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"n3D5ayCvtRWdFjFXsQAof2hCNUHNVV78eF\",\n \"pubkey\": \"tpubDA9GDAntyJu4iFQkbzURMtUAmvKRVLGvTkCnwo9nup1hiG9h4pMxC8YS3fgg82r1UZ93pQSFmeZkQMBwe1LdjXpmnZuC6Sy24ryuHCMsJo7\",\n \"used_times\": 0\n },\n {\n \"account\": \"mh4XMVuLqofwhSM9kpgrUPJyxSKhFqAge6\",\n \"address\": \"n4cpD2UcfHpgZdR1yhqrBGvrcwuvXcNeSa\",\n \"pubkey\": \"tpubDA9GDAntyJu4SC8LM1UQNzPMRAfBYmMV1LRHrZsLRXHrxpetth4AbJ2PzxGpHyFrjqni6gbVDt1WCUn6TSQLxcjTEKxt3P8rXj4RrUAnwJB\",\n \"used_times\": 0\n }\n ]\n}" }, { "title": "List addresses in specified account", - "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n2SPZLX879EqX8TiuSjSfFzPAVd9HV3ZGg\",\n \"public_key\": \"tpubDAW79XdMBSWKAmLX1i1FMADJDmFtT3MCotSzWQnJSEa6zWgmaKSmVUPzTezsQPsFiiHC13QjJiUoUkzxATHQUWxKT49uVKzwfKvDgb3jwRT\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"muycQZrJzCvoBRf9Q2j8Yv3k9YoQ9tTzX9\",\n \"public_key\": \"tpubDAW79XdMBSWKDFRnJDkZkoeEX3Y9yxqxsXBj9WePsVWfSDKCkspPiusSuMgCWxdaKRXHhKegw4AUCvGzabBCweFJPvSToU3jgCTyWXdNdz6\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mhAnGuHQ6GCbkCmLyaK2uW4qVKvLFGT6Mb\",\n \"public_key\": \"tpubDAW79XdMBSWKFezVG5mJfHJSpwxPcbBeZGjzhe4wjpwTW1fFFnLVTW9yekoEsEPv8zoK5zcuppbHHYBVeuNVqDY3qhcBczj3DNVHotLKP1D\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n17vJ7c88iwosA6GCcQmVwqKQtfFEpm34n\",\n \"public_key\": \"tpubDAW79XdMBSWKJ7qUXXYRrEVnxuxR8x9kXR1hKeRaDrPgJ8FJx4ASTuPqyXMS7mNC4WB5b8RP9icqGCHgr9UTFFkr26NMAdDPnAd6CmrHUwM\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvXn2CnkE9D2fuoCuEFtwdHeD32AtM4G4o\",\n \"public_key\": \"tpubDAW79XdMBSWKKDzubZRTFuTjJRaPxebfT2dMoJTtFhECNMKvF6P2dYzqpDSuJV5qSRygDigQ3UZSStcb8kJMP9xeYXncLf3Pp4UYtm1uanG\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mus9Ydyfgkz3ptRotMCi47gT7RjZU3rRP1\",\n \"public_key\": \"tpubDAW79XdMBSWKP5ArqdvNsqK7CpwwcjK1pC9VmikE97pGTiyAHScXyEPMxS751pFDh1xJYPpHQhNwxNAWR35DdrJ1VVbNS6PHMCRB9Dxuj2L\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvqQwJwQrS1zqEkD599BtUJrWVJqAehR8J\",\n \"public_key\": \"tpubDAW79XdMBSWKSKCUic4eoG6pF5vWDLndf875autDdD6J8knyApjHrjJJLGTM6TCxPw4RR9AL9nRRCRDaqcTReo3V7JiNxByjkr2DSTvay6E\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"miX1UmkzbmSCi2HwnHEbHnTP6q3YExTDJh\",\n \"public_key\": \"tpubDAW79XdMBSWKSznFKWhZvrJwbtV7H3rVFGcBBL6sS9Mdq26BKfF3qxQ4zXuvzM3bzQ4JattpCcde91VjJxvnB6sotfoycDoixQzV3PPZyc8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n2NHQWJQwNVG4iTgpPML6EMGF3sZkQrkLv\",\n \"public_key\": \"tpubDAW79XdMBSWKX9L3fSuiRkmeLXr5vHXduVh5NBbuMBsnG62QhwjREbrKkxgNpCEMWs5hSuc8ce6bWPf35QCXCuqbHtnCStfe2TsyB31VLG4\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3552X5PNyePrCn8eMZvS9VD6tCSqoGev4\",\n \"public_key\": \"tpubDAW79XdMBSWKZgJhxA3JpsRbH61nV4ZZ6bgXKXKyeaR3PAyPoA4Tq2LXTV8RbJMUwjk2egdeChqHvpi8iW2nexw9AVbEjXRca2MebSzC27E\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mm2Hs9wb14t7tvtUoMfFS2dQdJDTbDXegb\",\n \"public_key\": \"tpubDAW79XdMBSWKbMYiufrkCoSyhtrXrLN3f3DvHb3cUnqAhk4Em1rj1APi7RZKonFyTzp1q9nYvtyGyfWQvPx4vgFeAz5cm7gRC1PMdUBtJE8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n4nkQgcwUoNUmuBGkF5D6JVYWBD2oCjxgy\",\n \"public_key\": \"tpubDAW79XdMBSWKfCDkmbx42E8qVn3LB94ubCTCAJLYfFfiixqkxAmbpgRBEvFScVFBuha4tskB5akYJBvMgoRB4r2VPwmNWKMtNojC8pcrucX\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mrHpQCzrWqcwfjwkUCDjFhniQLLUmmhzv1\",\n \"public_key\": \"tpubDAW79XdMBSWKhjSxC7oEssmJ98LzLo1jFrh3QPP7pXiL7FkszShZkVJPhdNdJz3wY9CKx4YQMSiMZNjS2w9tPLnCWGFMRxfc6G2XKvg3UAX\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mjkoxxoD1AAgpFF9jfsYStKKaqNqj9tWeE\",\n \"public_key\": \"tpubDAW79XdMBSWKkJomBp9MSfM8ThaZBt89iddTR2zFzYiGPf1EdWbn1wR87cvwzCdeteBgXWQDTwAPHKhdSBRyTy25o2V8qy7JSDJ42bFUqGM\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mnoxUJhBkHwm9CWL2k9qabVFfKaFRWHT4U\",\n \"public_key\": \"tpubDAW79XdMBSWKnQXAU3QeDvgWGCiNmY3YhD59yTNEFbhKcCXMiR79o5YQRT1vVSYKKKjWKmXyAjZ21Y75RRK1fxs2omzZ2TmzkzYfjSfcUU1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mj799p6WPq35ZStjpbdrShpyzHb186FJ6K\",\n \"public_key\": \"tpubDAW79XdMBSWKpDrJ2sCm6hW8FHUieAtu45ZVGpeWuqPF5AQYjj6md34Wg8nvjHmheuobABnaiyub7yrzURiurB5Dn7ZjE1VEoGHizJMXCHL\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mvGxSbinYRsyyUaw72TNVLww73Qhe3ZjPe\",\n \"public_key\": \"tpubDAW79XdMBSWKsZzUivQqKgXDXpzUjKFU5QNy6x9TeZM724UJWU2z6nvEtHf7wwzyfwU4mjebmYMmFcRBBKLpb2CWHvgfEmFKs5gJ71fHsWm\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3tScZbpAQtwiXz5Qffx5WYon6XE7xE1Zi\",\n \"public_key\": \"tpubDAW79XdMBSWKvXmcyS5xm23jTnty87zyw8ek34bsX9N7T9UhXhCTnUpUZX7j3LpsY22oAT8YcaQm2nUKxofRT3d3zagcJcrX6WY5U5qhFX1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mqCgp45Ric4MhyiRahC19zLX4EkzVjeWAC\",\n \"public_key\": \"tpubDAW79XdMBSWKwqN7uRmLC6Vd19tkFE58mJrsDNJqZE7ZrhwE6M9ooycjUmsSpCZwZ3LpH4uVJfujwZu1feuBhkbScN8vW9aNVNCQjQiYPHU\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mu3fBASWD35c1ZE1BZrFD2mhTaupaq8PGh\",\n \"public_key\": \"tpubDAW79XdMBSWL1ixCKHokHLmEwTfMoV4MwX4WPW778Tqv4EmffaUff8oK4XTQtDjcQBCDcga4VzSpVmM7eShgdrvC8T1NpSCoo9S2KYUMmX7\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mpqzuoAXDAQtqf5Dwtnbr66SM3tE4pp3rp\",\n \"public_key\": \"tpubDAjFStUwjDH7vkKdLDoTi1Q3FwK1sjBQNnQEiESyMAWLSjp8krEtkDCzM41KX1fFeoyL7VH8DZf2UmNBESsCG9urtCjfZfb1C9kgG7WkhuB\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mzEmfh4uspXPtTCfsXNsfLmiCbXFS4gyHt\",\n \"public_key\": \"tpubDAjFStUwjDH7zPEsqkYmbcsf5GCHcnUvNWh9ZXpY6vwuQmekFaDEQe3LRmYHNwRzBstwicJykjrAfahdd2BY9Kedptme1A9ZNk3MNqNp4LK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"n3i7bqoEqUQ1RcStUikgzYzQMytGbf8Kce\",\n \"public_key\": \"tpubDAjFStUwjDH82VTa38QcPiMmLSJNSc99ekVyM89GpooKvdAmnEz3XSYZQAP4ovHHcKa2x4bPmrpkHwXf3Eq3zckWFXx17YfnsBvgN7TV3Vp\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mzLMzMJutdQAX6d7RCSv2VdioLxZRqzfT5\",\n \"public_key\": \"tpubDAjFStUwjDH85HwL3XKTXtsbqXm569EysEWxojGWcBcYHrjFfR77ycGqjsqnktN5v2rqXyt21mywwsAj5H6ETFsGVV9Qs8y9s4eiHueqZPN\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mxxBuAQjcwY7e17fGCFG7n23ZKuj4e4sGP\",\n \"public_key\": \"tpubDAjFStUwjDH86uewVAKqMtbEac2TJnrhCacjSSujZPwLZGvgDrLpog3KKGui3XJjYkNbKSkK15nPhiy4qQcPUtetJWQ6pNaBUvBTn9zx5jH\",\n \"used_times\": 0\n },\n {\n \"account\": \"n4CVWtFkbgVwmqcVwXJSroLTWoRUwHCyn1\",\n \"address\": \"mx4a4weRmfyGnmNbJos3T4UwYhiJYBGQ6Y\",\n \"public_key\": \"tpubDAjFStUwjDH89THDa6QcAbgSL5NJBDQ5x9UwVy1YHzm7u6LBTrSBTi7akGiicqHK8h2DRsU5ZpTyVJ3pFE98JyemicyGvM2n4ARLSwKD4C9\",\n \"used_times\": 0\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mg5XG61vApxKY8hrYQpsDSC2prjRFdoSFz\",\n \"pubkey\": \"tpubDA9GDAntyJu4y6STXyLvFwYonUMxxFG3KF7vjU1L1UYViguMccEsniZGJ1wAEEumX7DnX3KqaD34MNrXn4UtUSPgcNL8csX8YtyMFzayxhJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"miFZaZR26oxWBuGHoVewAJY2zUMqCAXRPR\",\n \"pubkey\": \"tpubDA9GDAntyJu4XPG4er5WN36WhksXyXMKk4zNG3cf9wCg7DBToXy2JG3XdJAXTUeTkAHpEtmsiKEfoVP6Wq6FrYps4jVZVytS5ZaF87bnpyN\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"midzUwJrhafgqSWY1hnVAb3qv35MSnmjV2\",\n \"pubkey\": \"tpubDA9GDAntyJu4pyFW6VunWPThfijGmBzxtX3F7mQPa6vLye9QpGUjNZ2R8ccXarf6HzpoLHzK34NJXGMDvrpNastiNgd2Tm2ruC9wp45QFnv\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mipxo98QKrHrUuUQYjFZK46oqLGtLmMSwH\",\n \"pubkey\": \"tpubDA9GDAntyJu4UNZPuyUMAd3etuVUwnqb9P3TkGEBJ5moLKocCv5jZGu89MmhLJyFvcB7JbUd1X2yQoxbDTCEtRYRPSz9oPtUvvV7dVyKqoX\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkFySn1FLcsV4G98Q34rTyFN5Axg1PiQjU\",\n \"pubkey\": \"tpubDA9GDAntyJu4NEJVD6mYkauq2H7Yzu4Jf9A5xSYD8i5NX7zA6kD7xaFxhmYH2jnvvj3Xc6bvFBAb5yaXZJYfgGwPtz3XKEGDcJQ81kuxm3L\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkUTw27JHZoJHJHzSDQ97Ceyq4VBej3yyK\",\n \"pubkey\": \"tpubDA9GDAntyJu4QmdN5bBMNsonCPSGXSK8rSHxPt4mTDkhZrFGAGbTVwKXv1MUXnotkefxDtsCuAtbhZ3wDdtSzvEYoavwkr318ZCHULeoop4\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mkwgTXU3CySx1QjuChm3fCVkrxNA1ngjoN\",\n \"pubkey\": \"tpubDA9GDAntyJu4a4sJE8oxnPats4nwGznyiKAbo1FKpQChBYMPwrXkkLNUfY9F7K9anoXaazu7nttpH4uVnHU7j6tdMsgsqzVXnMG6mUnEq4U\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"moUzj5xGfJRgaNudB4AerRhAGt4uKDcjnT\",\n \"pubkey\": \"tpubDA9GDAntyJu4QZer5R5xHsYAyg6o1ypSyu5CqrfYemiGDuErjV29v8H1WMRwwxrtD2UgNRzxnxnsFNFiecreLUHCHQZCbqGEwGfqsXanVPR\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mp3PGvEji1MXbH3SSTEQPwpJFnCcBvfsic\",\n \"pubkey\": \"tpubDA9GDAntyJu4s8tSijSESvdCreh7xYonotFtqEgTVMcVGEqmz5ALpFJBqW6EVtNvWtDzYWPAK1TseEyADNNBdSWbbshLB9XqaqczwHVas5K\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mr1ieSxFna6Yrma5Ltm5CwD4vhCeHwDkrg\",\n \"pubkey\": \"tpubDA9GDAntyJu55fZc8Yvf9vD8FzSKnXmJoBDp58FVjVscWYNM5W4dD4PSCDs6oeGfSsmoRM1NZMbJPywj4bGG3czVMciYhXxC54WkWAPndsD\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"msStoF5GdKoedDQrmGNqcxuTgxJUHDTzv8\",\n \"pubkey\": \"tpubDA9GDAntyJu4ck9jWkt1UHZcNnZMKkkPkjqD1uU5dvTwdDXY8VgrWSxdh4xj9cTwZJu9WJ9KtQjABwxJszCV4bEzdR39dQoSjiwyVF6xHuJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mtN7W3i3DxpmngQAQ6dphzJGyKpyCRAhQ4\",\n \"pubkey\": \"tpubDA9GDAntyJu4GUKk3dCgFKgwjZhKPqhVsXzLYqss5vDn5WLNp8ew81fZmAVZW1aQEEa34bAsMzUdJDyNoF3hoZYxj46424mWoSamR5Wh3BJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mtPJ9NoLSFGRLcvkXTqec4H1b8cvNvVDmo\",\n \"pubkey\": \"tpubDA9GDAntyJu53XZTnvyT14Rczz9kxB5F5zQfhzPQChccfT9FUXB1uKYbfngHdA9xdeGmrnfKtNKebDwnwZNUEpteTUvj4Uw6ypjXpiXQGVW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mvcRx2osvbBhCUhcfx3wEzxYVSHuMP2uoJ\",\n \"pubkey\": \"tpubDA9GDAntyJu4TUjpRLmrWdsR2ofuw4VjwghCYQBJJvdSPncQwUohwkyb2DodQe7f7zNRz3oDUzJ4z2FJw7y7tjyaLczu8fY9VR395XqQhwE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwCQWwiVaBN6W6ykrkQx7vFafLK24nW2Nh\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fequkn1sLtjceVm74eJiCFxZasFNV5hZ7RRbUVhV8hN1uxLGcu7nycRAhNEuDsEK2Q6qHgFdRvzYiWkLBBcPnvRLhpbC9Di\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwJtCMVSCBokj61eotXbuCQWyYYbaRh2Jo\",\n \"pubkey\": \"tpubDA9GDAntyJu4eZWXpQk8URGnudrP6wiGaCb6t1AtvN1ENS4AabSxe3RwAatHomygs2uT1e5cxEtWzGfQeF8KNEs2CJXV4Xx1Tp38mgamGKa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwPJjB2TsnuutPZjy6boCGTNcUKkYfpBeB\",\n \"pubkey\": \"tpubDA9GDAntyJu4mQNp3uErTbVZGSeps16NoxCgWuQKoEfKzXjabaPWsNWDUQv8rHTz7M78FFmWvVZzDY8q2pRrsZRTZ1fKHfnmraAUot2GNkz\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mwn2nMoC75u4TZCWtjt84SjTTjNLUvwG7M\",\n \"pubkey\": \"tpubDA9GDAntyJu4KxALKMr8nt4S124RujUVhACx2topLQiaW9Sh63hy8BwGko5BbDX9YegWZ1HnwW2Eu1jdECXMNZN8iLnpRb2UtbnKUpSWLp3\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mxnsSgZUudUu6FdhFFGtLq9wnPE7kcpbm5\",\n \"pubkey\": \"tpubDA9GDAntyJu4FrkNRUhQxxxyL3GoEVwzFQXEWEgL3NetQmQQnWpjed2KMX5ispZh8eLJC2qCjhE3xuzBCkSw2rr1L8RsXh46eMWuJDcATft\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"mxtngz5z6SoFRPQpxXqGmqmK3nfqTgcHtM\",\n \"pubkey\": \"tpubDA9GDAntyJu4HvhxXAmpSWr5C5B94v212cFdVybkJS7j9G87VeNqvHHPXfJxRQBM8YZkbjA7EsHceEGU6ymeVTFG9oCsiJeKa6nwn6ypdoL\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"myzTeKEFjr28Ui8t5uSyn4poyK6CpwbaWr\",\n \"pubkey\": \"tpubDA9GDAntyJu4zvay85ihpnxTMrXPovQuorU27uHgyxXbdhRJ9TKwgL5VFUJJzergkBWHy8wP1v9HxNitavBAdhLHUgDZUCqgnZJP63xHir6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n1PhqEu95vGdkVhX52V4NHoFueQrFXYzsi\",\n \"pubkey\": \"tpubDA9GDAntyJu4fUi82pqai3yd1bKYUfeEzpVWDxeeRrsSfMeN2uh3sn86aucvbP8zh4HN9iTp22CE3zkASaiM7Hm7RSHxQey1fyvLNRPYRYg\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n1m1da7rPwiDKsi5yon1B2Biadn858q4LV\",\n \"pubkey\": \"tpubDA9GDAntyJu4NmM6JxRkDceik2Q3EVtfymoYC6RLBx1ofW9EfoYLF4bwpgdPLT9G3eujG9a5iUXfBDrdt8qewEAbMFCdnEN1yu41SgRb4Je\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n2AkiTbZPhUhKUTv7HtGA9sixG6mmJUVzT\",\n \"pubkey\": \"tpubDA9GDAntyJu4vCebxeHm5FS4hEqx3vkFMDqTPds84hXxjrtdumQQPFiqSC4Whj1r8HTQVhT2Y76uKrmndSkZSw2RLtwLqv6gjKVkwRXHa7n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n2FEq5YjxN5dQSdWS6nxbhxWHe6BUcdFeo\",\n \"pubkey\": \"tpubDA9GDAntyJu4j46UW4VNR8ns9NbojeHcWSuWsVcjdPoB6YCQ1svoqfzPEnv5d4H68EuJgUUHw2Ltqa4TZfGxRfBc3GdHyooo4zsaKJmTGR4\",\n \"used_times\": 0\n },\n {\n \"account\": \"mghrWJVVr1dcYMv7xzM2XsWv4u1DfkLaYL\",\n \"address\": \"n3Kug5wkv11xsnpiWLLPdntfGahRM5gvaU\",\n \"pubkey\": \"tpubDA9GDAntyJu4Kj3js8egKAnquagYAcATwALVWFmKCQHwXrACsQNYedqobw7hNykCH9z7KsrC6AyyJV3a3rLzdAyrrke53YRnzjFCG8iwFnS\",\n \"used_times\": 0\n }\n ]\n}" } ] }, @@ -789,6 +885,12 @@ "type": "str", "description": "id of the account to use", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": " \"an address in base58\"", @@ -798,7 +900,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\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mvP4ef8rBzcrnww1xKg6TLj9mhFFse8XKk\"\n}" } ] } @@ -848,10 +950,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"9e7c349d8136dde580b7abe14d3d40454acc00403aa8e9587c481f199b4e4bd35961e5a44186831165a7899cecab5b09\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 9e7c349d8136dde580b7abe14d3d40454acc00403aa8e9587c481f199b4e4bd35961e5a44186831165a7899cecab5b09", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"9e7c349d8136dde580b7abe14d3d40454acc00403aa8e9587c481f199b4e4bd35961e5a44186831165a7899cecab5b09\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 9e7c349d8136dde580b7abe14d3d40454acc00403aa8e9587c481f199b4e4bd35961e5a44186831165a7899cecab5b09\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"ebaf655b4667e6ce3a9a58b1340229b6414f4b8f1f0b6a2f3a233563d1726dc353ca9bf6bc62d3cacc7b2c3a6281b835\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete ebaf655b4667e6ce3a9a58b1340229b6414f4b8f1f0b6a2f3a233563d1726dc353ca9bf6bc62d3cacc7b2c3a6281b835", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"ebaf655b4667e6ce3a9a58b1340229b6414f4b8f1f0b6a2f3a233563d1726dc353ca9bf6bc62d3cacc7b2c3a6281b835\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted ebaf655b4667e6ce3a9a58b1340229b6414f4b8f1f0b6a2f3a233563d1726dc353ca9bf6bc62d3cacc7b2c3a6281b835\"\n}" } ] }, @@ -929,7 +1031,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 \"9e7c349d8136dde580b7abe14d3d40454acc00403aa8e9587c481f199b4e4bd35961e5a44186831165a7899cecab5b09\",\n \"3b8e011707b41345c529af3ca02ed9460b77cabdc09520c90aa1e3e49d1e0ef9a587ff696daf2014c085c7091ca677b7\",\n \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"3cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"ebaf655b4667e6ce3a9a58b1340229b6414f4b8f1f0b6a2f3a233563d1726dc353ca9bf6bc62d3cacc7b2c3a6281b835\",\n \"a36c0d3fb52e1ddcef5f1f804b2e1b0b637bc9cdbc49d962c8b1cef618df23b6d77b7fade35fb1e1dd35ca2530dfaa43\",\n \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f\"\n ]\n}" } ] }, @@ -987,6 +1089,12 @@ "description": "id of the account to use", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "preview", "type": "bool", @@ -1004,10 +1112,10 @@ "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon 94255d17439764c8d6011c171ee175a99ce1f689", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017c53ad031c23e44b78ca8be3f5a0c3302346b79f787e96156e89ceccbaf3c47a000000006a47304402207d5904beff4677f1b6acee8277a7bd6a8d6ac6cb49af817a864f6a8a1f44f63802206fbca4060fc6ae824d402ac5793ee84696c9402c31dd82e1fa67e5735d44551e0121034ba053213346eb0b84ed63e09d64115d986e9355977cb68a4f7b88b77ce6b377ffffffff0134b7f505000000001976a914f523071a782d1d650707eea52fb3b7e779682bff88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3s7opgyyYkySiF37MzVWtvX6vf5hKXGoo\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"fd474eeee49d5824459d977aaa0f5c466653c06ad1dd34971fc9300e34b46844\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"fd474eeee49d5824459d977aaa0f5c466653c06ad1dd34971fc9300e34b46844\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon d9461e1626758b5ede38db2c04750cad465ffd6b", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017b360885acf79e18c0f429719684b843bb647c00d9f218c2534e934972887021000000006b483045022100a7e6d5090b614f70ac43fcb6b9b3951b91bb98b8c66d6d3b13fdd7839870fc2102206608e3625fdac95ea138159cb1eeadf479ad3ea4c81bce193c3d2c34e9972cc60121022aa2f12672f4c400bc6a2575c6c26e4fbf3cde85bce2f2b3802a894d65ca8affffffffff0134b7f505000000001976a914291c4abdb4c9dbcadc6b53c155ea7e6a1bf0a4bb88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjGKtgKTEPTuEwhnRsoM4x3XGHY2A2HuC1\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"ff9fce0f7ad35fed168dc4d71bd4dc8837be8df67bf6b0bdeb3fbdd46e754960\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"ff9fce0f7ad35fed168dc4d71bd4dc8837be8df67bf6b0bdeb3fbdd46e754960\"\n }\n}" } ] }, @@ -1099,6 +1207,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -1131,14 +1245,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\": \"0100000001e8f6527b6b151cc0202a565ff0322844d6c8b128e9b356c5266f294ff908e5ff010000006b483045022100f60cef864f88a2148dfb736b9a4b4b16f46c0df5884d9e49f771a98543005e990220384832e59925be9f5a8668cce0c310c4a5f2be73cb94d366368877df356342e201210206b848d0f7e552cfadfa766cd262346364ec81b186db7a3a9fd16aec6a18b643ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f596d7576a914f8e6c83ea0c10cfe10f9de054f90209898e2035088acc462a029000000001976a914de5fd66f1c8e5041d1479e465d2a9d59b1d01ac588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxtTZfLc4o4wuvqzWxj5B3eLMA4ToMqPeT\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697535,\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\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#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": null,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n1nm7ZC8Q5cqtJiNi9J1z4hU43cThbRQjQ\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001bf23c5b635839f2795d3a340abbe92a6487f1104f6d49119a467a961d5a48689010000006a4730440220175e9942c3625e6a16e1c746838cd48576d4c984d80d7f09dc38f65b2e01f56c022028b24d48b4921ee41b3a1af004d168d7beb45e80490077974097013b956ee151012103c3fca2476f4897d01e1dc54c9b41c47f6ad24329cfcf35e4ebefb3212ff15a91ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e4286d7576a91425425d5b4fd2a473faab15716ce2e81a02889d3988acc462a029000000001976a914db9c5451ccf708594a67dd1b397fddefdd338f8788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvjMqJ9qkPWsxUEREwzVpmjE2o52bsD3mq\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987033,\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\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#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": null,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n1Y9Z283zr8s6xoNGCzbJ4tgCeVBrRUx2b\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\"\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\": \"01000000017c53ad031c23e44b78ca8be3f5a0c3302346b79f787e96156e89ceccbaf3c47a010000006b4830450221009a2905b2c6d840ab3f77a0f477569cd6ed9dc20e2e046f7cf4ae00533732f9ed02203a92ffd5907ffee257d6f86fd08fbf5cf22164e6ff119e449ac927e5ebc3c9d60121032f6a33097869e46bc794c3a7f2587d102a0169b1e5df19e5146b29a6b8298617ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a034200042f5ebaeeab1d9ca8ac9d12a6f11d2a20d79f8815aa8734909b94bdb4cc5ea810c2f20609dabb7157bc63cfcd97af92c94fbc643d4245f561741b26686c02e9b1121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914b9f508c5449d1eb76afce8138f4fc04c32a40bb688ace221d305000000001976a9146df644cf03280d1c087bfac038acff3812400d3b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2Pe6oLNLPrG4XxYMCiGAKyf1NViCmZEWv\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxUCqpbpRvJrfcF9jJtYNRAvptMtT3ezjw\",\n \"amount\": \"1.0\",\n \"claim_id\": \"a02bb7b0935341a85df86ff44a9b6974c9364b87\",\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#a02bb7b0935341a85df86ff44a9b6974c9364b87\",\n \"timestamp\": null,\n \"txid\": \"3f6ba83fe3bfaf339eeb8ca39bf07578855ce088def7224964eed185217c3ebe\",\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\": \"3056301006072a8648ce3d020106052b8104000a034200042f5ebaeeab1d9ca8ac9d12a6f11d2a20d79f8815aa8734909b94bdb4cc5ea810c2f20609dabb7157bc63cfcd97af92c94fbc643d4245f561741b26686c02e9b1\",\n \"public_key_id\": \"mtHL6M247Q4i71TT3hpwzYQb3w8b1gqxdZ\",\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\": \"mqYNy22rY2kWndM7cThsuY5rkppkWg3vZe\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"3f6ba83fe3bfaf339eeb8ca39bf07578855ce088def7224964eed185217c3ebe\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"3f6ba83fe3bfaf339eeb8ca39bf07578855ce088def7224964eed185217c3ebe\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017b360885acf79e18c0f429719684b843bb647c00d9f218c2534e934972887021010000006b483045022100db99ffd4252970da972a07aa9db59328ef2eb7d2ced870e8c0ba0b1f62300c1102206d3e05f6bee5bea8b785629f69a82cc6f000e118e351bf0a030cc964b4b6a3650121034597fd8598da7fb76be1cdf0edec4c2c37bda823166ecda4fbe997cc8813698dffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004c8eff90193cf89bded032a7eb327cca6f6571db80fe3e5573c62e1e08d2d52be39e6a663f7df420a9f9e0f7d954e31448fbefac374bb0ab60ac7b1b421f32e83121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914e9ddefa8fa37c88665b1b680bbad866364aff34f88ace221d305000000001976a914e241a5b4bc630d84549fc83ba720c71f296eb48f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4cpD2UcfHpgZdR1yhqrBGvrcwuvXcNeSa\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n2qXc9RgxME9xiiqLKgtTJSt7odACMm48m\",\n \"amount\": \"1.0\",\n \"claim_id\": \"711d6de109af43b90cf5b9fab00d3ef4ad5cdede\",\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#711d6de109af43b90cf5b9fab00d3ef4ad5cdede\",\n \"timestamp\": null,\n \"txid\": \"81201a17c9f7a827adfbd59ab5bc7892bd25a9be377b83490166738f92f8e8a5\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004c8eff90193cf89bded032a7eb327cca6f6571db80fe3e5573c62e1e08d2d52be39e6a663f7df420a9f9e0f7d954e31448fbefac374bb0ab60ac7b1b421f32e83\",\n \"public_key_id\": \"myYgU7iZniGsAFTBeqxsgHHxQPf1VnLGuK\",\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\": \"n29HefJszqfvRFyqSDtwxTEWeBmbAAwdrG\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"81201a17c9f7a827adfbd59ab5bc7892bd25a9be377b83490166738f92f8e8a5\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"81201a17c9f7a827adfbd59ab5bc7892bd25a9be377b83490166738f92f8e8a5\"\n }\n}" } ] }, @@ -1163,6 +1277,12 @@ "type": "str", "description": "one or more account ids for accounts to look in for channels, defaults to all accounts.", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(str) serialized channel private key", @@ -1177,6 +1297,12 @@ "type": "str", "description": "serialized channel, as exported by channel export", "is_required": true + }, + { + "name": "wallet_id", + "type": "str", + "description": "import into specific wallet", + "is_required": false } ], "returns": "(dict) Result dictionary", @@ -1192,6 +1318,12 @@ "description": "id of the account to use", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -1212,14 +1344,14 @@ "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet channel list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your channel claims", "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet channel list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\"\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\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1329,6 +1461,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -1370,10 +1508,10 @@ "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"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 94255d17439764c8d6011c171ee175a99ce1f689 --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"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\": \"010000000253b4ba6ae1c967f9dd895d441d61d99e83a1dae692f6fedcc4618eb706d183e8000000006b483045022100da2ab72aff0736d444122db141c64cbe20a46c27b84acceea84e2cabff9d98b30220294854fe9d58b0af2a400b9b8de4aba5d6545012e1eb8a4eca8bdda7e14186000121034ba053213346eb0b84ed63e09d64115d986e9355977cb68a4f7b88b77ce6b377ffffffff5424eea895432d53de9d00da09b440438c9895175ac64cf73ae902b5873654a3000000006b483045022100b16c1cb49bc8d67e400a433e8f0b560062648c282c00605e1c8681271f98a8820220523ec587a6e5b18eacdefe74f0926953748262f36cee8e3bb63422224a37be1b012103671b33987d7e360cd8d16ced86a725c6a626c1afa0a47c0989ee0a0607b98e83ffffffff0200e1f50500000000a6b708406368616e6e656c1489f6e19ca975e11e171c01d6c8649743175d25944c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59420b4e6577204368616e6e656c6d6d76a914f8e6c83ea0c10cfe10f9de054f90209898e2035088ac6ebeea0b000000001976a914e4f88ac7817ea4e01d794d482adb7acfbc64e8db88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mjzJahABzt26MksXaCcwB1VfdunaEjbTeU\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568697535,\n \"txid\": \"a3543687b502e93af74cc65a1795988c4340b409da009dde532d4395a8ee2454\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\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#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": null,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n2Pe6oLNLPrG4XxYMCiGAKyf1NViCmZEWv\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"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 d9461e1626758b5ede38db2c04750cad465ffd6b --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"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\": \"0100000002e4cb90990ec5b256030b91cdfeab03bd464998fd3a86956bb01835de90a4cf8b000000006a47304402201d0b30e1deddb08fa5e0e4246897f6c56e7b43c610ae5200d44436af03a5c59702201297ede8c72a200fb0409473a4ac4e97ec640366c0e4f2bc7e47572f09d351900121022aa2f12672f4c400bc6a2575c6c26e4fbf3cde85bce2f2b3802a894d65ca8afffffffffff1d19a57a49e4a7ad4f9135e4673318d182f40285d5a35d03949eb565c2305d4000000006b483045022100952e330988fd741f7b0bbd449321b0b24eeeea6daf5896c30f2b039ddb3586b502200d4046e554a263147f791594f1a6b34e2d95aeb03fec47ca7d3f66ebe95df91001210274bbd91e249b3fa1f80081d5ad46654950ae03ad73edc25bd71952e55ef8dd37ffffffff0200e1f50500000000a6b708406368616e6e656c146bfd5f46ad0c75042cdb38de5e8b7526161e46d94c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428420b4e6577204368616e6e656c6d6d76a91425425d5b4fd2a473faab15716ce2e81a02889d3988ac6ebeea0b000000001976a914fd66a36c62c18f215f3c1845fd61902ecea43c9088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"has_signing_key\": true,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"msaxAU73Ufh1YvJGJy23BEPzHaejUT579B\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1568987033,\n \"txid\": \"d405235c56eb4939d0355a5d28402f188d3173465e13f9d47a4a9ea4579ad1f1\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\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#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": null,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n4cpD2UcfHpgZdR1yhqrBGvrcwuvXcNeSa\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\"\n }\n}" } ] } @@ -1392,6 +1530,12 @@ "description": "id of the account to query", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -1412,14 +1556,14 @@ "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet claim list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your claims", "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet claim list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\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\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\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}" } ] }, @@ -1699,14 +1843,14 @@ "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --channel=@channel", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9/astream#e\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\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\": 1568697536,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\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\": 1568697535,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"short_url\": \"lbry://@channel#9\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#5\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\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\": 1568987034,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\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\": 1568987033,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" }, { "title": "Search for claims matching a name", "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --name=\"astream\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9/astream#e\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\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\": 1568697536,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"short_url\": \"lbry://astream#e\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#9\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\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\": 1568697535,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"short_url\": \"lbry://@channel#9\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d/astream#5\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\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\": 1568987034,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"short_url\": \"lbry://astream#5\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#d\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\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\": 1568987033,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"short_url\": \"lbry://@channel#d\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] } @@ -1724,6 +1868,12 @@ "type": "str", "description": "The ID of the comment to be abandoned.", "is_required": true + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(dict) Object with the `comment_id` passed in as the key, and a flag indicating if it was abandoned\n {\n (str): {\n \"abandoned\": (bool)\n }\n }", @@ -1768,6 +1918,12 @@ "type": "str", "description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts.", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(dict) Comment object if successfully made, (None) otherwise\n {\n \"comment\": (str) The actual string as inputted by the user,\n \"comment_id\": (str) The Comment's unique identifier,\n \"channel_name\": (str) Name of the channel this was posted under, prepended with a '@',\n \"channel_id\": (str) The Channel Claim ID that this comment was posted under,\n \"signature\": (str) The signature of the comment,\n \"channel_url\": (str) Channel's URI in the ClaimTrie,\n \"parent_id\": (str) Comment this is replying to, (None) if this is the root,\n \"timestamp\": (int) The time at which comment was entered into the server at, in nanoseconds.\n }", @@ -1782,6 +1938,12 @@ "type": "str, list", "description": "one or more comment_id to hide.", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(dict) keyed by comment_id, containing success info\n '': {\n \"hidden\": (bool) flag indicating if comment_id was hidden\n }", @@ -1929,9 +2091,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"e6240792cbe2dfad0b0949049ba863d771e5c77d\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"5987f6f4ff665040b855d8a85f71d12ae00ee191\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -2038,14 +2200,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"9c95dcaf892c6c79d762519c8cc4bb78\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6e19ca975e11e171c01d6c8649743175d2594921ae653600c6e526b36d0bbd137fdede16e57501b6b6b39e5c48432d4016569e49598ff9c5181942b5de4b2ff306b5198cab6f56efd734a2e0abd8466ed90200a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fb9047c71344ff7c341a056058c1d43ae73f332b864ee0ebc3595cb4dd6b7b55e91f6206986a8b1c78c3da1d50325ee8\",\n \"stream_name\": \"tmpoh0e9d1l\",\n \"streaming_url\": \"http://localhost:5280/stream/304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"suggested_file_name\": \"tmpoh0e9d1l\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"fd37504eb556b4c4001c4ac2c7f80b781c2f5378\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"bb97debf065b001518844a8bae551a2c\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mp77qNSPiG55cJwHeu23kn3HgcBR1AXGXy\",\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\": \"1568697512\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpie7vklov.png\",\n \"sd_hash\": \"3cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6e19ca975e11e171c01d6c8649743175d2594a9991c3bed65082a35722c230dd1852a45fd8ff655ee8f06e16fd6e2683121a891397e014381ea8574f9e1b93d7fb23b8bfe4ee8acf818c3b803f4eece82038d0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70696537766b6c6f762e706e6718632209696d6167652f706e6732303cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728a8d981ec053222080112196f5e371ccd7af9af9fa9ce9611332b52a7f9b333df45da4a60188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"3cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"03bc46a02396662861347fb6290b4b58cf71efe3f8ab49f8cdba6d6df374bc1e61c88a820b3bb8f1bc797ab9c7715406\",\n \"stream_name\": \"tmpie7vklov.png\",\n \"streaming_url\": \"http://localhost:5280/stream/3cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f\",\n \"suggested_file_name\": \"tmpie7vklov.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff\",\n \"written_bytes\": 0\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"ea9248d3e5e6a61ca9267667e95728a9\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"016bfd5f46ad0c75042cdb38de5e8b7526161e46d9903b1f49801f2cc7efcf95f26725086e084c22de1d3b0586c0f392a6b0add722b640c85199a74b66c0413a37189bc9ca7b9717b7abc1722936b88648b661df280a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"92c190c519b544678ca58fd06d8b4d659529d935a5da7fb0aa7094df998d4cadf4ed69d3a00cb63c0fbcd2c1264db254\",\n \"stream_name\": \"tmp8cucwd4t\",\n \"streaming_url\": \"http://localhost:5280/stream/a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"suggested_file_name\": \"tmp8cucwd4t\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"dc8fc10308e2e1cc8b81bdfc0e8c7df0f1838cae\",\n \"claim_name\": \"blank-image\",\n \"completed\": false,\n \"confirmations\": -1,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": -1,\n \"key\": \"f8854bf3a857cd9bb4a80056fe546c28\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhV33ed2SewRTF97mJHMwcKV7dqY6MQVdn\",\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\": \"1568987009\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpoudq78h8.png\",\n \"sd_hash\": \"165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"016bfd5f46ad0c75042cdb38de5e8b7526161e46d990145dc030976970b2aff309b1fb42dd3fcf40fcd27201472cada063ea241e6acbb1b8c2c7a2dfc69b6506cb9fe91c9fa5122f8bd2b6ec6ad0e1e3b5b329c0090ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d706f756471373868382e706e6718632209696d6167652f706e673230165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f72672881af93ec053222080112196f159362d89e6b7ab1f74d76edd0f99e7a8902e46f21974cfd188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"4795e8a42b977b598cb2fab583149286a272a0e0230e45d5b1a00058314cbe74d8538fb68563d77f5f712d0a8e8a1b69\",\n \"stream_name\": \"tmpoudq78h8.png\",\n \"streaming_url\": \"http://localhost:5280/stream/165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f\",\n \"suggested_file_name\": \"tmpoudq78h8.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af\",\n \"written_bytes\": 0\n }\n ]\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"e6240792cbe2dfad0b0949049ba863d771e5c77d\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"9c95dcaf892c6c79d762519c8cc4bb78\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6e19ca975e11e171c01d6c8649743175d2594921ae653600c6e526b36d0bbd137fdede16e57501b6b6b39e5c48432d4016569e49598ff9c5181942b5de4b2ff306b5198cab6f56efd734a2e0abd8466ed90200a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"fb9047c71344ff7c341a056058c1d43ae73f332b864ee0ebc3595cb4dd6b7b55e91f6206986a8b1c78c3da1d50325ee8\",\n \"stream_name\": \"tmpoh0e9d1l\",\n \"streaming_url\": \"http://localhost:5280/stream/304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"suggested_file_name\": \"tmpoh0e9d1l\",\n \"timestamp\": 1568697536,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"written_bytes\": 0\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"5987f6f4ff665040b855d8a85f71d12ae00ee191\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"ea9248d3e5e6a61ca9267667e95728a9\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"016bfd5f46ad0c75042cdb38de5e8b7526161e46d9903b1f49801f2cc7efcf95f26725086e084c22de1d3b0586c0f392a6b0add722b640c85199a74b66c0413a37189bc9ca7b9717b7abc1722936b88648b661df280a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"92c190c519b544678ca58fd06d8b4d659529d935a5da7fb0aa7094df998d4cadf4ed69d3a00cb63c0fbcd2c1264db254\",\n \"stream_name\": \"tmp8cucwd4t\",\n \"streaming_url\": \"http://localhost:5280/stream/a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"suggested_file_name\": \"tmp8cucwd4t\",\n \"timestamp\": 1568987034,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"written_bytes\": 0\n }\n ]\n}" } ] }, @@ -2162,10 +2324,10 @@ "examples": [ { "title": "Save a file to the downloads directory", - "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file save --sd_hash=\"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"9c95dcaf892c6c79d762519c8cc4bb78\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"0189f6e19ca975e11e171c01d6c8649743175d2594921ae653600c6e526b36d0bbd137fdede16e57501b6b6b39e5c48432d4016569e49598ff9c5181942b5de4b2ff306b5198cab6f56efd734a2e0abd8466ed90200a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"fb9047c71344ff7c341a056058c1d43ae73f332b864ee0ebc3595cb4dd6b7b55e91f6206986a8b1c78c3da1d50325ee8\",\n \"stream_name\": \"tmpoh0e9d1l\",\n \"streaming_url\": \"http://localhost:5280/stream/304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"suggested_file_name\": \"tmpoh0e9d1l\",\n \"timestamp\": 1568697536,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"written_bytes\": 0\n }\n}" + "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file save --sd_hash=\"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": null,\n \"download_path\": null,\n \"file_name\": null,\n \"height\": 214,\n \"key\": \"ea9248d3e5e6a61ca9267667e95728a9\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"016bfd5f46ad0c75042cdb38de5e8b7526161e46d9903b1f49801f2cc7efcf95f26725086e084c22de1d3b0586c0f392a6b0add722b640c85199a74b66c0413a37189bc9ca7b9717b7abc1722936b88648b661df280a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"92c190c519b544678ca58fd06d8b4d659529d935a5da7fb0aa7094df998d4cadf4ed69d3a00cb63c0fbcd2c1264db254\",\n \"stream_name\": \"tmp8cucwd4t\",\n \"streaming_url\": \"http://localhost:5280/stream/a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"suggested_file_name\": \"tmp8cucwd4t\",\n \"timestamp\": 1568987034,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"written_bytes\": 0\n }\n}" } ] }, @@ -2259,6 +2421,12 @@ "type": "str", "description": "id of the account containing value", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(dict) Dictionary of preference(s)", @@ -2293,6 +2461,12 @@ "type": "str", "description": "id of the account containing value", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "(dict) Dictionary with key/value of new preference", @@ -2322,7 +2496,7 @@ "curl": "curl -d'{\"method\": \"settings_get\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet settings get", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"settings_get\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmp7tmfhh4e\",\n \"download_dir\": \"/tmp/tmp7tmfhh4e\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmp7tmfhh4e\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmpe98a6c71\",\n \"download_dir\": \"/tmp/tmpe98a6c71\",\n \"download_timeout\": 30.0,\n \"fixed_peer_delay\": 2.0,\n \"known_dht_nodes\": [],\n \"lbryum_servers\": [\n [\n \"127.0.0.1\",\n 50001\n ]\n ],\n \"max_connections_per_download\": 4,\n \"max_key_fee\": {\n \"amount\": 50.0,\n \"currency\": \"USD\"\n },\n \"network_interface\": \"0.0.0.0\",\n \"node_rpc_timeout\": 5.0,\n \"peer_connect_timeout\": 3.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"save_blobs\": true,\n \"save_files\": true,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"streaming_get\": true,\n \"streaming_server\": \"localhost:5280\",\n \"tcp_port\": 3333,\n \"track_bandwidth\": true,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpe98a6c71\"\n }\n}" } ] }, @@ -2374,6 +2548,12 @@ "description": "id of the account to use", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "preview", "type": "bool", @@ -2391,10 +2571,10 @@ "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon e6240792cbe2dfad0b0949049ba863d771e5c77d", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ee94e24aad3a0ad7aa7a293926c293ca77780074f9d84c078bc637a2cec02a0f000000006b48304502210096e5710e6ca76a9918a197a0b355a58142172e715981d9dea2ce7dc24744b1cd022049a9ae6529b16dc3e060e92423bc37b8f9b670c25279aa63ee8e71ee0f305c2e01210386848eded17d26f9ba9ca8afe8cd8ab37fa80caf8ea07aac0873291d4058b10effffffff0134b7f505000000001976a9145564450e195425e5f8bc4dc482c73d343e5048d288ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"moJTrDvreMXrRtJvjbzdN4xm1pFT5NnmkD\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"2d43485d3623b52ab81fc484dc00eebaee7852dea83a2512f759d2d41d325d93\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"2d43485d3623b52ab81fc484dc00eebaee7852dea83a2512f759d2d41d325d93\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon 5987f6f4ff665040b855d8a85f71d12ae00ee191", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000019351a93786d9903c64c954ab30693edc8e5f83c42a38541afa8dfec3108e43f2000000006a47304402206316c70146f6e02914fa95b91159900d4f6907ee426f108d87daa13b8df1d9d40220615e2b9def7729533845513bd5535bf8cac2c1cbd5405206226861b8ebca526001210243a90f0d850aa09360130d0a329d2d5687e93638dd4b1155856254ec1f60eb18ffffffff0134b7f505000000001976a914c7d86e9f0f5e941ec95802dcb2375c004c64c96c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"myje3CGzvYppuKZ6MaKfJgYZCmpd2MzAU5\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"c13bcaae4b6d63acbfb7ca949de4a5e7319724ffc73cb97b97f9160a174974c7\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"c13bcaae4b6d63acbfb7ca949de4a5e7319724ffc73cb97b97f9160a174974c7\"\n }\n}" } ] }, @@ -2560,6 +2740,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -2589,17 +2775,17 @@ "examples": [ { "title": "Create a stream claim without metadata", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoh0e9d1l\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpoh0e9d1l", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoh0e9d1l\", \"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\": \"010000000153b4ba6ae1c967f9dd895d441d61d99e83a1dae692f6fedcc4618eb706d183e8010000006a47304402203d90ee05f0bf543c3fee7394805915da2bcf9b8c7f2196c3a3523631ff54c5c202205442b4a752d70656927f42d4e48be0aa63185b97e184dfee107dce0824bfa53b012103f50741b2f34554fd04b1bdfa208cc7e50afbe13e3f40deccfb8269206038b43bffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec46d7576a9144d5b2eaa0c27f551a570664d3209c63724a7b7d588ac38fb9423000000001976a914cc0804a8ccea53bac932f21d188a088390a871f688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1nm7ZC8Q5cqtJiNi9J1z4hU43cThbRQjQ\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697535,\n \"txid\": \"e883d106b78e61c4dcfef692e6daa1839ed9611d445d89ddf967c9e16abab453\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\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#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"timestamp\": null,\n \"txid\": \"5fd5d3bede1bcca75360ee7dbc193c6037c665c02e6f658da53484791448075d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mz7mkJTS4uGZ9cAE2p1kkhDu3dGavxbTn1\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"5fd5d3bede1bcca75360ee7dbc193c6037c665c02e6f658da53484791448075d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"5fd5d3bede1bcca75360ee7dbc193c6037c665c02e6f658da53484791448075d\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8cucwd4t\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmp8cucwd4t", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp8cucwd4t\", \"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\": \"0100000001e4cb90990ec5b256030b91cdfeab03bd464998fd3a86956bb01835de90a4cf8b010000006b48304502210096e2cfa128bf94d66066dcd9f7eb1d17d7fcc4f3327e517a4263fe515280232002204f1b3fa60bbc58f096979a0e85418fbb1b22431336fdeb0ba870641ddd7481dd01210302e5412d0efa4eadb34267a830a8b13adc8138df968124547d57ebdd77b33ca7ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b6d7576a914a2df8e3d7be31e141e5f3ed36c7528540d14356788ac38fb9423000000001976a914af7af6a3ce5e0b7a2755e82e9d84dbe63d35550988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1Y9Z283zr8s6xoNGCzbJ4tgCeVBrRUx2b\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987033,\n \"txid\": \"8bcfa490de3518b06b95863afd984946bd03abfecd910b0356b2c50e9990cbe4\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\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#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"timestamp\": null,\n \"txid\": \"77a4aa0d0fd1fd1da077f615cc66ee602aff308757f377cfb5e4f78b5c23bebd\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mwWorGq4wfVycs6rKFWMYAb5iRvAZVsVLX\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"77a4aa0d0fd1fd1da077f615cc66ee602aff308757f377cfb5e4f78b5c23bebd\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"77a4aa0d0fd1fd1da077f615cc66ee602aff308757f377cfb5e4f78b5c23bebd\"\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/tmpie7vklov.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1568697512, \"channel_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpie7vklov.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=1568697512 --channel_id=\"94255d17439764c8d6011c171ee175a99ce1f689\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpie7vklov.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1568697512, \"channel_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000015d074814798434a58d656f2ec065c637603c19bc7dee6053a7cc1bdebed3d55f010000006b483045022100ebdbad10c65efb72614555a211422af5db87b8f23f600cb8277b6db28c00fc40022012b97def877f55919391cf478c5408ed38d0d7face40f280cf1ca3ad073670b3012102c637ee318066425370acf2efcec40003cdc8ba7af6833752e029613552f4e414ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db1010189f6e19ca975e11e171c01d6c8649743175d2594a9991c3bed65082a35722c230dd1852a45fd8ff655ee8f06e16fd6e2683121a891397e014381ea8574f9e1b93d7fb23b8bfe4ee8acf818c3b803f4eece82038d0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70696537766b6c6f762e706e6718632209696d6167652f706e6732303cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728a8d981ec053222080112196f5e371ccd7af9af9fa9ce9611332b52a7f9b333df45da4a60188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9145e371ccd7af9af9fa9ce9611332b52a7f9b333df88acac5e7d1d000000001976a9144a0fbc57dc8c89def998f6e61a5ee25dc5f702d988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mz7mkJTS4uGZ9cAE2p1kkhDu3dGavxbTn1\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697536,\n \"txid\": \"5fd5d3bede1bcca75360ee7dbc193c6037c665c02e6f658da53484791448075d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mp77qNSPiG55cJwHeu23kn3HgcBR1AXGXy\",\n \"amount\": \"1.0\",\n \"claim_id\": \"fd37504eb556b4c4001c4ac2c7f80b781c2f5378\",\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#fd37504eb556b4c4001c4ac2c7f80b781c2f5378\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mp77qNSPiG55cJwHeu23kn3HgcBR1AXGXy\",\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\": \"1568697512\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpie7vklov.png\",\n \"sd_hash\": \"3cb425f53f9657a0509df58aa8006c4d44ada08f6204d287c7e9b4fc256cd3292e7ba46ce996c25ab4658667dea36d2f\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mnGZ9ax7DpY4hpXYWJ1xFFVJZtmSBj5voh\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"315f42575f0875171c7bb801945241534b9c94bafdef0e26bbee06d845eae9ff\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoudq78h8.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1568987009, \"channel_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpoudq78h8.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=1568987009 --channel_id=\"d9461e1626758b5ede38db2c04750cad465ffd6b\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpoudq78h8.png\", \"fee_currency\": \"LBC\", \"fee_amount\": \"0.3\", \"title\": \"Blank Image\", \"description\": \"A blank PNG that is 5x7.\", \"author\": \"Picaso\", \"tags\": [\"blank\", \"art\"], \"languages\": [\"en\"], \"locations\": [\"US:NH:Manchester\"], \"license\": \"Public Domain\", \"license_url\": \"http://public-domain.org\", \"thumbnail_url\": \"http://smallmedia.com/thumbnail.jpg\", \"release_time\": 1568987009, \"channel_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001bdbe235c8bf7e4b5cf77f3578730ff2a60ee66cc15f677a01dfdd10f0daaa477010000006a47304402204382b92ef523629f0be3880ece793fbd6810a6b711b355c0dcc91604975fd5500220442ee3539ba727954865b2fe5e5a9631f825bea0d6e18182e8ffad855856abcf0121022017d4f270b1723378ed4369e144f3e34bc85b4fc3703ffa05a523314cccbd4bffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db101016bfd5f46ad0c75042cdb38de5e8b7526161e46d990145dc030976970b2aff309b1fb42dd3fcf40fcd27201472cada063ea241e6acbb1b8c2c7a2dfc69b6506cb9fe91c9fa5122f8bd2b6ec6ad0e1e3b5b329c0090ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d706f756471373868382e706e6718632209696d6167652f706e673230165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f72672881af93ec053222080112196f159362d89e6b7ab1f74d76edd0f99e7a8902e46f21974cfd188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914159362d89e6b7ab1f74d76edd0f99e7a8902e46f88acac5e7d1d000000001976a9143f8462f084e6189893d53216483fec973aa76ca388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mwWorGq4wfVycs6rKFWMYAb5iRvAZVsVLX\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987034,\n \"txid\": \"77a4aa0d0fd1fd1da077f615cc66ee602aff308757f377cfb5e4f78b5c23bebd\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhV33ed2SewRTF97mJHMwcKV7dqY6MQVdn\",\n \"amount\": \"1.0\",\n \"claim_id\": \"dc8fc10308e2e1cc8b81bdfc0e8c7df0f1838cae\",\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#dc8fc10308e2e1cc8b81bdfc0e8c7df0f1838cae\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhV33ed2SewRTF97mJHMwcKV7dqY6MQVdn\",\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\": \"1568987009\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpoudq78h8.png\",\n \"sd_hash\": \"165633f2e8757e3d3ab7338bd360e8b28f798126e6dfdd89af20787150eb810c670d0f3020a095a4b95f8715edbe284f\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/thumbnail.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mmJoTWjLZKYCAfuGVEkfiMPFZaygW2Nq3W\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"8c546fa43bf04cf0ce36fa638499f741298f8056df66f8ed9091f61f36bd28af\"\n }\n}" } ] }, @@ -2613,6 +2799,12 @@ "description": "id of the account to query", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -2633,14 +2825,14 @@ "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet stream list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ]\n}" }, { "title": "Paginate your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet stream list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568697536,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 214,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1568987034,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\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}" } ] }, @@ -2834,6 +3026,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -2869,10 +3067,10 @@ "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update e6240792cbe2dfad0b0949049ba863d771e5c77d --channel_id=\"94255d17439764c8d6011c171ee175a99ce1f689\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\", \"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\": \"01000000025d074814798434a58d656f2ec065c637603c19bc7dee6053a7cc1bdebed3d55f000000006a473044022011e0e39caaeb9beb97a6b95100b0ecdb84bad97bac5b7a09f146c8b4b2429ae702203964d122f7382b29f82096aa62b9013ed06e32b94727ab80403c28018413724f01210386848eded17d26f9ba9ca8afe8cd8ab37fa80caf8ea07aac0873291d4058b10effffffffbe3e7c2185d1ee644922f7de88e05c857875f09ba38ceb9e33afbfe33fa86b3f010000006b483045022100cec7b00e46bf6b193d34807da7b9b6279bd15f0e304461294c3b711ae412f4e002202c4b1c51f0aa49ddb141a25f1df7ea97a180046ca66f21129dcd492b1e663ecf01210376f8c07a2510d514cdd64b7426fd2ff06d8ff618ee7d2ac3c9e5d8b6eea4b206ffffffff0200e1f50500000000fd2301b7076173747265616d147dc7e571d763a89b0449090baddfe2cb920724e64ce80189f6e19ca975e11e171c01d6c8649743175d2594921ae653600c6e526b36d0bbd137fdede16e57501b6b6b39e5c48432d4016569e49598ff9c5181942b5de4b2ff306b5198cab6f56efd734a2e0abd8466ed90200a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706f6830653964316c180b22186170706c69636174696f6e2f6f637465742d73747265616d3230304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec46d6d76a9144d5b2eaa0c27f551a570664d3209c63724a7b7d588ac32a0d205000000001976a9140eb939d50578b900e72ffc4996b0f8e45f8845db88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"timestamp\": 1568697536,\n \"txid\": \"5fd5d3bede1bcca75360ee7dbc193c6037c665c02e6f658da53484791448075d\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqYNy22rY2kWndM7cThsuY5rkppkWg3vZe\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568697535,\n \"txid\": \"3f6ba83fe3bfaf339eeb8ca39bf07578855ce088def7224964eed185217c3ebe\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnZyZHFY7XXmn1MC5Dt18iKn7YL6ciU8pt\",\n \"amount\": \"1.0\",\n \"claim_id\": \"e6240792cbe2dfad0b0949049ba863d771e5c77d\",\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#e6240792cbe2dfad0b0949049ba863d771e5c77d\",\n \"signing_channel\": {\n \"address\": \"n4D2Lf3UaoQNBAfoHRQYR6skcX7U6onyCK\",\n \"amount\": \"1.0\",\n \"claim_id\": \"94255d17439764c8d6011c171ee175a99ce1f689\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#94255d17439764c8d6011c171ee175a99ce1f689\",\n \"timestamp\": 1568697535,\n \"txid\": \"7ac4f3baccce896e15967e789fb7462330c3a0f5e38bca784be4231c03ad537c\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200041ce76da8a37aab983181fd7443b9526082248acfb47d494849e17f9964468585ef0c2a39bac647ea3a89a5d596ba84f666b54fa1b77d78f07195ffa03e259f59\",\n \"public_key_id\": \"mk8vC6HWobZtWREkRr3RRRskcUAkprCX5b\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpoh0e9d1l\",\n \"sd_hash\": \"304064e36e2668bd2ca496ccd84b2531d1d5bfea1be47be694c2fe6573710e3bd400a9ec21ef078b0c156d478f338ec4\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgroeThx8PJ2K6XFzR5E7akGprBu6DoHS5\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"0f2ac0cea237c68b074cd8f974007877ca93c22639297aaad70a3aad4ae294ee\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update 5987f6f4ff665040b855d8a85f71d12ae00ee191 --channel_id=\"d9461e1626758b5ede38db2c04750cad465ffd6b\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\", \"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\": \"0100000002bdbe235c8bf7e4b5cf77f3578730ff2a60ee66cc15f677a01dfdd10f0daaa477000000006b4830450221009fe2c702c7b22d9abb6c7c26bcdbf7a46d7024262a7f63dfdaabce85610071e002201874125099424dd99ea43d24b050a77aef42fe96cf7c6005a5f5a863b6bc1be201210243a90f0d850aa09360130d0a329d2d5687e93638dd4b1155856254ec1f60eb18ffffffffa5e8f8928f73660149837b37bea925bd9278bcb59ad5fbad27a8f7c9171a2081010000006a47304402200b2dba4dbd8d17285572a11fac7e0b80f8f3b618842542b952188ec51d76d56902206a5681830d00d6099fc2890cb6414b54070e4c60873ea1bc60144dd82d2b901e0121039081a55e29375de8666c4dd11e9b89b84f0e501eb57d95273dc9ff74b963effbffffffff0200e1f50500000000fd2301b7076173747265616d1491e10ee02ad1715fa8d855b8405066fff4f687594ce8016bfd5f46ad0c75042cdb38de5e8b7526161e46d9903b1f49801f2cc7efcf95f26725086e084c22de1d3b0586c0f392a6b0add722b640c85199a74b66c0413a37189bc9ca7b9717b7abc1722936b88648b661df280a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d703863756377643474180b22186170706c69636174696f6e2f6f637465742d73747265616d3230a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b6d6d76a914a2df8e3d7be31e141e5f3ed36c7528540d14356788ac32a0d205000000001976a914ab1ec07ec78dd34c87b8c3a68c78bc596722aa8b88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"timestamp\": 1568987034,\n \"txid\": \"77a4aa0d0fd1fd1da077f615cc66ee602aff308757f377cfb5e4f78b5c23bebd\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n29HefJszqfvRFyqSDtwxTEWeBmbAAwdrG\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1568987033,\n \"txid\": \"81201a17c9f7a827adfbd59ab5bc7892bd25a9be377b83490166738f92f8e8a5\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mvN9a3ipY1uNr21GdEF79rrDLzbsvztiRW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"5987f6f4ff665040b855d8a85f71d12ae00ee191\",\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#5987f6f4ff665040b855d8a85f71d12ae00ee191\",\n \"signing_channel\": {\n \"address\": \"miuxoFTqNogpTzkwTFsveZ3HgBjaAyXsrx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"has_signing_key\": true,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"meta\": {},\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d9461e1626758b5ede38db2c04750cad465ffd6b\",\n \"timestamp\": 1568987033,\n \"txid\": \"2170887249934e53c218f2d9007c64bb43b884967129f4c0189ef7ac8508367b\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200043a558df17347560caf3158877d0b5b6b00a16fe8acf2ee955056f1f9aa94941fc9d4bd0053c3527fd75ab9dc9d6d058ebb747c49ec8b28b0d60b676b1a49e428\",\n \"public_key_id\": \"mggmFnPXJSsXZDx3UiJ8dDkoGGRXdTDuVo\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp8cucwd4t\",\n \"sd_hash\": \"a6692667bdd56bba23b5c4c0ad7a936f20fec6b3f4655f76c9bda501d3c92470a1256c66ef6dbc2c769cf09d04112f6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mw7kgYD5ffioYDFRMNXzgkL2KHkdTgSXgD\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"f2438e10c3fe8dfa1a54382ac4835f8edc3e6930ab54c9643c90d98637a95193\"\n }\n}" } ] } @@ -2915,6 +3113,12 @@ "description": "id of the account to use", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "preview", "type": "bool", @@ -2959,6 +3163,12 @@ "description": "account to use for holding the transaction", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, { "name": "funding_account_ids", "type": "list", @@ -2991,6 +3201,12 @@ "description": "id of the account to query", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -3033,6 +3249,12 @@ "type": "str", "description": "password to encrypt outgoing data if different from the decrypt password, used during password changes", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "wallet being sync'ed", + "is_required": false } ], "returns": "(map) sync hash and data", @@ -3041,7 +3263,14 @@ { "name": "sync_hash", "description": "Deterministic hash of the wallet.", - "arguments": [], + "arguments": [ + { + "name": "wallet_id", + "type": "str", + "description": "wallet for which to generate hash", + "is_required": false + } + ], "returns": "(str) sha256 hash of wallet", "examples": [] } @@ -3060,6 +3289,12 @@ "description": "id of the account to query", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -3080,7 +3315,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-09-17 01:18\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1568697535,\n \"txid\": \"ffe508f94f296f26c556b3e928b1c8d6442832f05f562a20c01c156b7b52f6e8\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-09-17 01:18\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1568697534,\n \"txid\": \"b33cea970f8bdee07e00d687befc28abbc06b711b5b86b58c5a6ceb14854881b\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-09-20 09:43\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1568987033,\n \"txid\": \"8986a4d561a967a41991d4f604117f48a692beab40a3d395279f8335b6c523bf\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-09-20 09:43\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1568987032,\n \"txid\": \"1f207ee9a6a419a82fa9a5e0d6bdb3b87b4ab5f96143adb13b5ac28acbde5bfb\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" } ] }, @@ -3113,6 +3348,12 @@ "description": "id of the account to query", "is_required": false }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, { "name": "page", "type": "int", @@ -3138,11 +3379,91 @@ "type": "str", "description": "id of the account to query", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false } ], "returns": "None", "examples": [] } ] + }, + "wallet": { + "doc": "Create, modify and inspect wallets.", + "commands": [ + { + "name": "wallet_add", + "description": "Add wallet.", + "arguments": [ + { + "name": "wallet_id", + "type": "str", + "description": "wallet file name", + "is_required": true + }, + { + "name": "create_wallet", + "type": "bool", + "description": "create wallet if file doesn't exist", + "is_required": false + }, + { + "name": "create_account", + "type": "bool", + "description": "generate default account if wallet is empty", + "is_required": false + } + ], + "returns": " {\n \"id\": \"wallet_id\",\n \"name\": \"optional wallet name\"\n }", + "examples": [] + }, + { + "name": "wallet_balance", + "description": "Return the balance of an entire wallet", + "arguments": [ + { + "name": "wallet_id", + "type": "str", + "description": "balance for specific wallet", + "is_required": true + } + ], + "returns": "(decimal) amount of lbry credits in wallet", + "examples": [] + }, + { + "name": "wallet_list", + "description": "List wallets.", + "arguments": [], + "returns": " [\n {\n \"id\": \"wallet_id\",\n \"name\": \"optional wallet name\"\n }\n ]", + "examples": [ + { + "title": "List your wallets", + "curl": "curl -d'{\"method\": \"wallet_list\", \"params\": {}}' http://localhost:5279/", + "lbrynet": "lbrynet wallet list", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"wallet_list\", \"params\": {}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"id\": \"my_wallet.json\",\n \"name\": \"Wallet\"\n }\n ]\n}" + } + ] + }, + { + "name": "wallet_remove", + "description": "Remove an existing account.", + "arguments": [ + { + "name": "wallet_id", + "type": "str", + "description": "name of wallet to remove", + "is_required": true + } + ], + "returns": " {\n \"id\": \"wallet_id\",\n \"name\": \"optional wallet name\"\n }", + "examples": [] + } + ] } } \ No newline at end of file diff --git a/lbry/lbry/extras/daemon/json_response_encoder.py b/lbry/lbry/extras/daemon/json_response_encoder.py index a0d53bfde..36117beae 100644 --- a/lbry/lbry/extras/daemon/json_response_encoder.py +++ b/lbry/lbry/extras/daemon/json_response_encoder.py @@ -6,6 +6,7 @@ from json import JSONEncoder from google.protobuf.message import DecodeError +from torba.client.wallet import Wallet from torba.client.bip32 import PubKey from lbry.schema.claim import Claim from lbry.wallet.ledger import MainNetLedger, Account @@ -68,6 +69,13 @@ def encode_account_doc(): } +def encode_wallet_doc(): + return { + 'id': 'wallet_id', + 'name': 'optional wallet name', + } + + def encode_file_doc(): return { 'streaming_url': '(str) url to stream the file using range requests', @@ -111,6 +119,8 @@ class JSONResponseEncoder(JSONEncoder): def default(self, obj): # pylint: disable=method-hidden if isinstance(obj, Account): return self.encode_account(obj) + if isinstance(obj, Wallet): + return self.encode_wallet(obj) if isinstance(obj, ManagedStream): return self.encode_file(obj) if isinstance(obj, Transaction): @@ -222,6 +232,12 @@ class JSONResponseEncoder(JSONEncoder): result['is_default'] = self.ledger.accounts[0] == account return result + def encode_wallet(self, wallet): + return { + 'id': wallet.id, + 'name': wallet.name + } + def encode_file(self, managed_stream): output_exists = managed_stream.output_file_exists tx_height = managed_stream.stream_claim_info.height diff --git a/lbry/scripts/generate_json_api.py b/lbry/scripts/generate_json_api.py index 016dffe51..75626a5e4 100644 --- a/lbry/scripts/generate_json_api.py +++ b/lbry/scripts/generate_json_api.py @@ -13,13 +13,15 @@ from lbry.extras.daemon.Daemon import ( Daemon, jsonrpc_dumps_pretty, encode_pagination_doc ) from lbry.extras.daemon.json_response_encoder import ( - encode_tx_doc, encode_txo_doc, encode_account_doc, encode_file_doc + encode_tx_doc, encode_txo_doc, encode_account_doc, encode_file_doc, + encode_wallet_doc ) from lbry.testcase import CommandTestCase RETURN_DOCS = { 'Account': encode_account_doc(), + 'Wallet': encode_wallet_doc(), 'File': encode_file_doc(), 'Transaction': encode_tx_doc(), 'Output': encode_txo_doc(), @@ -103,6 +105,13 @@ class Examples(CommandTestCase): 'preference', 'get' ) + # wallets + + await r( + 'List your wallets', + 'wallet', 'list' + ) + # accounts await r(