From 177d3af77fcc6ba8c50a63f377baf56eb0185f0b Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 20 Nov 2019 10:39:17 -0500 Subject: [PATCH] regenerate latest docs --- lbry/docs/api.json | 902 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 758 insertions(+), 144 deletions(-) diff --git a/lbry/docs/api.json b/lbry/docs/api.json index a00a17e49..7d7d186f8 100644 --- a/lbry/docs/api.json +++ b/lbry/docs/api.json @@ -35,16 +35,22 @@ "type": "bool", "description": "save the file to the downloads directory", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "wallet to check for claim purchase reciepts", + "is_required": false } ], "returns": " {\n \"streaming_url\": \"(str) url to stream the file using range requests\",\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }", "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#06d4639a98ad7c343529553088427759e683fb1a\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#06d4639a98ad7c343529553088427759e683fb1a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#06d4639a98ad7c343529553088427759e683fb1a\"}}).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\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmpl6ahaz1t\",\n \"download_path\": \"/tmp/tmpl6ahaz1t/tmplrrcjagu\",\n \"file_name\": \"tmplrrcjagu\",\n \"height\": 214,\n \"key\": \"1a078b5ba203620985456bb511c186f8\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01921a1dd1a3816a4014ee84e7818b190ca0371c77c319ec7834afe2c37a33b524594e00ef7fb835b4d9d9a75d0e01f0d547dfdf2d012d019d02a48b5cbb7f1c1dab1bb4411b6f52dc1e3b0526a26f7642ae49a5880a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"5eaf3e55853a497d98fda6b65ed72abc275ad1952c1b95ddd8f33460a61111607670cf382231497e93a457cd30ef7ef8\",\n \"stream_name\": \"tmplrrcjagu\",\n \"streaming_url\": \"http://localhost:5280/stream/4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"suggested_file_name\": \"tmplrrcjagu\",\n \"timestamp\": 1572065729,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#7595c2f82ced3c58c1225073590ce18f3edd0291\"}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#7595c2f82ced3c58c1225073590ce18f3edd0291", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#7595c2f82ced3c58c1225073590ce18f3edd0291\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1574264332,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"confirmations\": 3,\n \"content_fee\": null,\n \"download_directory\": \"/tmp/tmp5dcqjwi1\",\n \"download_path\": \"/tmp/tmp5dcqjwi1/tmp6zg8pas6\",\n \"file_name\": \"tmp6zg8pas6\",\n \"height\": 214,\n \"key\": \"d59637b15acc1d0a31ac7025d5318241\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01834299b5b1cbce8b18d14ea57374ff848c85daea8197ad276293ee21d20b350f8c8bec61bf067c9853833b06d9e8253bc3aaae327ca7b97e008ffd759ffc961090621fce9c2dd1a1541306784185f78610b0f62b0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"0377e60d0033942da7b9a28c07a7e89eba0046dbd8bd60a11c7f3e2df1d51a2467da10bbcb7a395b13750ab7ceae9470\",\n \"stream_name\": \"tmp6zg8pas6\",\n \"streaming_url\": \"http://localhost:5280/stream/966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"suggested_file_name\": \"tmp6zg8pas6\",\n \"timestamp\": 1574264354,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"written_bytes\": 11\n }\n}" } ] }, @@ -221,14 +227,14 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp0c13jk13\", \"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/tmp0c13jk13", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp0c13jk13\", \"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\": \"0100000001536218973b7b67ffbdc4eb6733b8535f640720ee87141d25021ebea712501619010000006b483045022100e1b7b4d812140e72e26d05865f4644113ae9cbf182d84f40e9b28be352bedbf602207efbe23b35dbd838696ef395350f3f0b8c0a18d0b1b0cccc1af9a05e13724e5701210239704fa17f9f9b91d6f0741f749e335dbc050114714bc70344b0d2ba52937993ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70306331336a6b3133180b22186170706c69636174696f6e2f6f637465742d73747265616d3230c2419043b95e338a3738add22ce584c5e7cb065048c2f12f37317cfaa755369000ba1c23f2c28f5e3c0c3459e55a5ae76d7576a9144a067687c2387cf2e9ec1c906288d0487d8e35f988ace0b46217000000001976a9141f926c3b8898a908259a3c01378210620d33a2a988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n11FKZ7BKs6iMcVMYSPuApCxhA5ybQ8rc1\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065729,\n \"txid\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1d32f4b24160cf496ac96cb45ecb894830fea852\",\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#1d32f4b24160cf496ac96cb45ecb894830fea852\",\n \"timestamp\": null,\n \"txid\": \"2a09b614c7a330a7343859c35266422c3bed6e091e7118589aa0bf3fc8ee6e54\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp0c13jk13\",\n \"sd_hash\": \"c2419043b95e338a3738add22ce584c5e7cb065048c2f12f37317cfaa755369000ba1c23f2c28f5e3c0c3459e55a5ae7\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"miPtedjQMgYb2vSwnSMCJUd837BrbL5a9R\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2a09b614c7a330a7343859c35266422c3bed6e091e7118589aa0bf3fc8ee6e54\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"2a09b614c7a330a7343859c35266422c3bed6e091e7118589aa0bf3fc8ee6e54\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpxdmudhib\", \"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/tmpxdmudhib", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpxdmudhib\", \"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\": \"01000000011fa70618992270f1b04e18acb8faca83357d8b5ea4150062858e0c5856cd35f8010000006b483045022100db0e94a0d2a5593e04aed8ea8de9532debcfb461c419da698f1936f327e8a4c60220226dc64703ab90316f25184583bf56876e886bb2791f8c357e774acc3613abf5012102ca69f4dfe3f350aae07639105a9e24d82d66cf0f1233a1cc1c02fbe1841d1271ffffffff0200e1f50500000000bfb50c612d6e65772d73747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d7078646d7564686962180b22186170706c69636174696f6e2f6f637465742d73747265616d32303985ebf1101afd71bb3c73978a27bd532fdbea2740a0b6870547e68ca12421a585777a19ce6d1bcf921f68cdb5cbe70f6d7576a9146cb9ca542adc5cdf1ebd5c9fc574adc7267a9f9c88ace0b46217000000001976a9146db3a738e1b6842f5a3d3f9b97749f37ee40c22c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtkpp5jNbnuAfZha2ZV2e9o3taMynbz6FN\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264354,\n \"txid\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mqRqqiD6s1XFCaiSbMDAHVdafDQ2KXgEfa\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ef4c640ea7687c11a4c7a0f42c12b2ca0f84dae4\",\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#ef4c640ea7687c11a4c7a0f42c12b2ca0f84dae4\",\n \"timestamp\": null,\n \"txid\": \"a0bf4ceaac724560d21ad63cb83bbae76df455799b4eab97acd57dac37357d92\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpxdmudhib\",\n \"sd_hash\": \"3985ebf1101afd71bb3c73978a27bd532fdbea2740a0b6870547e68ca12421a585777a19ce6d1bcf921f68cdb5cbe70f\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqX1AVEGR4s5LMy1LbuVJ5UvCwrPmaKF1A\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a0bf4ceaac724560d21ad63cb83bbae76df455799b4eab97acd57dac37357d92\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"a0bf4ceaac724560d21ad63cb83bbae76df455799b4eab97acd57dac37357d92\"\n }\n}" } ] }, @@ -241,16 +247,22 @@ "type": "str, list", "description": "one or more urls to resolve", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "wallet to check for claim purchase reciepts", + "is_required": false } ], "returns": "Dictionary of results, keyed by url\n '': {\n If a resolution error occurs:\n 'error': Error message\n\n If the url resolves to a channel or a claim in a channel:\n 'certificate': {\n 'address': (str) claim address,\n 'amount': (float) claim amount,\n 'effective_amount': (float) claim amount including supports,\n 'claim_id': (str) claim id,\n 'claim_sequence': (int) claim sequence number (or -1 if unknown),\n 'decoded_claim': (bool) whether or not the claim value was decoded,\n 'height': (int) claim height,\n 'confirmations': (int) claim depth,\n 'timestamp': (int) timestamp of the block that included this claim tx,\n 'has_signature': (bool) included if decoded_claim\n 'name': (str) claim name,\n 'permanent_url': (str) permanent url of the certificate claim,\n 'supports: (list) list of supports [{'txid': (str) txid,\n 'nout': (int) nout,\n 'amount': (float) amount}],\n 'txid': (str) claim txid,\n 'nout': (str) claim nout,\n 'signature_is_valid': (bool), included if has_signature,\n 'value': ClaimDict if decoded, otherwise hex string\n }\n\n If the url resolves to a channel:\n 'claims_in_channel': (int) number of claims in the channel,\n\n If the url resolves to a claim:\n 'claim': {\n 'address': (str) claim address,\n 'amount': (float) claim amount,\n 'effective_amount': (float) claim amount including supports,\n 'claim_id': (str) claim id,\n 'claim_sequence': (int) claim sequence number (or -1 if unknown),\n 'decoded_claim': (bool) whether or not the claim value was decoded,\n 'height': (int) claim height,\n 'depth': (int) claim depth,\n 'has_signature': (bool) included if decoded_claim\n 'name': (str) claim name,\n 'permanent_url': (str) permanent url of the claim,\n 'channel_name': (str) channel name if claim is in a channel\n 'supports: (list) list of supports [{'txid': (str) txid,\n 'nout': (int) nout,\n 'amount': (float) amount}]\n 'txid': (str) claim txid,\n 'nout': (str) claim nout,\n 'signature_is_valid': (bool), included if has_signature,\n 'value': ClaimDict if decoded, otherwise hex string\n }\n }", "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#06d4639a98ad7c343529553088427759e683fb1a\"]}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#06d4639a98ad7c343529553088427759e683fb1a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#06d4639a98ad7c343529553088427759e683fb1a\"]}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#06d4639a98ad7c343529553088427759e683fb1a\": {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": 1572065729,\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"short_url\": \"lbry://astream#0\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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\": 1572065728,\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#7595c2f82ced3c58c1225073590ce18f3edd0291\"]}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#7595c2f82ced3c58c1225073590ce18f3edd0291", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#7595c2f82ced3c58c1225073590ce18f3edd0291\"]}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#7595c2f82ced3c58c1225073590ce18f3edd0291\": {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e/astream#7\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": 1574264354,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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\": 1574264353,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"short_url\": \"lbry://@channel#e\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n }\n}" } ] }, @@ -272,7 +284,7 @@ "curl": "curl -d'{\"method\": \"status\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet status", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"status\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"4usEmYTLLjgxgveeVoHBWUGiXxyfwTXFjrXdpPU9pnT794o2QpF6V6Fi5KgAmSm3kh\",\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\": \"f15efa51f8d6101450011807011e75e7cdb1bdcbc120d0d07aa8650955c68db2\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\n \"port\": 50002\n }\n ]\n }\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"connections\": {\n \"incoming_bps\": {},\n \"max_incoming_mbs\": 0.0,\n \"max_outgoing_mbs\": 0.0,\n \"outgoing_bps\": {},\n \"total_incoming_mbs\": 0.0,\n \"total_outgoing_mbs\": 0.0,\n \"total_received\": 0,\n \"total_sent\": 0\n },\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"9sPrk46gUmtYcL9aHw3y1PBc8g6JiWj1SAfULwsHh3iujzNorAXKA2hfz75mKQ3ZMk\",\n \"is_running\": true,\n \"skipped_components\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"startup_status\": {\n \"blob_manager\": true,\n \"database\": true,\n \"exchange_rate_manager\": true,\n \"stream_manager\": true,\n \"wallet\": true\n },\n \"stream_manager\": {\n \"managed_files\": 0\n },\n \"wallet\": {\n \"best_blockhash\": \"2e5b3c38359c926699d2c33e2071d0efd33381c410bd3677a81e0e3a5e91e41e\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"connected_servers\": [\n {\n \"host\": \"localhost\",\n \"latency\": 0.01,\n \"port\": 50002\n }\n ],\n \"headers_synchronization_progress\": 100\n }\n }\n}" } ] }, @@ -294,7 +306,7 @@ "curl": "curl -d'{\"method\": \"version\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet version", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"version\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.43.4\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.4\",\n \"torba_version\": \"0.5.7\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"build\": \"dev\",\n \"desktop\": \"GNOME\",\n \"distro\": {\n \"codename\": \"xenial\",\n \"id\": \"ubuntu\",\n \"like\": \"debian\",\n \"version\": \"16.04\",\n \"version_parts\": {\n \"build_number\": \"\",\n \"major\": \"16\",\n \"minor\": \"04\"\n }\n },\n \"lbrynet_version\": \"0.47.0\",\n \"os_release\": \"4.4.0-116-generic\",\n \"os_system\": \"Linux\",\n \"platform\": \"Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\",\n \"processor\": \"x86_64\",\n \"python_version\": \"3.7.4\",\n \"torba_version\": \"0.5.7\"\n }\n}" } ] } @@ -348,10 +360,10 @@ "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"horn destroy weird walk toast shell weapon during key pen scene photo\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\", \"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\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572065695.7791708,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdcZFS15hfe9it9EhtdeUAtpbWCspJYKcCwD4Q4QogV61SYagNthxXxnPrxQZT3JnRBTmyJdQJUNpUQRNF3Lecwo7k3WUcUX\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X5b3KekJ53oqTAke3xqNkCRNniv7ip813RTq2TEPryhscgjVNpBURCaCPJFAYwBsLdr9hWGUHLcaU74DvhbdXTKqEg4Xgza\",\n \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"sock panda move ethics pact question muffin visa sausage assault exit weather\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\", \"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\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1574264321.4309537,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP8S3BpZ7QnthNTxkuisWA4CffhM7AUmyjnzL8ufb9WnDzQSjN1dmWoX64SptnEs2EqsWdah6vKbSYc5yMRUD7pwXUgSi2V\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YrADvqV9WpT1GPytvEun5TeyxBjeXSHApE3kxXjFme8eQ7c5PzwARZE9XkXbYjK1DpTG7QkFsrpXZbwobVjXWoryEKLbvyY\",\n \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\"\n }\n}" } ] }, @@ -376,29 +388,23 @@ "type": "int", "description": "Only include transactions with this many confirmed blocks.", "is_required": false - }, - { - "name": "reserved_subtotals", - "type": "bool", - "description": "Include detailed reserved balances on claims, tips and supports.", - "is_required": false } ], "returns": "(decimal) amount of lbry credits in wallet", "examples": [ { "title": "Get default account balance", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"reserved_subtotals\": false}}' http://localhost:5279/", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet account balance", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"reserved_subtotals\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"7.999876\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": null,\n \"total\": \"7.999876\"\n }\n}" + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"7.999876\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"7.999876\"\n }\n}" }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"reserved_subtotals\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"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}" + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"available\": \"2.0\",\n \"reserved\": \"0.0\",\n \"reserved_subtotals\": {\n \"claims\": \"0.0\",\n \"supports\": \"0.0\",\n \"tips\": \"0.0\"\n },\n \"total\": \"2.0\"\n }\n}" } ] }, @@ -432,7 +438,7 @@ "curl": "curl -d'{\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account create \"generated account\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_create\", \"params\": {\"account_name\": \"generated account\", \"single_key\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"encrypted\": false,\n \"id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572065695.612447,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdcZFS15hfe9it9EhtdeUAtpbWCspJYKcCwD4Q4QogV61SYagNthxXxnPrxQZT3JnRBTmyJdQJUNpUQRNF3Lecwo7k3WUcUX\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X5b3KekJ53oqTAke3xqNkCRNniv7ip813RTq2TEPryhscgjVNpBURCaCPJFAYwBsLdr9hWGUHLcaU74DvhbdXTKqEg4Xgza\",\n \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\"\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\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1574264321.2536354,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP8S3BpZ7QnthNTxkuisWA4CffhM7AUmyjnzL8ufb9WnDzQSjN1dmWoX64SptnEs2EqsWdah6vKbSYc5yMRUD7pwXUgSi2V\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YrADvqV9WpT1GPytvEun5TeyxBjeXSHApE3kxXjFme8eQ7c5PzwARZE9XkXbYjK1DpTG7QkFsrpXZbwobVjXWoryEKLbvyY\",\n \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\"\n }\n}" } ] }, @@ -483,28 +489,28 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001eb40dbff6b2d27cb6578bd38dfb965c344a0a1ebc40e800236ff1b7371543a6b010000006b483045022100eefd5e245e100707753d1ceeaf580ae2dfd993ef7b7a6ed5d118cdda8caf57e20220781ed74d1e95c09df3a4c99a20bec681924cff04791a5106304030bc0e422d42012103757612eacb471a5cad44a23d0dbdcb8938753f91a74659fad368f4e69235a9b2ffffffff0200c2eb0b000000001976a9140b0577786de3123352b47316e04db6da6019ad5788ac90d7ae2f000000001976a9148af8f4fed6f8c10816ff7cd111a94fa11dd77acf88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n2TTSHGBrja1oB4gFAUeXy1hgFeEiNn8qb\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065727,\n \"txid\": \"6b3a5471731bff3602800ec4eba1a044c365b9df38bd7865cb272d6bffdb40eb\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mtBmnN1xnZj1gFwBwabrRe7bTCM1VXT961\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001a846445c1113717336246fbc526d698299a08893417ea0e6cb23b30fbc4b5d21010000006a47304402203bdb132e8d21ce02164c8940cc7506ffbf7aeca24448fecddbff4791ce4b04af0220746cdf0f667ab2c89117bd389f174e9e8c8d48556bfd0072d4a77ece5f6f8d5a01210395f64c23caf9db4a1757953d03df9b2ac7669a9b43126a10caa6292d513d141affffffff0200c2eb0b000000001976a91412d41231858794363acfc8d9c9bb847c61b0fa0f88ac90d7ae2f000000001976a9149aba8994502c55c76258bd46e7d96f11c3adf58188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mujug3Jorq72ZbuF7ZvCTPApvdqL4E33fY\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264352,\n \"txid\": \"215d4bbc0fb323cbe6a07e419388a09982696d52bc6f2436737113115c4446a8\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhEWWTp8pVfXNvBLc2NYP2L9b8wtYswRVs\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mud5pSea6YmQeqygsiwRfSfiFw8VrYVVAW\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"from_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\" --from_account=\"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"from_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010fc06811a5964279eda14650f1b03f5cafd35e6f2c145d3f47977ae82ed47b67000000006a473044022078301f97fcc37f0dd52021293a8f5dc4ff40028866c8501fe6d8322d0ec5bf6e02202e5950ab3fafc58f0aeb895ca7274ea9ec62902c9e1e9b78cd6f2e626529f8110121034ba9506052dfd68bd1d220214dcc1979fffc19d1503a5b4b9d5576a147030aefffffffff03c0687804000000001976a9140b0577786de3123352b47316e04db6da6019ad5788acc0687804000000001976a9140b0577786de3123352b47316e04db6da6019ad5788ac6cb9fa02000000001976a914f3ac243c09c39cb208c8f089fe605d75455cca3c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572065728,\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3jNiGmrtzdHoVwZL2uH9yz83m8XRUs12H\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"from_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\" --from_account=\"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"from_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001805b5574abbfa95356ceaa5d0de78b5c2ef1a82e29beed15f02e0022ea2c96c1000000006b483045022100faf624d2408a0f4228bb4f9a16ab5483c42a841d69d5d56a79e349706f28635702206de2cb80e2929d895a0c7b8e52bace504b816ed1391ec5ba0683ea9fc604ea7e012103edcb4e28f63469097b4fe8c29be1c6c3df916b53ec722d1675d8c4bbe9ea8844ffffffff03c0687804000000001976a91411c20f1a9612ced3f4042f0ee78985f9aade015088acc0687804000000001976a91411c20f1a9612ced3f4042f0ee78985f9aade015088ac6cb9fa02000000001976a9141856ed443140daed2573945803e9b31e8cc50af088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhEWWTp8pVfXNvBLc2NYP2L9b8wtYswRVs\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1574264353,\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mh8rFmfDnjMH3H6m81nGV48U5kYRSsrQVQ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mh8rFmfDnjMH3H6m81nGV48U5kYRSsrQVQ\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mhjeeSSSRkynvH94rm9WWsFVnWbzj7qv7j\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"timestamp\": null,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000036dae3351e0a7682e59eeea3e5aa05c162af2691f0a720abada6ed42f98e57dd5000000006b483045022100e30bcdc12245a15b6da3cdf21cf11dd2f04462d5c131bc3da86818ae28991bae02204538fe7590b64a958eaf01ba2acbcf0157d31b23245d7241f993a5484938962d0121034ba9506052dfd68bd1d220214dcc1979fffc19d1503a5b4b9d5576a147030aefffffffff6dae3351e0a7682e59eeea3e5aa05c162af2691f0a720abada6ed42f98e57dd5010000006b483045022100ae52879cf95f360c627709da74ce9cf7445ba5b2fe756da8b21dc2811ef495680220106e9be93b98b3cfe32ad6b146eb6eab0b326287428fc27e7f98436ee2fce8630121034ba9506052dfd68bd1d220214dcc1979fffc19d1503a5b4b9d5576a147030aefffffffff6dae3351e0a7682e59eeea3e5aa05c162af2691f0a720abada6ed42f98e57dd5020000006a47304402204f57021c7298805ad5abd0ba6107d4e8800cc878da028ef25a099e8fa6ad9a6902203f91f94e2f8e4526dca11cf233a84ffe77c1441d11eff876646e1b53abd024e5012103b429513d82a39765b2e5215b8f0e514502ff9e8a3c87a9045ddb7ea8960cc14fffffffff015027eb0b000000001976a914275f15da77f0e910227c88e4b0520d5ce576742588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572065728,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065728,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"n3jNiGmrtzdHoVwZL2uH9yz83m8XRUs12H\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1572065728,\n \"txid\": \"d57de5982fd46edaba0a720a1f69f22a165ca05a3eeaee592e68a7e05133ae6d\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj78ZBXmcPQ2uRYVaRRHtY3CYC7QKSqTc6\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"4bcaf690bceaf6d0c3382d2cd1b8eaf05d8d944427d17473442ab02fd339f922\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"4bcaf690bceaf6d0c3382d2cd1b8eaf05d8d944427d17473442ab02fd339f922\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000356f330a61828d16f7ac5d1246a89fea644f4dbecd1de3e46ec904ecd90dc7981000000006b483045022100976920d0b466a3921188ab2b8fda30268bcc9b6fe8ab5be07eeaf83ebf487e6702205df781014f0fc6321937f50c1c65e3dc602db25450068b6e08a2c9920a1ef5b801210361d32aa27eea724c0f499e606e3e704a75623bdff83f75d35e41ae33ade38f62ffffffff56f330a61828d16f7ac5d1246a89fea644f4dbecd1de3e46ec904ecd90dc7981010000006a473044022077d832dcc2ebab6a837a214b5891634089aed353c806b07d73cb7b3b7b97872002206ad96abf50dee0efefc54c26e98bf4873b0200a1473b03f08eb9e01187e12e4301210361d32aa27eea724c0f499e606e3e704a75623bdff83f75d35e41ae33ade38f62ffffffff56f330a61828d16f7ac5d1246a89fea644f4dbecd1de3e46ec904ecd90dc7981020000006a47304402207b458411d5daa60d7cdc25a0d5b0f9216014441a84a939b786eff5ae2deccf280220381c216fb1d1ed1d11f679e6f39840b6278e76b7d40b920507d62c8eef8387f801210267117e6d92536e535fb7e116b8d5a27c63130ccc9dbf6dda55fffca028fee35affffffff015027eb0b000000001976a914601de49683d90e74308ff7de9d37610e333b112188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mh8rFmfDnjMH3H6m81nGV48U5kYRSsrQVQ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1574264353,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mh8rFmfDnjMH3H6m81nGV48U5kYRSsrQVQ\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264353,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mhjeeSSSRkynvH94rm9WWsFVnWbzj7qv7j\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"timestamp\": 1574264353,\n \"txid\": \"8179dc90cd4e90ec463eded1ecdbf444a6fe896a24d1c57a6fd12818a630f356\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mpHAyU14Tgt3EM5sLTbH3NGGqgJd7e25jd\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"92e7fafc002e486e43a6f4b8b1bef62b2fb41ed626a6add6695fc450bbd49f90\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"92e7fafc002e486e43a6f4b8b1bef62b2fb41ed626a6add6695fc450bbd49f90\"\n }\n}" } ] }, @@ -562,7 +568,7 @@ "curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WoXGpM9c6D4r5hXRXVz4dYcEbrie1mZsSHJE3sSgx2pKDu4eshfDaj9JPWTygwXMgHcVrA7xoRPvkSCmudEnfMq4x2Bbqh8\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"is_default\": true,\n \"ledger\": \"lbc_regtest\",\n \"name\": \"Account #mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"public_key\": \"tpubD6NzVbkrYhZ4XRqw56sjewddGMSwYRguqruNy18cey35Pmadahzss64RNqZYocZxa21wNCrnhXR5nRq38fCa1nC1xyp3GjdfmE9ArWQ4ipQ\",\n \"satoshis\": 1000000000\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -607,10 +613,10 @@ "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"}}).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\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572065695.612447,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdcZFS15hfe9it9EhtdeUAtpbWCspJYKcCwD4Q4QogV61SYagNthxXxnPrxQZT3JnRBTmyJdQJUNpUQRNF3Lecwo7k3WUcUX\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X5b3KekJ53oqTAke3xqNkCRNniv7ip813RTq2TEPryhscgjVNpBURCaCPJFAYwBsLdr9hWGUHLcaU74DvhbdXTKqEg4Xgza\",\n \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}).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\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1574264321.2536354,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP8S3BpZ7QnthNTxkuisWA4CffhM7AUmyjnzL8ufb9WnDzQSjN1dmWoX64SptnEs2EqsWdah6vKbSYc5yMRUD7pwXUgSi2V\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YrADvqV9WpT1GPytvEun5TeyxBjeXSHApE3kxXjFme8eQ7c5PzwARZE9XkXbYjK1DpTG7QkFsrpXZbwobVjXWoryEKLbvyY\",\n \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\"\n }\n}" } ] }, @@ -637,7 +643,7 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [] }, { @@ -697,10 +703,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\", \"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\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1572065695.8479288,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPdcZFS15hfe9it9EhtdeUAtpbWCspJYKcCwD4Q4QogV61SYagNthxXxnPrxQZT3JnRBTmyJdQJUNpUQRNF3Lecwo7k3WUcUX\",\n \"public_key\": \"tpubD6NzVbkrYhZ4X5b3KekJ53oqTAke3xqNkCRNniv7ip813RTq2TEPryhscgjVNpBURCaCPJFAYwBsLdr9hWGUHLcaU74DvhbdXTKqEg4Xgza\",\n \"seed\": \"horn destroy weird walk toast shell weapon during key pen scene photo\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\", \"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\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1574264321.5070114,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPfP8S3BpZ7QnthNTxkuisWA4CffhM7AUmyjnzL8ufb9WnDzQSjN1dmWoX64SptnEs2EqsWdah6vKbSYc5yMRUD7pwXUgSi2V\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YrADvqV9WpT1GPytvEun5TeyxBjeXSHApE3kxXjFme8eQ7c5PzwARZE9XkXbYjK1DpTG7QkFsrpXZbwobVjXWoryEKLbvyY\",\n \"seed\": \"sock panda move ethics pact question muffin visa sausage assault exit weather\"\n }\n}" } ] } @@ -736,9 +742,9 @@ "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -785,14 +791,14 @@ "curl": "curl -d'{\"method\": \"address_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"pubkey\": \"tpubDA9GDAntyJu4hf5WteoD7nKkqVhJVwLj4TdPNpsJXvjeUPiqDapHMnN78FreKtcXUArDQCnmQ7v22RU9WntTHUReS1NUaV3xBYVPCPBtMVA\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mgRWDJejZivGjNCa9injz5TXumasPPSHMx\",\n \"pubkey\": \"tpubDA9GDAntyJu4QXkgLBWwYE4u7hfDsQJfxRfu8Y1dqwf4iyRd6T2WJ8gfhcqnxVHjQqeMRk5jJQYbyR3Deok8j2ygosVp353vmMJPGjG6cag\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mh21U13TSKAhyAoH2o4Ycf9uMKgLUAdniz\",\n \"pubkey\": \"tpubDA9GDAntyJu51hcbX7q2MiQPeBjgYbZSF5AV51F888eifDtTFM9L98ze6hmF749MJXbbtMRxWRi5U8B4qR89qD8S82k3T2Nopyfvt6jgJyg\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mj78ZBXmcPQ2uRYVaRRHtY3CYC7QKSqTc6\",\n \"pubkey\": \"tpubDA9GDAntyJu4SEUhd6fSS4yTXxXhj7iNFqdTBMZCCzUkAD4FY7VgtmGB7yHHyGqtpHW9fKJXyW2Ez6upaSjFzogrdeBRVU3MWnEipoLcZmK\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mkgXt6aYhEaycR2ZPszPaAJ8FYcjtV76rX\",\n \"pubkey\": \"tpubDA9GDAntyJu52FVbHSTwypc2D98SFkztyBj2KUzZqK5rrwhuEbiW9UpsGEUd2ampXFoV7kkFViC8NHapezDsQRiXZpUnfm2MsknH4G2nx9e\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"pubkey\": \"tpubDA9GDAntyJu4P2qBQ1Xp4SAri3wz73G4yZY47T43VYnLptBcJnvcFSogHEa6X6iQEohs9mv4LrAyUhqRS2W5hWokqP3uMHwwdpEkfNwjQAc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mmL92G4QN7dj5XJknobmBgCWZLH7fzqf3z\",\n \"pubkey\": \"tpubDA9GDAntyJu4FbMXh7piDZMTk7qDRSBoE5yayLKhV1N2mcoaNBAK7LwT4WBsJd2rRfhy5DD5hZ4qxaP5FgJaBqf65mDsqgd9coQPcPJtqiB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E\",\n \"pubkey\": \"tpubDA9GDAntyJu4GgpfZMVYjf1qAp1af4W98MdYsPUR1o4irMwiHarZNKWk7sEmXs9nrefKdpV6TzKBxHYwWm1pFH2DDXPMqM4x6Jv1jwQf36H\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mnPqmmN9hjuT1H9NtxjNfY77xU1wqySrUg\",\n \"pubkey\": \"tpubDA9GDAntyJu4snsmnvygNik66AbhfGXxs7aaTvLjbgDtTYr6y1L5t7B8xFhV41LGHRwey3vmvxb7Ra5QaAuLAm21WYmJ4BxJHdrXEr2BSHZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"moU1xp74aVh9zF9nDnSfmV4RFUDnTywtLE\",\n \"pubkey\": \"tpubDA9GDAntyJu55y5goYbwg5osSCqA4noP1oDFR6KDuL8XQ1tW5woXPDRsbvUXWQ6dj4wQz6w6RB72VmZmACXg5XcE4LzwnBG2NAprcwYEu8q\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mocxzuAQDiH9maSP8TNss2UqfDk4LmkRzR\",\n \"pubkey\": \"tpubDA9GDAntyJu4eoSAhQG8UwTKJBgpJC6Zoyy9cDtyLLKob9xJe9cDvu9f8GkHCQrUAHeLpMy6g3Mtvu4EvJKGe3NBGRLNffBifgNKfHK6DR1\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mqKgz7yQfGHsMWvxvL4zP7NWKgSfz9exCr\",\n \"pubkey\": \"tpubDA9GDAntyJu4HG3Wnct6tpMWrtXUSKjpHPMtDi9EvE5BUr9i2bw6fvNeQ4ik1oqjouCFFP8EmLQkeZjNcXco6f4mhJs14bmtHyJu1PvSXax\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mtBmnN1xnZj1gFwBwabrRe7bTCM1VXT961\",\n \"pubkey\": \"tpubDA9GDAntyJu4KZJWWFWD1X2ztrjZSZbb11ZUanxQXX73xegiYQZWXchZcfyzhVdwm8XjBbz6KDEo7rgqBeLmpcVvHkeV7AcBQU6MVHLWwh9\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mu3QP3SyXuEKqzBd7u8G68W4qPwi1CihpY\",\n \"pubkey\": \"tpubDA9GDAntyJu4jUF3eAx3jrwfWqPzziDzVp3jrGrpNvi3c5hQYVHS3CmZEehcxmFrDCLSMqdsxQLvDwUbKxiD1qSkJ3VrNpeArvZXejq6jRc\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"muuS4xFsNhKT2xrrHYXbUBqsjoVFbXRNNk\",\n \"pubkey\": \"tpubDA9GDAntyJu4qR9i2bFuwvRZmJy2txYoTKVfetWPq2AA2PEmpwkp8WvHoEdy4MYgrumMsgtAtoBxxww4Mxk3fkQ5VfS7r6HrD5Mob2f5kZn\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mx52jPthqfxgBHRRsDmMnjvCMTqa6pZohi\",\n \"pubkey\": \"tpubDA9GDAntyJu4mTpZKoe1uNFZNJeGjLeqDhUco8Cv2BLUboKvnhSTVdobo5sfGrUburZiGYC22A7ZZpugSPzJuH8HAeZLsKvuuTCh3ZBFQ1S\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mxCuo9wx3Nqv6CzUVvgJiXhahigKKgLEJq\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ktq3cHv6W4drAiyBnTxJd4nVBFizyvgYoxLkDNRXdomZaWr96FehSwQdRyZWvpEqVwfscPrinchdNGuVVKjqFVn33pvaTFJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mxYw8EArXAghHSgzsHudsgKaoBoSZQ9pxe\",\n \"pubkey\": \"tpubDA9GDAntyJu4vSyAg47WygoL6T2QEK4AgDGatW9yGX8H5d7rmMvaYUdcN3Vc2QuZWE6D1EhHVwNhsGz1HGW4wAX3vNFVrhnshiGi3h2Qqxt\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mzS6UUd9VcrucAACKHfw3tsRToRPsynvqp\",\n \"pubkey\": \"tpubDA9GDAntyJu4ZvBSM6m34vVZpxxyitUgvt5xWpiv81VcS2Jof9YVMHMJZ4g6iSQmyAwuciZYMAei2c8eQinBm2FUec3QWQQzazzKnZpGyXu\",\n \"used_times\": 0\n },\n {\n \"account\": \"mg7Gcwkej1uBfgwt7ZX3mApCfKKmjTCay5\",\n \"address\": \"mzdJDdeKQzr74TPxQwydFrtabsMAjb7tih\",\n \"pubkey\": \"tpubDA9GDAntyJu4TXsAG9mgmNZuTbrpEFejrfWLgiAg61Vt4QJj8kQ1czjArFLUFpdZXTANDnjFmeEEUHSfVAz5VNoLpE7QDbmUxQFZeGVpw9X\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 53,\n \"total_pages\": 3\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"pubkey\": \"tpubDA9GDAntyJu4iCaUm8AbZJCBSDG7upKsRv8kQMaJWWAt2oszhPeMVov7CJABiQp4FCY1o2dy18ggXTv9DkS96sTGNcHtxsMXEaP2dojZcij\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mfteQtvyHHFLkwy72dDXFCBJ6uionLMUTN\",\n \"pubkey\": \"tpubDA9GDAntyJu551ZhxDebnmHc158MCBmzaHMno6HNJ1UDNyqyTNmBfgAVTxhsAGek8hV9fmudKMtpy6uj4SMwqorzthBDW9rPPcbjgVck1Qj\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mhvx3LUGFQseiqXSuo8tPt38o9DXXE5ZKi\",\n \"pubkey\": \"tpubDA9GDAntyJu4RtvzwLuY6yGNGpiyQMUA9cPT22jtCerxg9npZzRTZY1nm73HHABxNKZXyTmE7j3Hs7txahjw8wf9S9JCLMGsEnTdX8ARk24\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mi58eKr6xaLRJzcRM2iG33uFmhdMTcNKQK\",\n \"pubkey\": \"tpubDA9GDAntyJu4M5NfkZfJ823aKXDRktXGXPqxNtMrsuVJVLrGmQZJD73pwso1SpNKKipXAdbdEuHGZPZKdsEPA2eHCzPN8Pn8dHEbVC9gGjm\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"miPjjjcr7x5whGSTPtVy5SubvkkkxQxBuF\",\n \"pubkey\": \"tpubDA9GDAntyJu4HgL5pgERUBzQJ4CEwkPNyDeYqeWb6syvs8VzZSBLcMRrpCCyTuKpE4tSHBeBCMEDabbzgdXVqy6yXoGgT9TXho8h2GmLPF6\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mjviZE6Cb5zAVzrHUDkYrctH4PLpg5T8Jh\",\n \"pubkey\": \"tpubDA9GDAntyJu4G1PHonQ12ehqUZwsiCrRUX8pZZdr25K6HcZ4s29T9n7pGb1kLGdRWvKm8uc2p9waCLZMPQYMUcoJzmhSXEjrKBybrqDjyhV\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mkST42avHnx473p6bhEykP8FfjtDjHBxne\",\n \"pubkey\": \"tpubDA9GDAntyJu59JyHteVdZkSy3WCaG4GNtChfBoBNdfFFcvZzkuRSANwQAB1KGBKGyoETUeEPUHXjMJS6oiFP9wRuKWTJz8rT9WtXBuooG4B\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mm8jgbSrM2QUEZFarbg1nChxDojhn9yPFy\",\n \"pubkey\": \"tpubDA9GDAntyJu4H3MKr2wNR8a86tCtpCGVSpGbt5Y7G3TNeyL3ia9ZhtCYFzYB3EzohCeqxmuUhU41YrwvaVqkTdqvzUr4qSzH7ArnYKKJ7Sk\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"pubkey\": \"tpubDA9GDAntyJu4fN1oiuKxx3opsPyb6fjq5dgceWNYwk9kCFMZRy63TQ1YR7FvTSf1sJPyFHYBGD3sBP3BiJpNGmtqXQHepS5sfCjVNuTvTQY\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mnnMZ4JAgxQhjcFq38tZqZWFNM3L33CZgD\",\n \"pubkey\": \"tpubDA9GDAntyJu4x1ZJsTpa1br6Y3Z19Ygn6ctwJmq6KTjwSuCpC3akBkzULA1B3Vcw4RgJsKnV5AuurQ8j3Vgubj9qqDtLUc8QEDtPaymSNqE\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"moRmMpu9ZZQraNCPDrbL1ppbQDikBrfRLW\",\n \"pubkey\": \"tpubDA9GDAntyJu4VFafnZLonjNLHRu2JG22vQezQBbnKB7ihidypUV8uKmiuAA3jDBLN47uPa8JhgnDUQD5Lxd4o3jskVXhq7V4LNki5U6faGB\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mqRqqiD6s1XFCaiSbMDAHVdafDQ2KXgEfa\",\n \"pubkey\": \"tpubDA9GDAntyJu4Ubbohrk2nW2UL5GpJqm9dCGkS4dzxjaw16jA3gxZ54ujEguBKWjfhu7JQ4wK216JYWK6EnHpBi45ScLGNSCZFmGeS71Dkh5\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mr54cm6sq9tNpxy7N6GzfspTitYD72oY8S\",\n \"pubkey\": \"tpubDA9GDAntyJu4gqBAs5pTW7Vt6tccf65xJEfLGHZ4Tkb9oHRtk9Uc72xHwu6MT6MtTZKnrKbX8VtDF69YbUJ2WjAw2J8WGvrYamtZ9T2kQPW\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"ms28WhCaR3KPzbCgVMBH5teXFLrqJcPrie\",\n \"pubkey\": \"tpubDA9GDAntyJu4MFD6on2pfTgMweo1VbxvUxuW7AUJr4qMW86WQNAf1oYTE5DmdAeroV16B5GJyx1gS8tDZZzuDNxp7bP4ZwRFWAPHiDWuZiJ\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mth7m2VT6xea5DWBf68UFComUKu4KrQeAq\",\n \"pubkey\": \"tpubDA9GDAntyJu4smamEAF6vHJLFzgPDHPSsWx8p8wvAKyqNfayrL2P2iMwGhm4PM5CAjVGiUR2UkFyWz5iwwYyhxxsfCyBmivjsutvEZCwU6c\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mtp11hR66KGz5s8ctUJzcYtU1KzHqJ72Zg\",\n \"pubkey\": \"tpubDA9GDAntyJu4m1ftLvGFr2wa2s9B43sGAANkoVSBFFXnrALyLL63oyX1qjqb7JLJbfn9hQ42eubr6dfufuGEkiGDVMEaytmtUSTxUUJiJ5n\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mud5pSea6YmQeqygsiwRfSfiFw8VrYVVAW\",\n \"pubkey\": \"tpubDA9GDAntyJu4PJJBb15GpAZ96EnyrWjQmSzEZCVywBGUzabxJNC2EhiuQjnJ5peWrrBGbgxUyBhMRY7SKB3BvwxxZRGiJ9Bjinsx72fwFwa\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"mujug3Jorq72ZbuF7ZvCTPApvdqL4E33fY\",\n \"pubkey\": \"tpubDA9GDAntyJu4EA14miQYzTCwusmh2XgdvKU8cL87ok7o2KwTDdMhrRRbSdgh2SLDC5iKu7rcf5GxedjhkzV6eg38N1WWgoTk9eWycQcLhS3\",\n \"used_times\": 1\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"muoJZD4BbGorbZY4tgMgfEr9KsJWxiT8Zf\",\n \"pubkey\": \"tpubDA9GDAntyJu4YWqeKsmM8gYa2FDA91KyXRZGSjipsyY123S2bAyGVSJPxVqvj1aseYpwnnyVbs3uP1cYNNmEXcUv7Pt6eGhPiEEoyag4eDA\",\n \"used_times\": 0\n },\n {\n \"account\": \"mopn7QaJwC4biUEu6xgtVuuzi42HUJ6s1y\",\n \"address\": \"muohF5ArCAF6VVu6q6ZUid3tHD3r7eyruP\",\n \"pubkey\": \"tpubDA9GDAntyJu4NWNV5rFUWL9oJYZJ85yEQErJqeqZLXGdJjckMQoM9W9qxCBKk7tQ4zXbLnPsTVUr7DKUjp27LiTCqvxQyqVch2V5bFByGkP\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 53,\n \"total_pages\": 3\n }\n}" }, { "title": "List addresses in specified account", - "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mfYmjb767fwcQEEg9JAfio3tntwWNjKcDM\",\n \"pubkey\": \"tpubDA9GDAntyJu4hsBoehPcg9Q3Yaaj8g8zzAw7ihUmNSpBQ6FiVZiyA55fNH6aE2F1KAizSh5pNTfFzL7u42X3AkhCU1vmK8xjcb6SX95Fwbn\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mgXEGziF2d8bzRm6ayCkYxfqsJMkJAwoBU\",\n \"pubkey\": \"tpubDA9GDAntyJu4NKUhJ5JBm9isBmG18G1rn99QYeqKzPbX8eoY34K5c6ffy8ZsWhGpWqewws4pxxNtDuK2J5jfbhV2k3Yo5R2XsjHP8LuNaZp\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mgnH6q4rhzmXoK19QYCSVkT5Z5upv4ayL3\",\n \"pubkey\": \"tpubDA9GDAntyJu4TSibjnPiCkr1pCSiDxeMQ38mAmBa5h4CYYmxgp3xBNo6rg274st5AffPczqMCJYj62s4A73UrDY58eb7Du9UibVG49oHumi\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mgsBH4Q2kLDhHqpL5QxoBGbnsTRSqeLW9k\",\n \"pubkey\": \"tpubDA9GDAntyJu4UDSiywVFBSqTGN39A3HsXV851H6WRNtiiUKBBNW5vpdPK99xdhWGJ9Ca2Fpk24arfXas14o9q5u4CzGgTf6o88VwrektyAa\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mhPRoHzppxCmWEjSCjPSPGA1jh4GfHhm2k\",\n \"pubkey\": \"tpubDA9GDAntyJu4kS19mFVsPe3aCT6ajTTGZAQRtGw14BRFkYUCd5LSfwYz1QkNqG6GqvCQySP4qgroEUAMcfoChkzi4q1riU7qwGG29JUkEG2\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mjgGqVK1reumaWsJPD4W9p6uUmq2U2GFTA\",\n \"pubkey\": \"tpubDA9GDAntyJu4cFF47b72rDbjnsvgCc7UarzAfeRnZXfSivXUrpSn6ZDXCJTLJiVJmfU8gNttAw7x9hspzNeYFZhzhMnSCLm7n2pZH3oNXR2\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mm2imDmzMdZ1W3QTp9EcS33DG73CkFkMrU\",\n \"pubkey\": \"tpubDA9GDAntyJu4KLzz1GGQ9THB7ZDkXHXSVXFo6ePz4cdersZzQf1ja529V4imkrXXc9xACJWehbgmHc9VzBjh1qpsH8D84roeH1ueUqVPcH6\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mmUUzg5PeBMEPtzpYrEsdhWWTXpGHU4He3\",\n \"pubkey\": \"tpubDA9GDAntyJu4xQKfdMgBeAYuFYZ2SyMQYzMdLSwhoPimGBtqXBCQSVdZcWzSw64kqZQHB1aa2eeEYU9FzwsnmQtPNuUup2v6tTr4518aoHb\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mmjj3hM448sQ17yxRCEorHdUJ1BwPAHAGX\",\n \"pubkey\": \"tpubDA9GDAntyJu4WPs77CiBsARhpdthGoMo7LsMD35YRYLavcThAx1YZJZparw648XWNPV1zVUj9EBi66gCxipfjSpejeF873PMDJFP4moWrER\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mo42rUxQVRZDHGTwQpyYXGjX21gwbUimgU\",\n \"pubkey\": \"tpubDA9GDAntyJu4YqD1oRvSa8jF1gUNVeUCA5g3o6o9TWsDAYnCVr9jmweKHeBtC15JUyCyWPn5WD3oRrJ11g6Xsy6pCabfBuKgeiftVFoJJiY\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mpJaXnK31EKtRsb2gnbLYvnx3ianDanav8\",\n \"pubkey\": \"tpubDA9GDAntyJu4MRLzrHe3Voo1DXwqH5V9bwrE8MzyAuDroKhBzN8VnfpsKKXaFFWfpVTCUVoNwCR3amAbtKtf7qGRvZdLHZCpU4JW99tXd6W\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mqzRMchGhAWhE2yUicheRtBjSe9qtE6MUB\",\n \"pubkey\": \"tpubDA9GDAntyJu4HpQGjfmjt837jAgc9WrswML7sYzmLTRfh6bRga6tYaX8Curd7vJD7Jkckaz1ykKER56UqQHAE8EavYDJhY6WRj41ZAeb4CZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mrEUqt5FY6RmdLoAeHLt7UXvQH1XQrArP1\",\n \"pubkey\": \"tpubDA9GDAntyJu4R6XEzGLepqVULLnvTiBGM9WMypA4EBKybN1YxTLJmxprynNNJJZ2DP8T8DdsRvMUX3iomgng3LMD5Q3BJtfWpNLQ2aNd1Gy\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"ms529tV4Qgy3rmyRZRFsBte5et34u5jst9\",\n \"pubkey\": \"tpubDA9GDAntyJu4H9BbZt7F4xn68n9dUFeFCdGQ6br2AAS7YjdfK435wdQeBeobocfz3y5CAxMdsgu1zyRmTL3xbz3XLcDvXMgU6fLaFVcPgnt\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mtBjVjoGWCpzbQT1NzZDfSrn95TeJG1ji1\",\n \"pubkey\": \"tpubDA9GDAntyJu4Fdpx7Tcb5vBqydXH9BMNk9XNZSuhHZWhZHsgEL8p89FibADSsEZ3gGdqkyspztHbrprSgW3nwFqNtmHvoWVHZED3wvGXuMZ\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mtkS5xt3u4763mxSXuw1HkVcRnDoMES4aX\",\n \"pubkey\": \"tpubDA9GDAntyJu4dFafTbp4793eHxNFfZVAdJTHu2Q577vYLyCq3PBYh1etrhTMLeqrdH1bGuddrPFQ28WTHQhgWzc7JQxN5DiMvsgjANSjTQ1\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mu9mGEaaPGeqcHqFCzN9ZasYuRF7bT2LjH\",\n \"pubkey\": \"tpubDA9GDAntyJu4qyUHkNEjYfvHxv39crc16C5zLgxgP5voAwyfhr6c9jGCtV6wDT7S6kg1qBVBvkpi3BdRwWdKudaRwfBfckA5LBevqZGLxmG\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"muU76Y77vnehVWj6Qc8CvPwVy96mWiD2A6\",\n \"pubkey\": \"tpubDA9GDAntyJu4ktxeuZvaDWekacX6TRwACQd7BRjNVHoawTPMLLhi24uzeAnCfbUdMM7AJa8zQeAs9AdEFdiLjWvDXUZjKYNNPtfn9jGcbCe\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mvjxifxD49c5XMnftiYh6jzeMyPgrKQQqj\",\n \"pubkey\": \"tpubDA9GDAntyJu4obnhJRAf1m496rHfr5uZ9mn4fV2fYLqPxWWkVbPrwUowSip13ahAZTVynw7DuHRXTAHp4fBHT9kwFMXoguTJa3rtiaWQVEz\",\n \"used_times\": 0\n },\n {\n \"account\": \"msG8sk5GWMXHHywtmR1Ej49YSW31aW2vuW\",\n \"address\": \"mwqpknWsuWYSdMXvcsQdF9XfHfHZY7Y2go\",\n \"pubkey\": \"tpubDA9GDAntyJu52xYjcj8BBRAATRwYAKxxKHwPTP9A68Pz19moAjhwD39jXkPZR1fPbktmXXVnYUVxKdf112cs7fn8262KKJMH53L7oijjArf\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 26,\n \"total_pages\": 2\n }\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mga3DphaChcu4vompA5gaXQT82QgBqcJvS\",\n \"pubkey\": \"tpubDA9GDAntyJu4uiPS4NSYKiTQtUE9s9gUGB7sv7cS9GEFqH3vkERzCABJxAWBhyAWvr28ixck72hX4BLs3U7EUzph1iH6ZyQMTeyemfkFCbj\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mhEWWTp8pVfXNvBLc2NYP2L9b8wtYswRVs\",\n \"pubkey\": \"tpubDA9GDAntyJu4HVrnRXqsW31QigyKZ8Ey1vxxgBruPSXxFXMgDiEsQbDkYtQGhxovaGvBQrBwQtmB62uK7rTxXZqfATTmKR9QWsBWR3Kv166\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mhcUqEhnn75yAvDwHo7Uza9Pmpg3ejJ4Eu\",\n \"pubkey\": \"tpubDA9GDAntyJu4sd28EqsHznh8S6RnD5sdSGEPCouvEejGh6mEGiBRaGUTK1VY88VvavMxxWCzJAVk3kud9o2dtWfCaz8iM8x1NjoFXMVumJ8\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mj7WazmG2HBiTk6ZMyAW8UARmhaZ8tzTwj\",\n \"pubkey\": \"tpubDA9GDAntyJu4GXSFQdV6mVY38FHNDS2L7ysLX2Zyo113Xon34nocnMPkfBJrfLVmPNBN5qZBJ1huo8ABRbcs3vvdMHrX1DdFwHNN69Acpa6\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mkCbbvBpCpdSJpeRzGDJottkRso8eVkkA6\",\n \"pubkey\": \"tpubDA9GDAntyJu4hTn9385s37vguGdCkxJiZ5Uks54rFGy4LMvRbqJS8xCTm5fkdHt39f6w6xaB63juPD6Y9u7tSNKDDA6emDMZVQq4RwJZDV7\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mmCvFmqDdQMfBpqqeSCjxAvSAkWY6zDMeS\",\n \"pubkey\": \"tpubDA9GDAntyJu4KCYiYzWGDRWjbfmpsia3yBeybU1manbdXEzjLNDGczATnjM6vmK4vo28RAPR9Zowb8kMfgj6ssXaLA1Yg4KVHbCzH2jzBpc\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mmoCpy956hAjVZrChCoxwMtcDtUvCezrkF\",\n \"pubkey\": \"tpubDA9GDAntyJu4SuMMaSuVRUsAmqBjGHpa54n8HQUa2YCA9nznHZkS6vzUtvcBNSierjFtr7VuKsn2dmi6yVVJJor89jqA9P1K8yRwFZD1nrK\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mnEXfB1RiGMe9Ji2FnTSQ2N9xrP2GGFzWd\",\n \"pubkey\": \"tpubDA9GDAntyJu4GH7oKKCP4n8ELTZZJWUFJZ7BmKQYo3f8dED25EySBh2SMCuGA8zzJRdtqaqRsfW2E59dSo6tZ5e5b481ikaBLAVXDvJMRWw\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mnRhTijZyoHShDEqHP3AgNGAfvjG7BNL9f\",\n \"pubkey\": \"tpubDA9GDAntyJu4S9Z2GLAkEdVYxv11Kjiy2MBjh7iuLPvMfAGq1QomTDxxHFLaEVn1GHTWdXpFXCiGTYEswqwwyZuzwrDU2ogBqeDTpUsBMYt\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mnbdQifmuXjPCxhG3gJ4Yfpv1XWYFURq6F\",\n \"pubkey\": \"tpubDA9GDAntyJu4kdNWe82wr2d8Kz5xLVjiP5YxcrUrarQAKRpNCpab22kaPZydfjTv8TzERPKy4e2FnBWQzDFA4ywYt4scskFMCtUioPGy4Bi\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"moCCq4PFafDzG4TaBGtiWucirfGynMafTg\",\n \"pubkey\": \"tpubDA9GDAntyJu4qQJrDa7KM5yNUHfd6uyKzY4J67p8wLcjECCqNvRC1cj61iSZh5tKdXQGAkwaM7aVAqKVvy3T2VE4CPb7GXs7Xs9ySc2JZK3\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mq2tMfQG6LFn7vwEGEsLd1KB2pvWFULkDj\",\n \"pubkey\": \"tpubDA9GDAntyJu4crV8ayuZN3SfGVzU8BKXKx6x72ETGWVP6pJTVcV4zidTy12keUNunTeTU3LdUDhjb52rb87Aj6BDMorazW5w9qrVamExFf3\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mrbbUc8GkfY4u7MQu76Z4gb5wU7ZpRtXwP\",\n \"pubkey\": \"tpubDA9GDAntyJu4jqcbTA2nhYrzSRSPgkfQXFBg9trh93hYdvQm5i8V5rCuWuPQVeuh5fTheEekVAt8MQiuJU7R8ab5Pg7tTQwuKY5QLqykGpn\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"ms5KFnZQsbSR3nu5sFcPkr7ifv6fD3KV66\",\n \"pubkey\": \"tpubDA9GDAntyJu4xfD8soV4UE2ksNxfqZSthG2vCCkDrMNHuudSkjzCCuXDygAcdd5v4o3pQdc6Gr64nuGWd6LJb5ya9wdcnsCtEGGzCvxpMiB\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"msDRwvkH9pgdmt79MPdHAqHKztpgxmD2Co\",\n \"pubkey\": \"tpubDA9GDAntyJu56HmqP9AW8zLZD5uXZ1T2TroCVWrCNoFGSSgLH9Fi5R1DEKkj6kH6uzyzvJtivPnYLzzxDcntYk5SWefwV8hjcVwSufVWyNr\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mssH26vGghUV4TivYrF5NyR1soqGMq4243\",\n \"pubkey\": \"tpubDA9GDAntyJu4P77ZVEzD9uQxbQ7wdsJRuTNULyZKbHNen41j5kQKgh2C9fsKuwZ5C3wKTbpdNAQjshVe8DhE2njxr8MhisMjfxZSK7dC7UH\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mtLGXY1kAxm5vdf1wpoZtGVWnY6PsrKL4j\",\n \"pubkey\": \"tpubDA9GDAntyJu4cHdxuJknVirR3JKy6NKPZMCjZUHJBPKAcCovbRLK2qPFgxkBZ3JcBfbz1MfKQG7zdWwTVmjH2eQfxykh18a4tdEm8SxKjpH\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mtUj6XhkyKDEtygtsHamB9JzXYd5bPaWGt\",\n \"pubkey\": \"tpubDA9GDAntyJu4PvPqbzhu6xqatr7gqngXGajLuHPRRELxu8ZAecF2yReC44pHMvPXo7YfWNKYof97KcJM5E8RsFazRpTuQtjUo5AVGYxoGS1\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"muQ5Xs4i7fd61F8VXJyj95WAABZnzKN9bE\",\n \"pubkey\": \"tpubDA9GDAntyJu4TMAdofJQ81H33qZLZ38jD6TN3XgoSEs3JiA2WyzKAMt5f9oaQpqszc87QMHFZPLbme8FNvDxc6YrfBgx23tDzAsrQSJDnBC\",\n \"used_times\": 0\n },\n {\n \"account\": \"n1kwxqj5wF13iLytRG1Y3dxdnYSkoY9s6Z\",\n \"address\": \"mwih9K6HdW7tgWQxPvLN5uADVjTstr5NPe\",\n \"pubkey\": \"tpubDA9GDAntyJu4Qrvfx354vWb4nWHmyM34RXFjWHMPxXwMMfgZTKZ8QcgPas1UAGLSuLN4pb6U5TkCBHxRaGHiduBkEJKivbsVbwDyY4LcLn6\",\n \"used_times\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 26,\n \"total_pages\": 2\n }\n}" } ] }, @@ -820,7 +826,7 @@ "curl": "curl -d'{\"method\": \"address_unused\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet address unused", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_unused\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mnGN3JmiBDqSa5bMx8BrZE4FUVGjVh863E\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\"\n}" } ] } @@ -870,10 +876,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"24bac40732fe8c181e0d0ac956a26945c10b280f0c512c2383a68a5b5f38e048209194d700baa61297a2f1432bba4dfc\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete 24bac40732fe8c181e0d0ac956a26945c10b280f0c512c2383a68a5b5f38e048209194d700baa61297a2f1432bba4dfc", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"24bac40732fe8c181e0d0ac956a26945c10b280f0c512c2383a68a5b5f38e048209194d700baa61297a2f1432bba4dfc\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 24bac40732fe8c181e0d0ac956a26945c10b280f0c512c2383a68a5b5f38e048209194d700baa61297a2f1432bba4dfc\"\n}" } ] }, @@ -951,7 +957,7 @@ "curl": "curl -d'{\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}' http://localhost:5279/", "lbrynet": "lbrynet blob list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_list\", \"params\": {\"needed\": false, \"finished\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"f0990acb4582a282b953393716db3cf0292607a715935100883d73ef6578ce2ea270fc487afd87becb4e52d326e25015\",\n \"3dbc940eb80e8d3aa8f40e1c8dd26968e27a9bdd602d23500b61f5bd91c513858ea4e1d90df735542f81aabeefa11636\",\n \"812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n \"24bac40732fe8c181e0d0ac956a26945c10b280f0c512c2383a68a5b5f38e048209194d700baa61297a2f1432bba4dfc\",\n \"506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601\",\n \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"02b7ba0d5d080b812ea3952f106afdcdde51764d832126b2fdb38b09243a6792fc862e6a70f5fb90d9bcbd1c98dd9895\"\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 4,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1028,14 +1034,14 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon 771c37a00c198b81e784ee14406a81a3d11d1a92", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001e294d93770df504bba9bcd44019b2ab3956e264745b051bb92e6a5ca4ceb7dd1000000006b483045022100a3dc9d5cafb11365731fdd5437b23bb0523698841609355785d073c4b19bb8f9022047b9d85cd1720e090d1034507f7f9d9988bd4c8bd60c58a23d399b177f7fa7b10121027b4b97c18faa08a4171c6f0056371a019ce5badefde3c844f975572c89db95b5ffffffff0134b7f505000000001976a9145baaab46dcebb6d36b6375382178d9137a1c139688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"moseEobAQx6Wt3h1GajTh68fqD1m37gBpC\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"cb991eeb1d79b557c4715f2b62ee0b4d2124b7e83fb4253a35615bf9c2d48d11\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"cb991eeb1d79b557c4715f2b62ee0b4d2124b7e83fb4253a35615bf9c2d48d11\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon eada858c84ff7473a54ed1188bcecbb1b5994283", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000144fcea5dff6a99d7cd4e2f2b4dc8491384afbc6a2b5c51e76ef4d90918fd3111000000006b483045022100dd3b49e9d82c487695257cdbd512e34f36f015767f953129bbbe7bf927ebca8802203da92483f7e4f1c0a1ce1e80275894e947557dceb93c489aa01003a500ad8dfd012102f2fc444107cb475cf4f1ab2b852cc4e9c6851216428360f8efa531c5036de007ffffffff0134b7f505000000001976a9143d9d137b8b944c56e88c973ce881a6acf240090588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mm8jgbSrM2QUEZFarbg1nChxDojhn9yPFy\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"a552659e7251e6149408b51e205e47693e1d8ca793011a8f72a74eb2de062019\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"a552659e7251e6149408b51e205e47693e1d8ca793011a8f72a74eb2de062019\"\n }\n}" } ] }, @@ -1158,21 +1164,21 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Create a channel claim without metadata", "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", "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\": \"01000000010fc06811a5964279eda14650f1b03f5cafd35e6f2c145d3f47977ae82ed47b67010000006b4830450221009dcffc0a4985b28966df194b8b9f1d0aef5cdedf90679f486a13a7ac4d869101022037a87cec1907e55f250c95e65886338fda245a78bf67f56fa8104d3264ae98ee01210231d84e50685cf5b8169b1d76cb61fe976bdeec0a70f63971240a51468848b6d3ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d6d7576a91439842b697cebf5599245e9612027a1f2b6e02b2688acc462a029000000001976a914275f15da77f0e910227c88e4b0520d5ce576742588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtBmnN1xnZj1gFwBwabrRe7bTCM1VXT961\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065728,\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": null,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mj78ZBXmcPQ2uRYVaRRHtY3CYC7QKSqTc6\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001805b5574abbfa95356ceaa5d0de78b5c2ef1a82e29beed15f02e0022ea2c96c1010000006a47304402207ae2d87c5199dc1fb66c5e6606a075c8119a89397ee9a954302ad30f2d26c24d022036bd28a2f85e407571c94b78389f722b658c834bc2331f28776c916524bfadae012103e7c6aca0521b8a11617afec54d659454fc7526bdf27f553e29991deca18db6a5ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f6d7576a914485c8a829a9a9e96cee52d8db27405efbcb563cf88acc462a029000000001976a914d41b30bbf758a4c99a77170226528b2385ab5d3088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mud5pSea6YmQeqygsiwRfSfiFw8VrYVVAW\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264353,\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": null,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mzrU7wb2zYC8xh7fY3JbWw8Uv4QcejsJNH\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\"\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\": \"0100000001e294d93770df504bba9bcd44019b2ab3956e264745b051bb92e6a5ca4ceb7dd1010000006a47304402201e8b0b0541507a27168b4627943cb431af2983a148e1ffd6a897727c4b73b2460220683d9d23252543c608f0141c2c772930963ea0c035c678dd7e2d67f7adb317b9012103984f1a40be8ce80f8ddf28bb822fcad1edada28c5ff97f9229a343aa25ab7488ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a0342000408fe7c090218a14d762aae3444157d34e77093def916406f11926e1c1fd8432783dd1054f55e2b779f079933e36de44154882b8e80e14b21516a1974406a17be121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914f1d467d214a341c115f0643ef3fcded0e5461ec488ace221d305000000001976a914c86c1523eefbf2f109a950e47b1d3faffb54a25f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n3pq6NofK4d2HpZNrixrFKXav3815jYA2s\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"n3ZdbUsqvGMgdDCmp8vLh8JJZWT9PYDDeW\",\n \"amount\": \"1.0\",\n \"claim_id\": \"9330a4cfebf2c60bed5f25f0cb5bf0b5ed10233f\",\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#9330a4cfebf2c60bed5f25f0cb5bf0b5ed10233f\",\n \"timestamp\": null,\n \"txid\": \"a59b4032b77d05bc54ca7c82be46e9ab9d4b5896fef8c2ff30eaf56b2d59d1f3\",\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\": \"3056301006072a8648ce3d020106052b8104000a0342000408fe7c090218a14d762aae3444157d34e77093def916406f11926e1c1fd8432783dd1054f55e2b779f079933e36de44154882b8e80e14b21516a1974406a17be\",\n \"public_key_id\": \"mw187dYsy6qZDzaaB8nYUD22GWczRV8YVs\",\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\": \"myngv8TWUh7JiAnEGcDc6ME9NUFyJQaY3V\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"a59b4032b77d05bc54ca7c82be46e9ab9d4b5896fef8c2ff30eaf56b2d59d1f3\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"a59b4032b77d05bc54ca7c82be46e9ab9d4b5896fef8c2ff30eaf56b2d59d1f3\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000144fcea5dff6a99d7cd4e2f2b4dc8491384afbc6a2b5c51e76ef4d90918fd3111010000006a47304402202f0fb9d84cbc6dd8ea0861f7a51e8a736f5ead390e142593af5c75dc24b1919d02200accd15bfb8a720571e064824509b51048a0b55d4445687a09e568ed78e76f5e012102ac603b46617a5f24959b058d289db186d51e4fcfac49a48e30d546572a91bc2effffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a03420004f59be148aaf41838926be822f205988e580248ad3272ba9f007524a4971140e71a9920dd267efce6053b5890500d5c4f73d2fd05c421210e6e7f0f9ae89a2dbb121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a9149cbc449ea4d8ab577c00102f786d6a847d64ec6888ace221d305000000001976a91496f2bab0fe40730a5dc822f04cf65656465aa14688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjviZE6Cb5zAVzrHUDkYrctH4PLpg5T8Jh\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"muohF5ArCAF6VVu6q6ZUid3tHD3r7eyruP\",\n \"amount\": \"1.0\",\n \"claim_id\": \"8ec56671520a85097936e1332a41680a8c3bddb2\",\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#8ec56671520a85097936e1332a41680a8c3bddb2\",\n \"timestamp\": null,\n \"txid\": \"eb12f5ea093dcb03297ea4851120fe13a13f53f86851888253cc1e3401925f9e\",\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\": \"3056301006072a8648ce3d020106052b8104000a03420004f59be148aaf41838926be822f205988e580248ad3272ba9f007524a4971140e71a9920dd267efce6053b5890500d5c4f73d2fd05c421210e6e7f0f9ae89a2dbb\",\n \"public_key_id\": \"mzviSKcnraUZM1pHd93LmTWUCevVZjgJP5\",\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\": \"muH6RxFgWLFcNPuMy4eZc6n5n4teWejPEd\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"eb12f5ea093dcb03297ea4851120fe13a13f53f86851888253cc1e3401925f9e\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"eb12f5ea093dcb03297ea4851120fe13a13f53f86851888253cc1e3401925f9e\"\n }\n}" } ] }, @@ -1257,21 +1263,21 @@ "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [ { "title": "List your channel claims", "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet channel list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\"\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\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" }, { "title": "Paginate your channel claims", "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "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\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\"\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\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1424,14 +1430,14 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"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 771c37a00c198b81e784ee14406a81a3d11d1a92 --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"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\": \"0100000002b0b9afab65e6c7206b02d38f35eb91fe5b6007621e4dd3974ce05b027616923a000000006a473044022033d4079b1ed0da2486e1a276d5a3a48317fa20f85f3b696abb59a770f37ca6cd02203aa3012b9372e2324152fa1b0883623f15b03a496ae46130a2ddc7821bbee65b0121027b4b97c18faa08a4171c6f0056371a019ce5badefde3c844f975572c89db95b5ffffffff22f939d32fb02a447374d12744948d5df0eab8d12c2d38c3d0f6eabc90f6ca4b000000006b483045022100895e2bc79533c9240e3a0dcb425d4ee2014733232c6a690844565557a7fe6472022003a92aa08730e5cd1bd31e4dd2e2668e045e5d1441120c1cf0934da020d3d05a012102de8cdfe610e3982d2216faeb333847e6ff10c0e9771900ab48b89d0c86cdc105ffffffff0200e1f50500000000a6b708406368616e6e656c14921a1dd1a3816a4014ee84e7818b190ca0371c774c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d420b4e6577204368616e6e656c6d6d76a91439842b697cebf5599245e9612027a1f2b6e02b2688ac6ebeea0b000000001976a914f4b43e416f71e8dfde9d233a614fdb6b4eda235788ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mj78ZBXmcPQ2uRYVaRRHtY3CYC7QKSqTc6\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1572065728,\n \"txid\": \"4bcaf690bceaf6d0c3382d2cd1b8eaf05d8d944427d17473442ab02fd339f922\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": null,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"n3pq6NofK4d2HpZNrixrFKXav3815jYA2s\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"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 eada858c84ff7473a54ed1188bcecbb1b5994283 --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"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\": \"0100000002a25892f55e82464674facab3e2efb074885a7c184080966fd1e726b0fb35073e000000006a4730440220160c5b0d2f0fd5087a12d4ee4b347eac4d5883d356a47a6fd60636c76b17127802202bfe2ec755f506107b208606ecfbaef05a2d12769aa2631c2739600099600e69012102f2fc444107cb475cf4f1ab2b852cc4e9c6851216428360f8efa531c5036de007ffffffff909fd4bb50c45f69d6ada626d61eb42f2bf6beb1b8f4a6436e482e00fcfae792000000006b483045022100d7ef10aaba0766661a29a6d3e78a50b57a2d6003b47d08b12d422f41ca1fa73a02201a88c34e043e6dedcf8f5389e81ebdc3e4ad898d73418647ea6a0e212f93627e012103ad4d52e4e94facfaa27282e493678ba2a67b381b2f226f3a2bc0b4a85853d99affffffff0200e1f50500000000a6b708406368616e6e656c14834299b5b1cbce8b18d14ea57374ff848c85daea4c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f420b4e6577204368616e6e656c6d6d76a914485c8a829a9a9e96cee52d8db27405efbcb563cf88ac6ebeea0b000000001976a914305f0499fca4b096484b1ea5452d890e7cc0fcd088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mpHAyU14Tgt3EM5sLTbH3NGGqgJd7e25jd\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"timestamp\": 1574264353,\n \"txid\": \"92e7fafc002e486e43a6f4b8b1bef62b2fb41ed626a6add6695fc450bbd49f90\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": null,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mjviZE6Cb5zAVzrHUDkYrctH4PLpg5T8Jh\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\"\n }\n}" } ] } @@ -1444,6 +1450,12 @@ "name": "claim_list", "description": "List my stream and channel claims.", "arguments": [ + { + "name": "claim_type", + "type": "str", + "description": "claim type: channel, stream, repost, collection", + "is_required": false + }, { "name": "account_id", "type": "str", @@ -1469,21 +1481,21 @@ "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [ { "title": "List all your claims", "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet claim list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\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\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" }, { "title": "Paginate your claims", "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "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\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\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\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\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}" } ] }, @@ -1497,12 +1509,24 @@ "description": "claim name (normalized)", "is_required": false }, + { + "name": "text", + "type": "str", + "description": "full text search", + "is_required": false + }, { "name": "claim_id", "type": "str", "description": "full or partial claim id", "is_required": false }, + { + "name": "claim_ids", + "type": "list", + "description": "list of full claim ids", + "is_required": false + }, { "name": "txid", "type": "str", @@ -1647,6 +1671,18 @@ "description": "trending value calculated relative to all trending content globally (supports equality constraints)", "is_required": false }, + { + "name": "reposted_claim_id", + "type": "str", + "description": "all reposts of the specified original claim id", + "is_required": false + }, + { + "name": "reposted", + "type": "int", + "description": "claims reposted this many times (supports equality constraints)", + "is_required": false + }, { "name": "claim_type", "type": "str", @@ -1754,28 +1790,415 @@ "type": "bool", "description": "do not calculate the total number of pages and items in result set (significant performance boost)", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "wallet to check for claim purchase reciepts", + "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [ { "title": "Search for all claims in channel", - "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/", + "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --channel=@channel", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"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\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": 1572065729,\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"short_url\": \"lbry://astream#0\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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\": 1572065728,\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"claim_ids\": [], \"channel\": \"@channel\", \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e/astream#7\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": 1574264354,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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\": 1574264353,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"short_url\": \"lbry://@channel#e\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" }, { "title": "Search for claims matching a name", - "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"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/", + "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --name=\"astream\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"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\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7/astream#0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": 1572065729,\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"short_url\": \"lbry://astream#0\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#7\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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\": 1572065728,\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"short_url\": \"lbry://@channel#7\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"claim_ids\": [], \"channel_ids\": [], \"not_channel_ids\": [], \"has_channel_signature\": false, \"valid_channel_signature\": false, \"invalid_channel_signature\": false, \"is_controlling\": false, \"stream_types\": [], \"media_types\": [], \"any_tags\": [], \"all_tags\": [], \"not_tags\": [], \"any_languages\": [], \"all_languages\": [], \"not_languages\": [], \"any_locations\": [], \"all_locations\": [], \"not_locations\": [], \"order_by\": []}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e/astream#7\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": 1574264354,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263187,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 213,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"astream\",\n \"normalized_name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"short_url\": \"lbry://astream#7\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"canonical_url\": \"lbry://@channel#e\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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\": 1574264353,\n \"effective_amount\": \"1.0\",\n \"expiration_height\": 263183,\n \"is_controlling\": true,\n \"reposted\": 0,\n \"support_amount\": \"0.0\",\n \"take_over_height\": 209,\n \"trending_global\": 0.0,\n \"trending_group\": 0,\n \"trending_local\": 0.0,\n \"trending_mixed\": 0.0\n },\n \"name\": \"@channel\",\n \"normalized_name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"short_url\": \"lbry://@channel#e\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\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}" } ] } ] }, + "collection": { + "doc": "Create, update, list, resolve, and abandon collections.", + "commands": [ + { + "name": "collection_abandon", + "description": "Abandon one of my collection claims.", + "arguments": [ + { + "name": "claim_id", + "type": "str", + "description": "claim_id of the claim to abandon", + "is_required": false + }, + { + "name": "txid", + "type": "str", + "description": "txid of the claim to abandon", + "is_required": false + }, + { + "name": "nout", + "type": "int", + "description": "nout of the claim to abandon", + "is_required": false + }, + { + "name": "account_id", + "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 + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until abandon is in mempool", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + }, + { + "name": "collection_create", + "description": "Create a new collection.", + "arguments": [ + { + "name": "name", + "type": "str", + "description": "name of the collection", + "is_required": true + }, + { + "name": "bid", + "type": "decimal", + "description": "amount to back the claim", + "is_required": true + }, + { + "name": "claims", + "type": "list", + "description": "claim ids to be included in the collection", + "is_required": true + }, + { + "name": "allow_duplicate_name", + "type": "bool", + "description": "create new collection even if one already exists with given name. default: false.", + "is_required": false + }, + { + "name": "title", + "type": "str", + "description": "title of the collection", + "is_required": false + }, + { + "name": "description", + "type": "str", + "description": "description of the collection", + "is_required": false + }, + { + "name": "clear_languages", + "type": "bool", + "description": "clear existing languages (prior to adding new ones)", + "is_required": false + }, + { + "name": "tags", + "type": "list", + "description": "content tags", + "is_required": false + }, + { + "name": "clear_languages", + "type": "bool", + "description": "clear existing languages (prior to adding new ones)", + "is_required": false + }, + { + "name": "languages", + "type": "list", + "description": "languages used by the collection, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`", + "is_required": false + }, + { + "name": "locations", + "type": "list", + "description": "locations of the collection, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"", + "is_required": false + }, + { + "name": "thumbnail_url", + "type": "str", + "description": "thumbnail url", + "is_required": false + }, + { + "name": "account_id", + "type": "str", + "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", + "description": "ids of accounts to fund this transaction", + "is_required": false + }, + { + "name": "claim_address", + "type": "str", + "description": "address where the collection is sent to, if not specified it will be determined automatically from the account", + "is_required": false + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until transaction is in mempool", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + }, + { + "name": "collection_list", + "description": "List my collection claims.", + "arguments": [ + { + "name": "resolve_claims", + "type": "int", + "description": "resolve every claim", + "is_required": false + }, + { + "name": "account_id", + "type": "str", + "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", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false + } + ], + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", + "examples": [] + }, + { + "name": "collection_resolve", + "description": "Resolve claims in the collection.", + "arguments": [ + { + "name": "claim_id", + "type": "str", + "description": "claim id of the collection", + "is_required": false + }, + { + "name": "url", + "type": "str", + "description": "url of the collection", + "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict results to specific wallet", + "is_required": false + }, + { + "name": "page", + "type": "int", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false + } + ], + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", + "examples": [] + }, + { + "name": "collection_update", + "description": "Update an existing collection claim.", + "arguments": [ + { + "name": "claim_id", + "type": "str", + "description": "claim_id of the collection to update", + "is_required": true + }, + { + "name": "bid", + "type": "decimal", + "description": "amount to back the claim", + "is_required": false + }, + { + "name": "claims", + "type": "list", + "description": "claim ids", + "is_required": false + }, + { + "name": "clear_claims", + "type": "bool", + "description": "clear existing claim references (prior to adding new ones)", + "is_required": false + }, + { + "name": "title", + "type": "str", + "description": "title of the collection", + "is_required": false + }, + { + "name": "description", + "type": "str", + "description": "description of the collection", + "is_required": false + }, + { + "name": "tags", + "type": "list", + "description": "add content tags", + "is_required": false + }, + { + "name": "clear_tags", + "type": "bool", + "description": "clear existing tags (prior to adding new ones)", + "is_required": false + }, + { + "name": "languages", + "type": "list", + "description": "languages used by the collection, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`", + "is_required": false + }, + { + "name": "clear_languages", + "type": "bool", + "description": "clear existing languages (prior to adding new ones)", + "is_required": false + }, + { + "name": "locations", + "type": "list", + "description": "locations of the collection, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"", + "is_required": false + }, + { + "name": "clear_locations", + "type": "bool", + "description": "clear existing locations (prior to adding new ones)", + "is_required": false + }, + { + "name": "thumbnail_url", + "type": "str", + "description": "thumbnail url", + "is_required": false + }, + { + "name": "account_id", + "type": "str", + "description": "account in which to look for collection (default: all)", + "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, + { + "name": "funding_account_ids", + "type": "list", + "description": "ids of accounts to fund this transaction", + "is_required": false + }, + { + "name": "claim_address", + "type": "str", + "description": "address where the collection is sent", + "is_required": false + }, + { + "name": "new_signing_key", + "type": "bool", + "description": "generate a new signing key, will invalidate all previous publishes", + "is_required": false + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until transaction is in mempool", + "is_required": false + }, + { + "name": "replace", + "type": "bool", + "description": "instead of modifying specific values on the collection, this will clear all existing values and only save passed in values, useful for form submissions where all values are always set", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + } + ] + }, "comment": { "doc": "View, create and abandon comments.", "commands": [ @@ -2011,9 +2434,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"06d4639a98ad7c343529553088427759e683fb1a\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"7595c2f82ced3c58c1225073590ce18f3edd0291\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -2046,6 +2469,12 @@ "description": "get file with matching row id", "is_required": false }, + { + "name": "added_on", + "type": "int", + "description": "get file with matching time of insertion", + "is_required": false + }, { "name": "claim_id", "type": "str", @@ -2123,6 +2552,12 @@ "type": "int", "description": "number of items on page during pagination", "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "add purchase receipts from this wallet", + "is_required": false } ], "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"streaming_url\": \"(str) url to stream the file using range requests\",\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }\n ]\n }", @@ -2132,14 +2567,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": \"1a078b5ba203620985456bb511c186f8\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01921a1dd1a3816a4014ee84e7818b190ca0371c77c319ec7834afe2c37a33b524594e00ef7fb835b4d9d9a75d0e01f0d547dfdf2d012d019d02a48b5cbb7f1c1dab1bb4411b6f52dc1e3b0526a26f7642ae49a5880a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"5eaf3e55853a497d98fda6b65ed72abc275ad1952c1b95ddd8f33460a61111607670cf382231497e93a457cd30ef7ef8\",\n \"stream_name\": \"tmplrrcjagu\",\n \"streaming_url\": \"http://localhost:5280/stream/4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"suggested_file_name\": \"tmplrrcjagu\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"written_bytes\": 0\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"12ed4261a8538a0ae1053b26b1f763e52e806639\",\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\": \"f6348193d86725238763e9a8dfc8ca04\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mu3QP3SyXuEKqzBd7u8G68W4qPwi1CihpY\",\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\": \"1572065704\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpe5iqj3cn.png\",\n \"sd_hash\": \"812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62\",\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\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01921a1dd1a3816a4014ee84e7818b190ca0371c77f40b1c8ea5ae5cfc5e124e58ed5639501371f5a7c5f76f7929cdd5a3a1be453b58dfeeaa31065c6aee3d3c671f2f7b7c11272703477de6fb6c36c939132684890ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70653569716a33636e2e706e6718632209696d6167652f706e673230812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728a8a3cfed053222080112196f945be3b9c50766d9e46a865a51db625a8307fac4ca33a9bd188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"c275f684bdc0452eae56c457777bc3153767b855649a3b6070650d69362e1300c6cef9c747f5b2e4efacc6ea39e987be\",\n \"stream_name\": \"tmpe5iqj3cn.png\",\n \"streaming_url\": \"http://localhost:5280/stream/812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62\",\n \"suggested_file_name\": \"tmpe5iqj3cn.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": \"d59637b15acc1d0a31ac7025d5318241\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01834299b5b1cbce8b18d14ea57374ff848c85daea8197ad276293ee21d20b350f8c8bec61bf067c9853833b06d9e8253bc3aaae327ca7b97e008ffd759ffc961090621fce9c2dd1a1541306784185f78610b0f62b0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"0377e60d0033942da7b9a28c07a7e89eba0046dbd8bd60a11c7f3e2df1d51a2467da10bbcb7a395b13750ab7ceae9470\",\n \"stream_name\": \"tmp6zg8pas6\",\n \"streaming_url\": \"http://localhost:5280/stream/966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"suggested_file_name\": \"tmp6zg8pas6\",\n \"timestamp\": null,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"written_bytes\": 0\n },\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"b132228e64111dab890ab8391db268a1c1a6c4e3\",\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\": \"7070b5471f986876bef2fb5c9fa49e2b\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhvx3LUGFQseiqXSuo8tPt38o9DXXE5ZKi\",\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\": \"1574264330\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpwxw_wxay.png\",\n \"sd_hash\": \"506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601\",\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\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01834299b5b1cbce8b18d14ea57374ff848c85daea391502ec3f9bfface5e5437c3fe25708d2147a0b77a32874d1afd7c7f2e675fa87e86be663ee0869eef6adfd815cfe4909f884acb02f9283c49636af8969ef1f0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d707778775f777861792e706e6718632209696d6167652f706e673230506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f7267288abcd5ee053222080112196f1a7a05d837a6d774f801447be60352186bea0eb581ec0d6d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"78c6ed41c0e8f25ac808efc55f727afd7f7a4b3937227d16713e39268433633f89b4fc2fc59825fbad21dcf3b7cf8e2a\",\n \"stream_name\": \"tmpwxw_wxay.png\",\n \"streaming_url\": \"http://localhost:5280/stream/506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601\",\n \"suggested_file_name\": \"tmpwxw_wxay.png\",\n \"timestamp\": null,\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"txid\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"06d4639a98ad7c343529553088427759e683fb1a\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": \"1a078b5ba203620985456bb511c186f8\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01921a1dd1a3816a4014ee84e7818b190ca0371c77c319ec7834afe2c37a33b524594e00ef7fb835b4d9d9a75d0e01f0d547dfdf2d012d019d02a48b5cbb7f1c1dab1bb4411b6f52dc1e3b0526a26f7642ae49a5880a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"5eaf3e55853a497d98fda6b65ed72abc275ad1952c1b95ddd8f33460a61111607670cf382231497e93a457cd30ef7ef8\",\n \"stream_name\": \"tmplrrcjagu\",\n \"streaming_url\": \"http://localhost:5280/stream/4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"suggested_file_name\": \"tmplrrcjagu\",\n \"timestamp\": 1572065729,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"7595c2f82ced3c58c1225073590ce18f3edd0291\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"added_on\": null,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": \"d59637b15acc1d0a31ac7025d5318241\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01834299b5b1cbce8b18d14ea57374ff848c85daea8197ad276293ee21d20b350f8c8bec61bf067c9853833b06d9e8253bc3aaae327ca7b97e008ffd759ffc961090621fce9c2dd1a1541306784185f78610b0f62b0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"0377e60d0033942da7b9a28c07a7e89eba0046dbd8bd60a11c7f3e2df1d51a2467da10bbcb7a395b13750ab7ceae9470\",\n \"stream_name\": \"tmp6zg8pas6\",\n \"streaming_url\": \"http://localhost:5280/stream/966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"suggested_file_name\": \"tmp6zg8pas6\",\n \"timestamp\": 1574264354,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"written_bytes\": 0\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" } ] }, @@ -2256,10 +2691,10 @@ "examples": [ { "title": "Save a file to the downloads directory", - "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file save --sd_hash=\"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\"}}).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\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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\": \"1a078b5ba203620985456bb511c186f8\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01921a1dd1a3816a4014ee84e7818b190ca0371c77c319ec7834afe2c37a33b524594e00ef7fb835b4d9d9a75d0e01f0d547dfdf2d012d019d02a48b5cbb7f1c1dab1bb4411b6f52dc1e3b0526a26f7642ae49a5880a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"5eaf3e55853a497d98fda6b65ed72abc275ad1952c1b95ddd8f33460a61111607670cf382231497e93a457cd30ef7ef8\",\n \"stream_name\": \"tmplrrcjagu\",\n \"streaming_url\": \"http://localhost:5280/stream/4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"suggested_file_name\": \"tmplrrcjagu\",\n \"timestamp\": 1572065729,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"written_bytes\": 0\n }\n}" + "curl": "curl -d'{\"method\": \"file_save\", \"params\": {\"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file save --sd_hash=\"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_save\", \"params\": {\"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"added_on\": 1574264332,\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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\": \"d59637b15acc1d0a31ac7025d5318241\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01834299b5b1cbce8b18d14ea57374ff848c85daea8197ad276293ee21d20b350f8c8bec61bf067c9853833b06d9e8253bc3aaae327ca7b97e008ffd759ffc961090621fce9c2dd1a1541306784185f78610b0f62b0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"purchase_receipt\": null,\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"0377e60d0033942da7b9a28c07a7e89eba0046dbd8bd60a11c7f3e2df1d51a2467da10bbcb7a395b13750ab7ceae9470\",\n \"stream_name\": \"tmp6zg8pas6\",\n \"streaming_url\": \"http://localhost:5280/stream/966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"suggested_file_name\": \"tmp6zg8pas6\",\n \"timestamp\": 1574264354,\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"written_bytes\": 0\n }\n}" } ] }, @@ -2414,6 +2849,111 @@ } ] }, + "purchase": { + "doc": "List and make purchases of claims.", + "commands": [ + { + "name": "purchase_create", + "description": "Purchase a claim.", + "arguments": [ + { + "name": "claim_id", + "type": "str", + "description": "claim id of claim to purchase", + "is_required": false + }, + { + "name": "url", + "type": "str", + "description": "lookup claim to purchase by url", + "is_required": false + }, + { + "name": "wallet_id", + "type": "str", + "description": "restrict operation to specific wallet", + "is_required": false + }, + { + "name": "funding_account_ids", + "type": "list", + "description": "ids of accounts to fund this transaction", + "is_required": false + }, + { + "name": "allow_duplicate_purchase", + "type": "bool", + "description": "allow purchasing claim_id you already own", + "is_required": false + }, + { + "name": "override_max_key_fee", + "type": "bool", + "description": "ignore max key fee for this purchase", + "is_required": false + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until transaction is in mempool", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + }, + { + "name": "purchase_list", + "description": "List my claim purchases.", + "arguments": [ + { + "name": "claim_id", + "type": "str", + "description": "purchases for specific claim", + "is_required": false + }, + { + "name": "resolve", + "type": "str", + "description": "include resolved claim information", + "is_required": false + }, + { + "name": "account_id", + "type": "str", + "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", + "description": "page to return during paginating", + "is_required": false + }, + { + "name": "page_size", + "type": "int", + "description": "number of items on page during pagination", + "is_required": false + } + ], + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", + "examples": [] + } + ] + }, "settings": { "doc": "Settings management.", "commands": [ @@ -2428,7 +2968,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/tmpl6ahaz1t\",\n \"download_dir\": \"/tmp/tmpl6ahaz1t\",\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/tmpl6ahaz1t\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"announce_head_and_sd_only\": true,\n \"api\": \"localhost:5279\",\n \"blob_download_timeout\": 30.0,\n \"blob_lru_cache_size\": 0,\n \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"coin_selection_strategy\": \"standard\",\n \"comment_server\": \"https://comments.lbry.com/api\",\n \"components_to_skip\": [\n \"dht\",\n \"upnp\",\n \"hash_announcer\",\n \"peer_protocol_server\"\n ],\n \"concurrent_blob_announcers\": 10,\n \"concurrent_reflector_uploads\": 10,\n \"config\": \"/home/lex/.local/share/lbry/lbrynet/daemon_settings.yml\",\n \"data_dir\": \"/tmp/tmp5dcqjwi1\",\n \"download_dir\": \"/tmp/tmp5dcqjwi1\",\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/tmp5dcqjwi1\",\n \"wallets\": [\n \"default_wallet\"\n ]\n }\n}" } ] }, @@ -2499,14 +3039,14 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon 06d4639a98ad7c343529553088427759e683fb1a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001d81bc98d48867d2ebff797f57c906a751a235dd57b4b891d955c482216d92625000000006a4730440220149ed407671bb84dd0e412b2e51d67e283fe87bc5fc73e01d6c1d24c8295f11002205cfddc91b4dad0b186d127096402f1e7213bc54a51a6c0e14940985030960a83012102f80ddc9181a8fc9e9401806f0c0402a085480be6b65841a030580f242661761dffffffff0134b7f505000000001976a9147accd75b55b97b040d43a1ec22d61e1a04c64c3188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mriG85MzTsSyUoh5SpMLtVMveeTgQiBYNn\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"d5292cd61085b328aba4d5d62e929f5a711df5f3cdd53c3bbc2ade213c212486\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"d5292cd61085b328aba4d5d62e929f5a711df5f3cdd53c3bbc2ade213c212486\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon 7595c2f82ced3c58c1225073590ce18f3edd0291", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000138a79bb49b76fd6d55e5476a6618b14ffa6c31bec99969187ab1bcf6ed8d04c9000000006a473044022029952b6066b806a73b4629b4e62f20afbb806482a8daab1a9520741693d27cd902202595f6f75015fde44908940fa1345445da2f77ed2b476598b1c66618c1056bcf0121039a0b1df9b08d8ccfb4ce05e9200b28ccc52334ca943455833af5ed03685ffc72ffffffff0134b7f505000000001976a9145488ef51dd076dd349af271d0bcfe87f41c7fc5088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"moDw6ZsBenDUW2uGoYV926aHQRgMVFrfrU\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"timestamp\": null,\n \"txid\": \"7ef9e3614d77e612e40d5871929840dc7a870ea65022d1e0182dbe98f9e10a20\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"7ef9e3614d77e612e40d5871929840dc7a870ea65022d1e0182dbe98f9e10a20\"\n }\n}" } ] }, @@ -2703,21 +3243,21 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Create a stream claim without metadata", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmplrrcjagu\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmplrrcjagu", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmplrrcjagu\", \"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\": \"0100000001b0b9afab65e6c7206b02d38f35eb91fe5b6007621e4dd3974ce05b027616923a010000006a473044022049e75be8aef80bdd5506e6f41d8486e4929e15d8219d08712446c028d8676f2502204754a018f65fdaf4c252b94b9bca37e006d7792805f1438adc6d596b8336cc24012102de8cdfe610e3982d2216faeb333847e6ff10c0e9771900ab48b89d0c86cdc105ffffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e6d7576a914096f994d9d57fc82a386fe8880b16764710dd46a88ac38fb9423000000001976a914f9294aeb9903c3ce84cfc14525731170272945a488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mj78ZBXmcPQ2uRYVaRRHtY3CYC7QKSqTc6\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065728,\n \"txid\": \"3a921676025be04c97d34d1e6207605bfe91eb358fd3026b20c7e665abafb9b0\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"timestamp\": null,\n \"txid\": \"493742a13be4277789e9f26758511c05fe0d90ecf54bf70d7dd8b0a9f4ebc9ec\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4EQ1tDoSqHiKz9Ectfs7Ko222wxJbsYDv\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"493742a13be4277789e9f26758511c05fe0d90ecf54bf70d7dd8b0a9f4ebc9ec\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"493742a13be4277789e9f26758511c05fe0d90ecf54bf70d7dd8b0a9f4ebc9ec\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp6zg8pas6\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmp6zg8pas6", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp6zg8pas6\", \"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\": \"0100000001a25892f55e82464674facab3e2efb074885a7c184080966fd1e726b0fb35073e010000006a473044022072173bc40b5a95b1c6ee33d7c3387722215c4ad227dfeb633f96a7db06df92690220407d1c27210ca34103124fd5e29cf8956b9c5430807d53faf56f73153183b40a0121038f2623ad931cf4619bd477e4f9da29af0fa2e1e1cbf831504ef5906e414eb56effffffff0200e1f50500000000bab5076173747265616d4c94000a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b6d7576a9140303fe5815be5a9bbdba8e43981b5ac301f270a388ac38fb9423000000001976a914bce43b16e70715b28a7ef6994a17d657838e574f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mzrU7wb2zYC8xh7fY3JbWw8Uv4QcejsJNH\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264353,\n \"txid\": \"3e0735fbb026e7d16f968040187c5a8874b0efe2b3cafa744646825ef59258a2\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"timestamp\": null,\n \"txid\": \"480a17cb5c92a5cb775ad4b5d03cff0a66cb6189ab8fdfb579c4ffc098454e98\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mxjijscMQzGWb1pmipMpUPRnguH3a15fW8\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"480a17cb5c92a5cb775ad4b5d03cff0a66cb6189ab8fdfb579c4ffc098454e98\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"480a17cb5c92a5cb775ad4b5d03cff0a66cb6189ab8fdfb579c4ffc098454e98\"\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/tmpe5iqj3cn.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\": 1572065704, \"channel_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpe5iqj3cn.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=1572065704 --channel_id=\"771c37a00c198b81e784ee14406a81a3d11d1a92\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpe5iqj3cn.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\": 1572065704, \"channel_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001ecc9ebf4a9b0d87d0df74bf5ec900dfe051c515867f2e9897727e43ba1423749010000006b483045022100b7615ea38224ebb5bb7ab6aaeea008f219044d21cc04e75c27471c29d19c2ec3022062b438d70478107defa0e12ae5dffc8ed992deac88e53de23420427cce34a3f20121021e556d33328ed8ebea04fcae64a74f77c868527f339214a984ba8330eb1c39c9ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101921a1dd1a3816a4014ee84e7818b190ca0371c77f40b1c8ea5ae5cfc5e124e58ed5639501371f5a7c5f76f7929cdd5a3a1be453b58dfeeaa31065c6aee3d3c671f2f7b7c11272703477de6fb6c36c939132684890ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d70653569716a33636e2e706e6718632209696d6167652f706e673230812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728a8a3cfed053222080112196f945be3b9c50766d9e46a865a51db625a8307fac4ca33a9bd188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a914945be3b9c50766d9e46a865a51db625a8307fac488acac5e7d1d000000001976a914d5c43fd22f6af13803dacbcd074d3b7ea924753388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4EQ1tDoSqHiKz9Ectfs7Ko222wxJbsYDv\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065729,\n \"txid\": \"493742a13be4277789e9f26758511c05fe0d90ecf54bf70d7dd8b0a9f4ebc9ec\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mu3QP3SyXuEKqzBd7u8G68W4qPwi1CihpY\",\n \"amount\": \"1.0\",\n \"claim_id\": \"12ed4261a8538a0ae1053b26b1f763e52e806639\",\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#12ed4261a8538a0ae1053b26b1f763e52e806639\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mu3QP3SyXuEKqzBd7u8G68W4qPwi1CihpY\",\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\": \"1572065704\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpe5iqj3cn.png\",\n \"sd_hash\": \"812d10679b60acb070e03a83594a6ae0525f70eab8973f40e31efbb0d66d06f81ed2da91c0ba698629586bc3d1cd6f62\",\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\": \"n11FKZ7BKs6iMcVMYSPuApCxhA5ybQ8rc1\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"19165012a7be1e02251d1487ee2007645f53b83367ebc4bdff677b3b97186253\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwxw_wxay.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\": 1574264330, \"channel_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmpwxw_wxay.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=1574264330 --channel_id=\"eada858c84ff7473a54ed1188bcecbb1b5994283\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpwxw_wxay.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\": 1574264330, \"channel_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001984e4598c0ffc479b5df8fab8961cb660aff3cd0b5d45a77cba5925ccb170a48010000006b483045022100caae8553cbe3f9139b231121a2d81faa94330debd2f16abd69cd8ab73ed9393502203e476f82c15ed4eea973c46ca8e9f116810afd938badaae3098f3affd325b6a20121038d9712951cad1f34e89e60fff3c31a2615b98b83ecba583bd244ce08f6ef7111ffffffff0200e1f50500000000fddc01b50b626c616e6b2d696d6167654db10101834299b5b1cbce8b18d14ea57374ff848c85daea391502ec3f9bfface5e5437c3fe25708d2147a0b77a32874d1afd7c7f2e675fa87e86be663ee0869eef6adfd815cfe4909f884acb02f9283c49636af8969ef1f0ae6010a82010a306c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545120f746d707778775f777861792e706e6718632209696d6167652f706e673230506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f7267288abcd5ee053222080112196f1a7a05d837a6d774f801447be60352186bea0eb581ec0d6d188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52252a23687474703a2f2f736d616c6c6d656469612e636f6d2f7468756d626e61696c2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9141a7a05d837a6d774f801447be60352186bea0eb588acac5e7d1d000000001976a91491393678175fb83c427355d8ee1163aec43c7bcc88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxjijscMQzGWb1pmipMpUPRnguH3a15fW8\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264354,\n \"txid\": \"480a17cb5c92a5cb775ad4b5d03cff0a66cb6189ab8fdfb579c4ffc098454e98\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhvx3LUGFQseiqXSuo8tPt38o9DXXE5ZKi\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b132228e64111dab890ab8391db268a1c1a6c4e3\",\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#b132228e64111dab890ab8391db268a1c1a6c4e3\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"mhvx3LUGFQseiqXSuo8tPt38o9DXXE5ZKi\",\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\": \"1574264330\",\n \"source\": {\n \"hash\": \"6c7df435d412c603390f593ef658c199817c7830ba3f16b7eadd8f99fa50e85dbd0d2b3dc61eadc33fe096e3872d1545\",\n \"media_type\": \"image/png\",\n \"name\": \"tmpwxw_wxay.png\",\n \"sd_hash\": \"506b802c013dcab98dae3a8fbd72c8ee173af5fd10ad42e10c40ce751b659d30e77fc12018d8f88ea276e83712b0c601\",\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\": \"mtkpp5jNbnuAfZha2ZV2e9o3taMynbz6FN\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"f835cd56580c8e85620015a45e8b7d3583cafab8ac184eb0f17022991806a71f\"\n }\n}" } ] }, @@ -2750,24 +3290,104 @@ "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [ { "title": "List all your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet stream list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\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\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 1,\n \"total_pages\": 1\n }\n}" }, { "title": "Paginate your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "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\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1572065729,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\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\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": 1574264354,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\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}" } ] }, + { + "name": "stream_repost", + "description": "Creates a claim that references an existing stream by its claim id.", + "arguments": [ + { + "name": "name", + "type": "str", + "description": "name of the content (can only consist of a-z A-Z 0-9 and -(dash))", + "is_required": true + }, + { + "name": "bid", + "type": "decimal", + "description": "amount to back the claim", + "is_required": true + }, + { + "name": "allow_duplicate_name", + "type": "bool", + "description": "create new claim even if one already exists with given name. default: false.", + "is_required": false + }, + { + "name": "channel_id", + "type": "str", + "description": "claim id of the publisher channel", + "is_required": false + }, + { + "name": "channel_name", + "type": "str", + "description": "name of the publisher channel", + "is_required": false + }, + { + "name": "channel_account_id", + "type": "str", + "description": "one or more account ids for accounts to look in for channel certificates, defaults to all accounts.", + "is_required": false + }, + { + "name": "account_id", + "type": "str", + "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", + "description": "ids of accounts to fund this transaction", + "is_required": false + }, + { + "name": "claim_address", + "type": "str", + "description": "address where the claim is sent to, if not specified it will be determined automatically from the account", + "is_required": false + }, + { + "name": "preview", + "type": "bool", + "description": "do not broadcast the transaction", + "is_required": false + }, + { + "name": "blocking", + "type": "bool", + "description": "wait until transaction is in mempool", + "is_required": false + } + ], + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "examples": [] + }, { "name": "stream_update", "description": "Update an existing stream claim and if a new file is provided announce it to lbrynet.", @@ -2995,14 +3615,14 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update 06d4639a98ad7c343529553088427759e683fb1a --channel_id=\"771c37a00c198b81e784ee14406a81a3d11d1a92\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\", \"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\": \"0100000002ecc9ebf4a9b0d87d0df74bf5ec900dfe051c515867f2e9897727e43ba1423749000000006b48304502210087f4c4517d233ce40e1f1f813a1fb38ec76a4ad6332999b93df0896c45e6678b02206952b39a19c120c3e5ace18e17cbbb566a0dc73a0c6cc69ebf1ffbe4de3a74f0012102f80ddc9181a8fc9e9401806f0c0402a085480be6b65841a030580f242661761dfffffffff3d1592d6bf5ea30ffc2f8fe96584b9dabe946be827cca54bc057db732409ba5010000006a47304402205ae78ab8de5b34f87b9784db7268eb156121ee4310ad5f57968ced1c164956e7022017bf7badd5ad4c07359570165169fd8d303cbebc78a332fb9628d3795867a0bf012103c3fceea893726e3e6579fbd723fbdb5658e47bf3a019f52f211b96a445ee0b26ffffffff0200e1f50500000000fd2301b7076173747265616d141afb83e65977428830552935347cad989a63d4064ce801921a1dd1a3816a4014ee84e7818b190ca0371c77c319ec7834afe2c37a33b524594e00ef7fb835b4d9d9a75d0e01f0d547dfdf2d012d019d02a48b5cbb7f1c1dab1bb4411b6f52dc1e3b0526a26f7642ae49a5880a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d706c7272636a616775180b22186170706c69636174696f6e2f6f637465742d73747265616d32304206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e6d6d76a914096f994d9d57fc82a386fe8880b16764710dd46a88ac32a0d205000000001976a9146b8fe71d4413918b3b063cf6e266fe3a99a94f5388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"timestamp\": 1572065729,\n \"txid\": \"493742a13be4277789e9f26758511c05fe0d90ecf54bf70d7dd8b0a9f4ebc9ec\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"myngv8TWUh7JiAnEGcDc6ME9NUFyJQaY3V\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1572065728,\n \"txid\": \"a59b4032b77d05bc54ca7c82be46e9ab9d4b5896fef8c2ff30eaf56b2d59d1f3\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mgNr4oaV5EZb1GgkTp6hG38QMHik6pBWjx\",\n \"amount\": \"1.0\",\n \"claim_id\": \"06d4639a98ad7c343529553088427759e683fb1a\",\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#06d4639a98ad7c343529553088427759e683fb1a\",\n \"signing_channel\": {\n \"address\": \"mkm59HsNt5aFWW65caqt5EA2P7Cdt4YdTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"771c37a00c198b81e784ee14406a81a3d11d1a92\",\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#771c37a00c198b81e784ee14406a81a3d11d1a92\",\n \"timestamp\": 1572065728,\n \"txid\": \"d17deb4ccaa5e692bb51b04547266e95b32a9b0144cd9bba4b50df7037d994e2\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004c2a4c6250287f65adaeafb8c599b492566378911da7479f7a417599883ff7659123e346e737b9ad00c99690bb229abcdf3e39a34b28749437f864506fb50503d\",\n \"public_key_id\": \"mzWH9q8CpEZHdpVW3VDu37eQRKwtp2mtHU\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmplrrcjagu\",\n \"sd_hash\": \"4206b03fb9e9d1cf9c83a0d1413b1a299242d9aedd2838a54c48e527932e5d932c52f9c2b58f4ce8dc32c721586ade4e\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqKgz7yQfGHsMWvxvL4zP7NWKgSfz9exCr\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"2526d91622485c951d894b7bd55d231a756a907cf597f7bf2e7d86488dc91bd8\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"clear_channel\": false, \"channel_account_id\": [], \"funding_account_ids\": [], \"preview\": false, \"blocking\": false, \"replace\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update 7595c2f82ced3c58c1225073590ce18f3edd0291 --channel_id=\"eada858c84ff7473a54ed1188bcecbb1b5994283\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\", \"clear_fee\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\", \"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\": \"0100000002984e4598c0ffc479b5df8fab8961cb660aff3cd0b5d45a77cba5925ccb170a48000000006a4730440220518e930ff53216c300969f787f749909307958324c0398fd4b4e96244bad28f702202bf5889cd4e5d314505447d104ac1fbb9728b8e3d95e053fe5fa214aa71a67560121039a0b1df9b08d8ccfb4ce05e9200b28ccc52334ca943455833af5ed03685ffc72ffffffff9e5f9201341ecc5382885168f8533fa113fe201185a47e2903cb3d09eaf512eb010000006a473044022077887e6c2caaefdd30cb6a08040e76c3dff4cac347e70ca44e9ad9f8599a8568022053dac41a9a0e6d274fd6d992071af609ce746375fcbb7d1a428a24a994b17c730121037578b81a4b85b4427b50b5766f0fcea9a70bb3dd77fa8000cccad66c1fc76702ffffffff0200e1f50500000000fd2301b7076173747265616d149102dd3e8fe10c59735022c1583ced2cf8c295754ce801834299b5b1cbce8b18d14ea57374ff848c85daea8197ad276293ee21d20b350f8c8bec61bf067c9853833b06d9e8253bc3aaae327ca7b97e008ffd759ffc961090621fce9c2dd1a1541306784185f78610b0f62b0a90010a8d010a30fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd120b746d70367a673870617336180b22186170706c69636174696f6e2f6f637465742d73747265616d3230966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b6d6d76a9140303fe5815be5a9bbdba8e43981b5ac301f270a388ac32a0d205000000001976a914e7b6e8edc7dce05bea18167e7fa309e7aa2cde4488ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"timestamp\": 1574264354,\n \"txid\": \"480a17cb5c92a5cb775ad4b5d03cff0a66cb6189ab8fdfb579c4ffc098454e98\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"muH6RxFgWLFcNPuMy4eZc6n5n4teWejPEd\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"timestamp\": 1574264353,\n \"txid\": \"eb12f5ea093dcb03297ea4851120fe13a13f53f86851888253cc1e3401925f9e\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfnu773JhqhFrRJAzpFdEwTZrMLsn4SPFM\",\n \"amount\": \"1.0\",\n \"claim_id\": \"7595c2f82ced3c58c1225073590ce18f3edd0291\",\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#7595c2f82ced3c58c1225073590ce18f3edd0291\",\n \"signing_channel\": {\n \"address\": \"mn7ZojMYMgUG5dMXXcVeuzomoxEoJpwJfG\",\n \"amount\": \"1.0\",\n \"claim_id\": \"eada858c84ff7473a54ed1188bcecbb1b5994283\",\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#eada858c84ff7473a54ed1188bcecbb1b5994283\",\n \"timestamp\": 1574264353,\n \"txid\": \"1131fd1809d9f46ee7515c2b6abcaf841349c84d2b2f4ecdd7996aff5deafc44\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200048c44cca18b097f7b7d5ab265c662b2d8b1c18399482a329d2b66b0ea4bc2ca2f873942b0e8187087b30b6c71738aa4159cf713e3d53d46c52fa358f13cee1e7f\",\n \"public_key_id\": \"mpV3Pa6cX4ZpjdsfKPSRFrT3uHyuHF5r6Q\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n \"timestamp\": null,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"fdbd8e75a67f29f701a4e040385e2e23986303ea10239211af907fcbb83578b3e417cb71ce646efd0819dd8c088de1bd\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmp6zg8pas6\",\n \"sd_hash\": \"966fb7d383a230b28557540fb73f938e73a5c3e9639ad40f576cdf67667b0b027fb5e07a0426695b100f1b698fa2af6b\",\n \"size\": \"11\"\n },\n \"stream_type\": \"binary\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n2e9WAhNH4fgPqoESvvhQS31RRgSoRHkk9\",\n \"amount\": \"0.9768965\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"timestamp\": null,\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000332\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9768965\",\n \"txid\": \"c9048dedf6bcb17a186999c9be316cfa4fb118666a47e5556dfd769bb49ba738\"\n }\n}" } ] } @@ -3064,7 +3684,7 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [] }, { @@ -3120,7 +3740,7 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [] }, { @@ -3152,7 +3772,7 @@ "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [] } ] @@ -3247,7 +3867,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-10-26 00:55\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1572065728,\n \"txid\": \"677bd42ee87a97473f5d142c6f5ed3af5c3fb0f15046a1ed794296a51168c00f\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-10-26 00:55\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1572065727,\n \"txid\": \"6b3a5471731bff3602800ec4eba1a044c365b9df38bd7865cb272d6bffdb40eb\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-11-20 10:39\",\n \"fee\": \"-0.000124\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1574264353,\n \"txid\": \"c1962cea22002ef015edbe292ea8f12e5c8be70d5daace5653a9bfab74555b80\",\n \"update_info\": [],\n \"value\": \"0.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-11-20 10:39\",\n \"fee\": \"0.0\",\n \"purchase_info\": [],\n \"support_info\": [],\n \"timestamp\": 1574264352,\n \"txid\": \"215d4bbc0fb323cbe6a07e419388a09982696d52bc6f2436737113115c4446a8\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_items\": 2,\n \"total_pages\": 1\n }\n}" } ] }, @@ -3262,7 +3882,7 @@ "is_required": true } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [] } ] @@ -3299,7 +3919,7 @@ "is_required": false } ], - "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ]\n }", + "returns": " {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"total_items\": \"Total number of items.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ]\n }", "examples": [] }, { @@ -3356,12 +3976,6 @@ "type": "int", "description": "Only include transactions with this many confirmed blocks.", "is_required": false - }, - { - "name": "reserved_subtotals", - "type": "bool", - "description": "Include detailed reserved balances on claims, tips and supports.", - "is_required": false } ], "returns": "(decimal) amount of lbry credits in wallet", @@ -3524,7 +4138,7 @@ "is_required": false } ], - "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'payment'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim' or 'support', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", + "returns": " {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"nout\": \"position in the transaction\",\n \"height\": \"block where transaction was recorded\",\n \"amount\": \"value of the txo as a decimal\",\n \"address\": \"address of who can spend the txo\",\n \"confirmations\": \"number of confirmed blocks\",\n \"is_change\": \"payment to change address, only available when it can be determined\",\n \"is_mine\": \"payment to one of your accounts, only available when it can be determined\",\n \"type\": \"one of 'claim', 'support' or 'purchase'\",\n \"name\": \"when type is 'claim' or 'support', this is the claim name\",\n \"claim_id\": \"when type is 'claim', 'support' or 'purchase', this is the claim id\",\n \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\n \"value\": \"when type is 'claim' or 'support' with payload, this is the decoded protobuf payload\",\n \"value_type\": \"determines the type of the 'value' field: 'channel', 'stream', etc\",\n \"protobuf\": \"hex encoded raw protobuf version of 'value' field\",\n \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"claim\": \"for purchase outputs only, metadata of purchased claim\",\n \"reposted_claim\": \"for repost claims only, metadata of claim being reposted\",\n \"signing_channel\": \"for signed claims only, metadata of signing channel\",\n \"is_channel_signature_valid\": \"for signed claims only, whether signature is valid\",\n \"purchase_receipt\": \"metadata for the purchase transaction associated with this claim\"\n }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }", "examples": [] }, {