diff --git a/docs/api.json b/docs/api.json index 7ce4819a7..78f8872a2 100644 --- a/docs/api.json +++ b/docs/api.json @@ -49,10 +49,10 @@ "examples": [ { "title": "Get a file", - "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\"}}' http://localhost:5279/", - "lbrynet": "lbrynet get astream#70af4076385dbba0fe0b400056f407202caa057a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\"}}).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\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_name\": \"astream\",\n \"completed\": false,\n \"download_directory\": \"/tmp/tmpyqz3c__0\",\n \"download_path\": \"/tmp/tmpyqz3c__0/tmpvewkf00n\",\n \"file_name\": \"tmpvewkf00n\",\n \"key\": \"44dbf905146d75f49382c4010138014f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768:0\",\n \"points_paid\": 0.0,\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"3bcc0eec6f0fa68558ac1fa6f1b0ffef340f97e183c21d875d4c3efe67e55b4342da27fc159823cc7f7546dd22eee020\",\n \"stream_name\": \"tmpvewkf00n\",\n \"suggested_file_name\": \"tmpvewkf00n\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"written_bytes\": 11\n }\n}" + "curl": "curl -d'{\"method\": \"get\", \"params\": {\"uri\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\"}}' http://localhost:5279/", + "lbrynet": "lbrynet get astream#1defd21a89a96386cba50117c106b17620202f3e", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"get\", \"params\": {\"uri\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\"}}).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\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_name\": \"astream\",\n \"completed\": false,\n \"download_directory\": \"/tmp/tmpavk8sjxi\",\n \"download_path\": \"/tmp/tmpavk8sjxi/tmpvmlbw55r\",\n \"file_name\": \"tmpvmlbw55r\",\n \"key\": \"65019627d82a10c21dbab64e9fa43dfa\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"status\": \"running\",\n \"stopped\": false,\n \"stream_hash\": \"9f3050bf0b4dc68bb9c1644198531170d4402e454e42d5a5a92d4bc419bbc2e34f99350987d06e5e59caee0b019df1b7\",\n \"stream_name\": \"tmpvmlbw55r\",\n \"suggested_file_name\": \"tmpvmlbw55r\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"written_bytes\": 11\n }\n}" } ] }, @@ -229,14 +229,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Publish a file", - "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpedztjjmr\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmpedztjjmr", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpedztjjmr\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000129c08d88eb5cddb75075e665a0e1f2ab944131f8d5774c0a79e934debe85a9fe010000006a473044022077c8617f755c05548b1f7c97c13142b455d0423d2c6985f28be44cd414e0330702203cc7079a124e3c16589d473c29b5f0a3dabb44cd9732796e77af82967a2524f701210225daefb24c43245f72764829043965642515571f2bb61ab586e01a4e90a60799ffffffff0200e1f50500000000adb50c612d6e65772d73747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d7065647a746a6a6d72180b22186170706c69636174696f6e2f6f637465742d73747265616d3230197f373eaacede1ec960c5933669a1672b8db43282aca3f986e7f887e22d1842c60eb2847b323c0e4030afeb74a6a0d46d7576a9142786e030eefb89d4dc708873fc514e68b88461d188acf8b88523000000001976a9149809994d06f4164946626b3a6865e24487541db688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxsHYdMzW3y6xbSw7ox9w21zVzBe9DjYJS\",\n \"amount\": \"6.983769\",\n \"confirmations\": 6,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mj7xDsDR5s96h1PF55dkx2p44qUDmGPHTd\",\n \"amount\": \"1.0\",\n \"claim_id\": \"0055817871df962cfb2882d101cc5dffd4be90a0\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"a-new-stream#0055817871df962cfb2882d101cc5dffd4be90a0\",\n \"sub_type\": \"stream\",\n \"txid\": \"a51655ce27584082c5c63d6e90c2d7387b17a7b30e6dffec46055636bdc0e91b\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpedztjjmr\",\n \"sd_hash\": \"197f373eaacede1ec960c5933669a1672b8db43282aca3f986e7f887e22d1842c60eb2847b323c0e4030afeb74a6a0d4\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"muNrW9hPxp3urCwoYpUqNB9L8X5JgrHHRz\",\n \"amount\": \"5.959662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"a51655ce27584082c5c63d6e90c2d7387b17a7b30e6dffec46055636bdc0e91b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.959662\",\n \"txid\": \"a51655ce27584082c5c63d6e90c2d7387b17a7b30e6dffec46055636bdc0e91b\"\n }\n}" + "curl": "curl -d'{\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmps6sgqacs\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet publish a-new-stream --bid=1.0 --file_path=/tmp/tmps6sgqacs", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"publish\", \"params\": {\"name\": \"a-new-stream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmps6sgqacs\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001431f5f6c1f5d315b14dee817b1f5f5d6d3fdab394a1d28d1f0a78c3f53958801010000006b48304502210091d3070416490251b5433c15c44ef4ac2844095908c1215e671609cee905a58b0220212328a7b5a227bbd762817dc8714e57dcf5c1e5c9a25f963b1529d0e3dd448b012103566d35292027c20dc5d7b6aef3fba9b589b69dc72acb402384303991e3e55336ffffffff0200e1f50500000000adb50c612d6e65772d73747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707336736771616373180b22186170706c69636174696f6e2f6f637465742d73747265616d3230580cde578b75a11198e2e2db7fac03597e71b6b521233cdcdcdf3374703e6a7ec14c58ecc4fba51066c53785f3e12f756d7576a914c0daa920a11fc2e9a83831c13e811eb4038379af88ace0b46217000000001976a9140bf7ca09417edbbbc7555d2ebeef6408126fe62a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"muDh8dsiAqy5RA3kKq4R1Jwg84SPZgtQeh\",\n \"amount\": \"4.947555\",\n \"confirmations\": 4,\n \"height\": 215,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"my6fyhD4r3mVsEoGhtP3Sqn17GxhhT5Uv5\",\n \"amount\": \"1.0\",\n \"claim_id\": \"475d897921b32f71d18553194e085fc05923afb7\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"a-new-stream\",\n \"nout\": 0,\n \"permanent_url\": \"a-new-stream#475d897921b32f71d18553194e085fc05923afb7\",\n \"txid\": \"06ef46a27df161787bf62b72aca8c52f3b448061739d5b3f0b9b050946167c7c\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmps6sgqacs\",\n \"sd_hash\": \"580cde578b75a11198e2e2db7fac03597e71b6b521233cdcdcdf3374703e6a7ec14c58ecc4fba51066c53785f3e12f75\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mgcEZrppf4xbQyBUxLnAYLte71PgMGs28m\",\n \"amount\": \"3.923448\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"06ef46a27df161787bf62b72aca8c52f3b448061739d5b3f0b9b050946167c7c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.024107\",\n \"total_input\": \"4.947555\",\n \"total_output\": \"4.923448\",\n \"txid\": \"06ef46a27df161787bf62b72aca8c52f3b448061739d5b3f0b9b050946167c7c\"\n }\n}" } ] }, @@ -255,10 +255,10 @@ "examples": [ { "title": "Resolve a claim", - "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#70af4076385dbba0fe0b400056f407202caa057a\"]}}' http://localhost:5279/", - "lbrynet": "lbrynet resolve astream#70af4076385dbba0fe0b400056f407202caa057a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#70af4076385dbba0fe0b400056f407202caa057a\"]}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#70af4076385dbba0fe0b400056f407202caa057a\": {\n \"certificate\": {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 3,\n \"effective_amount\": \"1.0\",\n \"has_signature\": false,\n \"height\": 210,\n \"hex\": \"00125a0a583056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597420b4e6577204368616e6e656c\",\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"supports\": [],\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"valid_at_height\": 210,\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"claim\": {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 212,\n \"hex\": \"01bd7f0813864188e9b2018c68858ea86a3e90aecee46e57b139165fddc382a7f502edc7a07b675130a4435cb15726d189ae5768f31be20e8db061c5fe1ae3b7231e0e8bb2c7100587f018c44aa1d55ba245750ff80a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707665776b6630306e180b22186170706c69636174696f6e2f6f637465742d73747265616d32307b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"valid_at_height\": 212,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n \"claims_in_channel\": 0\n }\n }\n}" + "curl": "curl -d'{\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#1defd21a89a96386cba50117c106b17620202f3e\"]}}' http://localhost:5279/", + "lbrynet": "lbrynet resolve astream#1defd21a89a96386cba50117c106b17620202f3e", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"resolve\", \"params\": {\"urls\": [\"astream#1defd21a89a96386cba50117c106b17620202f3e\"]}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"astream#1defd21a89a96386cba50117c106b17620202f3e\": {\n \"certificate\": {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 7,\n \"effective_amount\": \"1.0\",\n \"has_signature\": false,\n \"height\": 210,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"protobuf\": \"00125a0a583056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033420b4e6577204368616e6e656c\",\n \"supports\": [],\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"valid_at_height\": 210,\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"claim\": {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 3,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n }\n },\n \"claims_in_channel\": 0\n }\n }\n}" } ] }, @@ -280,7 +280,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 \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"4uYYdtcGtPeEYMmB6bfFQawQCaR2zSotPASrY8eJr9UwmZQKe6R3me8SMzW1DCzrwc\",\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\": \"38b7725637b9b870bc679e7650feb17098574f35a949ba9d378521546a97bf67\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"blob_manager\": {\n \"finished_blobs\": 0\n },\n \"connection_status\": {\n \"code\": \"connected\",\n \"message\": \"No connection problems detected\"\n },\n \"installation_id\": \"866L4vBxRcQSuCdrNM9Fh81juyTdBuk7b5Y354C3vWxHQeCRyanYv1225VVvQ9LPHR\",\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\": \"328106ce4af29915212ab1fd00b8f2dd4e302dc9dee8b72496e682889c751690\",\n \"blocks\": 206,\n \"blocks_behind\": 0,\n \"is_encrypted\": false,\n \"is_locked\": false\n }\n }\n}" } ] }, @@ -302,7 +302,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.36.0rc1\",\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.2\"\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.36.0rc3\",\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.2\"\n }\n}" } ] } @@ -350,10 +350,10 @@ "examples": [ { "title": "Add an account from seed", - "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\", \"single_key\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet account add \"new account\" --seed=\"tilt arm tent canal barely same equal amateur year still shoulder know\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\", \"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\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555818980.6047785,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPet8Vmrybx3H8ahBP4iyrxppNg2iweUr1scP6t5KJqsBBoZ7VodS6MmdPVaD8wu9ex5eSH3dA52gyzCHJmE9BerZznoEmVz5\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YMAHfWeCMSwF9ihKE4AmY8R9xYmF4keQi6dsWU8u2Mo3ygE1uN2tqjYdZACiAsUK3mJ9QB6CTrxdrdrYHKXNAiJdgGGjP4o\",\n \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\", \"single_key\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet account add \"new account\" --seed=\"rubber slim craft narrow arrest draw car pledge grace sample flower sight\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_add\", \"params\": {\"account_name\": \"new account\", \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\", \"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\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555896515.009373,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeaYDYpcL1Dj9k9QJ3mNSp9YRZnp2vx97TxqUQabNv3zcpyEaSPwKPR57k7Sno3sHqB3LaKT7zymKJxRtdeXyBzTVSZY2TFT\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y3a1SUGvQdPGKAvED6ZMPT9CrJrLMDwWJT6F2yQy6YcV15eFLDP7tuCdWMGjD1qxTZ7GcPwYapNWKbC6HwSSZEpCbCGWKfp\",\n \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\"\n }\n}" } ] }, @@ -385,9 +385,9 @@ }, { "title": "Get balance for specific account by id", - "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account balance \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}).json()", + "curl": "curl -d'{\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account balance \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_balance\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"2.0\"\n}" } ] @@ -416,7 +416,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\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555818980.469442,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPet8Vmrybx3H8ahBP4iyrxppNg2iweUr1scP6t5KJqsBBoZ7VodS6MmdPVaD8wu9ex5eSH3dA52gyzCHJmE9BerZznoEmVz5\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YMAHfWeCMSwF9ihKE4AmY8R9xYmF4keQi6dsWU8u2Mo3ygE1uN2tqjYdZACiAsUK3mJ9QB6CTrxdrdrYHKXNAiJdgGGjP4o\",\n \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\"\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\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555896514.8154976,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeaYDYpcL1Dj9k9QJ3mNSp9YRZnp2vx97TxqUQabNv3zcpyEaSPwKPR57k7Sno3sHqB3LaKT7zymKJxRtdeXyBzTVSZY2TFT\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y3a1SUGvQdPGKAvED6ZMPT9CrJrLMDwWJT6F2yQy6YcV15eFLDP7tuCdWMGjD1qxTZ7GcPwYapNWKbC6HwSSZEpCbCGWKfp\",\n \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\"\n }\n}" } ] }, @@ -489,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Transfer 2 LBC from default account to specific account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\" --amount=2.0 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001506740365f55bf33bcf18eedd83df9f55b2703c82848c54bd684eaaeb6a4c585010000006b483045022100b47a14eb35fbd28eeb8a06c6ee4c68c940652f36788ae5230737207f7cfe1342022038cf28a6aeb37ff929c5f5308319d46707fff3270f3d998f354889e9af5806e90121039e85c000587444837d66e12e11aa501e27abfcff419ef56e550aef0645108c33ffffffff0200c2eb0b000000001976a91476c53849b1fc46c48c2608a576a870dadbe7ecc688ac90d7ae2f000000001976a9141e004ae78ae66e171f0fe7b1fabc8a2cc8fb0c4e88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mpFErYoPr4vQGkehF4n4j6K3t3Z1Jmde7u\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"85c5a4b6aeea84d64bc54828c803275bf5f93dd8ed8ef1bc33bf555f36406750\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mrLxHmSrMJ2sy21YzCCxpJ1xMH6FcD9XYe\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"miFav91GxdfuvqJBrwVE3xa51Ljnhdh9CQ\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\" --amount=2.0 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"amount\": \"2.0\", \"everything\": false, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000185f4df9cfa65c8647ac73a114f482beba93b3839b3df52d80741b1b00709d53a010000006b483045022100e0a54e9402ee946313693f227cac9851f9e66faf6be2540a917834032ff9fe03022046672d710c4e7f98f6c545398100c54e72c2a353f758816467466980f1d20478012103b5aeb9f2bb13eeb592cf94a7036bca5d80306eb04abb9115a63c7d6d1c41f2d9ffffffff0200c2eb0b000000001976a914187e56a16d79e6275124eaa2cc677da86b72decf88ac90d7ae2f000000001976a9145218f93aa85e57c3e678ef11dce489b38cad29ef88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n1PjKDfkb2piYAFKpptFo51qgQ658LD2oF\",\n \"amount\": \"10.0\",\n \"confirmations\": 6,\n \"height\": 201,\n \"is_change\": false,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"3ad50907b0b14107d852dfb339383ba9eb2b484f113ac77a64c865fa9cdff485\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mhkTroaeYmLWa6jA7Y4ywNTXVmrvt9jz9p\",\n \"amount\": \"2.0\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mo13cycUZChFzLoDGstCKQpHKrTV8MBwUM\",\n \"amount\": \"7.999876\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000124\",\n \"total_input\": \"10.0\",\n \"total_output\": \"9.999876\",\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\"\n }\n}" }, { "title": "Spread LBC between multiple addresses", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"from_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --to_account=\"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\" --from_account=\"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\" --amount=1.5 --outputs=2 --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"from_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010b5d9576bb58395cc7d8e2c6ff0e9269080b85ab2bebc6c906e4d45ae3082e32000000006a473044022027556d2dc9851a23f32388bae939b9dcb3bbbc0eada13a6893c11e2c732a22bb022042cdc0a1bc55f6554b5ab178aa5f8563c97c685b2abed8ab2100b5a6fba2dc170121031a13d4232d833e36e9628ad9d350c4b4ca5dae5be868107acdcee81fcf34f260ffffffff03c0687804000000001976a91439a646471e0dbbda463b75d03990ff788a4d4b7e88acc0687804000000001976a91439a646471e0dbbda463b75d03990ff788a4d4b7e88ac6cb9fa02000000001976a91467a44a1754a495f27ecced12c32e2bb3e2adcb0c88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mrLxHmSrMJ2sy21YzCCxpJ1xMH6FcD9XYe\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mkmmzwkKApoCne9ffHz3af42qxCANjkSPf\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkmmzwkKApoCne9ffHz3af42qxCANjkSPf\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mpxxhqkxd1dUvZc9Lm8ZJRDT8EyakqAuhq\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"from_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --to_account=\"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\" --from_account=\"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\" --amount=1.5 --outputs=2 --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"to_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"from_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"amount\": \"1.5\", \"everything\": false, \"outputs\": 2, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017bf99c4d2127690a2117d5bed8278c2e8c848fae21732a7778c48ff71157026f000000006b4830450221008bf842a1d932272bfaa31bcd329eb67ce4d13053bd16c6b4100e0fdc713b568302202d1454324523ea8c6780853579d6ae566615c05c3a0e1e229154382bff064c1f012102cf5c5f7ce4b4e213b21f1ce2e1af1135d9728213725df80dc528e71134167fddffffffff03c0687804000000001976a914b8abe8c2545011c6552212222cce95fb2068736688acc0687804000000001976a914b8abe8c2545011c6552212222cce95fb2068736688ac6cb9fa02000000001976a914b8abe8c2545011c6552212222cce95fb2068736688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mhkTroaeYmLWa6jA7Y4ywNTXVmrvt9jz9p\",\n \"amount\": \"2.0\",\n \"confirmations\": 1,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.75\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.499859\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 2,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000141\",\n \"total_input\": \"2.0\",\n \"total_output\": \"1.999859\",\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\"\n }\n}" }, { "title": "Transfer all LBC to a specified account", - "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", - "lbrynet": "lbrynet account fund --from_account=\"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\" --everything --broadcast", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"everything\": true, \"broadcast\": true}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000359bcae96a079c08e28f899e83608dc045d7464da01594438712b0955f09817f8020000006b483045022100a9a35567e2d349da24b180dd05962eb3de355f35835300b31ebaa56f3858b1fa02205926bfe9e02015c799590553edbc81c7b23ced91d9e0ef69e1d1f1fb40cd08df0121026306f10c42aec2d019852cfe6ff2277cb0bb0876461f677b496c5d3e0bd83c21ffffffff59bcae96a079c08e28f899e83608dc045d7464da01594438712b0955f09817f8000000006b483045022100e5b763984e87a60c37fb6808c16a01de08de210f789ae5c6b872afd9856d892d022020f50ae67eebdb74f839fbbce68874fead14e49f796cd2f49c57ae2b2fbd0241012102fbed94068fd5d14ac6729ece5a5f6605e2f7b8b279c8bbddb8e4ef2f72100e10ffffffff59bcae96a079c08e28f899e83608dc045d7464da01594438712b0955f09817f8010000006a473044022033b2c9b8b99c161518fae0dec1990e312f2902ca1e4124e129eb548f4bbf1969022047f5bc5616790d4af0c2ac5fc3a70c1b786d15dac4c4f9756ecb41e668d814ab012102fbed94068fd5d14ac6729ece5a5f6605e2f7b8b279c8bbddb8e4ef2f72100e10ffffffff015027eb0b000000001976a9147f1b577cd3418bf27b2cf928dea222551f2c221a88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mpxxhqkxd1dUvZc9Lm8ZJRDT8EyakqAuhq\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkmmzwkKApoCne9ffHz3af42qxCANjkSPf\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mkmmzwkKApoCne9ffHz3af42qxCANjkSPf\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"f81798f055092b7138445901da64745d04dc0836e899f8288ec079a096aebc59\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"ms72s9utcQbEPnPommZ8xh1LxhkebmboM8\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"efa06c71b1bab801e10dcc107e97fb5041cd8d8d51c705c31b9910dc1f211b71\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"efa06c71b1bab801e10dcc107e97fb5041cd8d8d51c705c31b9910dc1f211b71\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"everything\": true, \"broadcast\": true}}' http://localhost:5279/", + "lbrynet": "lbrynet account fund --from_account=\"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\" --everything --broadcast", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_fund\", \"params\": {\"from_account\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"everything\": true, \"broadcast\": true}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000030abb50c7b39d8daa71b6cde2f83b06368d254f07fcc7e0c8e65f55577911fec7000000006a47304402200138ece1837d8a7c6459357e2e465b605b26debe50ec4b5d1fc0b8618ae2528e022065092d03985a1f9aea1801e7ccbaba9c5c18eabd577d35f27147c6b2376ec0d4012103c40084c3c77516edcd2b530e1593b172229f8099817d459583cd4db59a679fc6ffffffff0abb50c7b39d8daa71b6cde2f83b06368d254f07fcc7e0c8e65f55577911fec7010000006a473044022060c0cd12cef457918fe597659715adb91de9e647cb64fa48d856cd19c2cfe7c3022062db8e0b6ee545c63bc0d13887fa1f25410793c97826a30d6d99a24b276f87ee012103c40084c3c77516edcd2b530e1593b172229f8099817d459583cd4db59a679fc6ffffffff0abb50c7b39d8daa71b6cde2f83b06368d254f07fcc7e0c8e65f55577911fec7020000006a47304402203e93149f3e5130064d99144cc795164d341c7737f3c2d332dfd7629e7fd8960102201ff58fcbd9da336b5af1cee5ca8cd8a45102ffe59d50976fdf5916664351cba8012103c40084c3c77516edcd2b530e1593b172229f8099817d459583cd4db59a679fc6ffffffff015027eb0b000000001976a91462e199cd08c64a2d83065f7f29594e20780ab3f188ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.75\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n },\n {\n \"address\": \"mxMQZp5UnLmBRYLHbQGj6ZPfi872bDcKjr\",\n \"amount\": \"0.499859\",\n \"confirmations\": 1,\n \"height\": 208,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 2,\n \"txid\": \"c7fe117957555fe6c8e0c7fc074f258d36063bf8e2cdb671aa8d9db3c750bb0a\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mpXnmsTQB5BgC2CqUVzge7B3LjY629mxy2\",\n \"amount\": \"1.999604\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"a71a5799732a7b793d3cfa60d163ea71ae071544b49ab6bddb40bf7068dfb146\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000255\",\n \"total_input\": \"1.999859\",\n \"total_output\": \"1.999604\",\n \"txid\": \"a71a5799732a7b793d3cfa60d163ea71ae071544b49ab6bddb40bf7068dfb146\"\n }\n}" } ] }, @@ -550,7 +550,7 @@ "curl": "curl -d'{\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}' http://localhost:5279/", "lbrynet": "lbrynet account list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_list\", \"params\": {\"include_claims\": false, \"show_seed\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"mhuyLCoseuom9LNqgVXbws2fkKAs1vDRuX\",\n \"is_default\": true,\n \"name\": \"Account #mhuyLCoseuom9LNqgVXbws2fkKAs1vDRuX\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WaLcDunS5QyfbMRCiiG1AVv737HvPbXRFm3UrfBWb1JuxKRFUJ88VG12JEbWzNkF1v8mnaYZYbCB7HU9Ut34f7uM74fMZPc\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"lbc_regtest\": [\n {\n \"address_generator\": {\n \"change\": {\n \"gap\": 6,\n \"maximum_uses_per_address\": 1\n },\n \"name\": \"deterministic-chain\",\n \"receiving\": {\n \"gap\": 20,\n \"maximum_uses_per_address\": 1\n }\n },\n \"certificates\": 0,\n \"coins\": 10.0,\n \"encrypted\": false,\n \"id\": \"miR2cTDuvcA6RbXXQESuw8vvKreNsuY8sy\",\n \"is_default\": true,\n \"name\": \"Account #miR2cTDuvcA6RbXXQESuw8vvKreNsuY8sy\",\n \"public_key\": \"tpubD6NzVbkrYhZ4WqLk5uiqCwGGX97drQgfqq3V6wLtsWaD3twtxeNXJLLtJV15yGcxmUqg8p2XzTyF8p874Yduct8o3zpMoCtgzVrYSopngUC\",\n \"satoshis\": 1000000000\n }\n ]\n }\n}" } ] }, @@ -597,10 +597,10 @@ "examples": [ { "title": "Remove an account", - "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}' http://localhost:5279/", - "lbrynet": "lbrynet account remove mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}).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\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555818980.469442,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPet8Vmrybx3H8ahBP4iyrxppNg2iweUr1scP6t5KJqsBBoZ7VodS6MmdPVaD8wu9ex5eSH3dA52gyzCHJmE9BerZznoEmVz5\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YMAHfWeCMSwF9ihKE4AmY8R9xYmF4keQi6dsWU8u2Mo3ygE1uN2tqjYdZACiAsUK3mJ9QB6CTrxdrdrYHKXNAiJdgGGjP4o\",\n \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}' http://localhost:5279/", + "lbrynet": "lbrynet account remove n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_remove\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}).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\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555896514.8154976,\n \"name\": \"generated account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeaYDYpcL1Dj9k9QJ3mNSp9YRZnp2vx97TxqUQabNv3zcpyEaSPwKPR57k7Sno3sHqB3LaKT7zymKJxRtdeXyBzTVSZY2TFT\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y3a1SUGvQdPGKAvED6ZMPT9CrJrLMDwWJT6F2yQy6YcV15eFLDP7tuCdWMGjD1qxTZ7GcPwYapNWKbC6HwSSZEpCbCGWKfp\",\n \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\"\n }\n}" } ] }, @@ -621,7 +621,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [] }, { @@ -675,10 +675,10 @@ "examples": [ { "title": "Modify maximum number of times a change address can be reused", - "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", - "lbrynet": "lbrynet account set mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c --change_max_uses=10", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\", \"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\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555818980.6639612,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPet8Vmrybx3H8ahBP4iyrxppNg2iweUr1scP6t5KJqsBBoZ7VodS6MmdPVaD8wu9ex5eSH3dA52gyzCHJmE9BerZznoEmVz5\",\n \"public_key\": \"tpubD6NzVbkrYhZ4YMAHfWeCMSwF9ihKE4AmY8R9xYmF4keQi6dsWU8u2Mo3ygE1uN2tqjYdZACiAsUK3mJ9QB6CTrxdrdrYHKXNAiJdgGGjP4o\",\n \"seed\": \"tilt arm tent canal barely same equal amateur year still shoulder know\"\n }\n}" + "curl": "curl -d'{\"method\": \"account_set\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"default\": false, \"change_max_uses\": 10}}' http://localhost:5279/", + "lbrynet": "lbrynet account set n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y --change_max_uses=10", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"account_set\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\", \"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\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\",\n \"is_default\": false,\n \"ledger\": \"lbc_regtest\",\n \"modified_on\": 1555896515.0629683,\n \"name\": \"new account\",\n \"private_key\": \"tprv8ZgxMBicQKsPeaYDYpcL1Dj9k9QJ3mNSp9YRZnp2vx97TxqUQabNv3zcpyEaSPwKPR57k7Sno3sHqB3LaKT7zymKJxRtdeXyBzTVSZY2TFT\",\n \"public_key\": \"tpubD6NzVbkrYhZ4Y3a1SUGvQdPGKAvED6ZMPT9CrJrLMDwWJT6F2yQy6YcV15eFLDP7tuCdWMGjD1qxTZ7GcPwYapNWKbC6HwSSZEpCbCGWKfp\",\n \"seed\": \"rubber slim craft narrow arrest draw car pledge grace sample flower sight\"\n }\n}" } ] }, @@ -722,9 +722,9 @@ "examples": [ { "title": "Check if address is mine", - "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address is_mine mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\"}}).json()", + "curl": "curl -d'{\"method\": \"address_is_mine\", \"params\": {\"address\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address is_mine miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_is_mine\", \"params\": {\"address\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -759,14 +759,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 \"miFav91GxdfuvqJBrwVE3xa51Ljnhdh9CQ\",\n \"ms72s9utcQbEPnPommZ8xh1LxhkebmboM8\",\n \"mu1oM4wC1KAYD9LJMdMXxHdmvagfCVM8yg\",\n \"mijc1SWk3w2w2f8Gtj6QUwT7DzijJRDYhv\",\n \"moqryXTjZNZmfJfDoc6wMZyDz4Cgxux6yr\",\n \"mxsHYdMzW3y6xbSw7ox9w21zVzBe9DjYJS\",\n \"mpFErYoPr4vQGkehF4n4j6K3t3Z1Jmde7u\",\n \"mpMtjiBW6nMfUpovUHtRFLMzU3e1rjbVpY\",\n \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"mfwWJ3WxpZroEig9GkDAnoLGfE9GnDN89t\",\n \"mwoJy1fSQncKmEVAbF5PainTJnYJ7D7Nqc\",\n \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"mnJ28rQkzSEzqq5oLz63JFNXD1Yrg89QMS\",\n \"n2ETGpUd7XuQuRv46XaYzYCvsDd25S7nWT\",\n \"mj7xDsDR5s96h1PF55dkx2p44qUDmGPHTd\",\n \"mrBqoJ6bXSAwYGeK5pwsZ56RB14uAuoV5w\",\n \"n3L6o1D9W8yjTkNEjLVrYxEcEniESBEgMS\",\n \"n4dQD4mzJMBV3f7QedfqhJU9uqcs8Zuf62\",\n \"mzxbaeqnUENP1cH8AKgiw9vo3FJaYGbPaN\",\n \"mo5TpqwNNzPCLoxnjw7qRo5FJmFBUzY43r\",\n \"n2kgkQcsQnJZw2bd2fjEkJgud3vWeibGUg\",\n \"mg1zzkjempX9BjwVghNNesqKxCcqR6prGe\",\n \"n2b3FJP2rqsUYdd6d61ReZvGKxsJ16NzGV\",\n \"mqp4PY2QX23JRrQBCtnyuX3apds1ZATYNA\",\n \"mfpTkn9LMBWdQhzs6ebsoxA6fFJVdtweoc\",\n \"n4GHZV5wPHTLBECP7rsyrMf5yXYPBKuU2x\",\n \"mtmysME18wkZaBKLAXVAnBSHKKMtKTwHcb\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"mwCrSjFCeSFJTH4oLZ5VCmSzNUqKcMzoKE\",\n \"my7JJgMSHjNi8siGSq56uHGBbBKFF8oFKh\",\n \"mo13cycUZChFzLoDGstCKQpHKrTV8MBwUM\",\n \"mizWwPvEQ2MDDPYvDn5ZuU4jsrfR5uB8i2\",\n \"muDh8dsiAqy5RA3kKq4R1Jwg84SPZgtQeh\",\n \"ms92c1ELPBwsATUnKrX1SBzgaFShQaHmci\",\n \"n1PjKDfkb2piYAFKpptFo51qgQ658LD2oF\",\n \"my6fyhD4r3mVsEoGhtP3Sqn17GxhhT5Uv5\",\n \"mnXkrfRVZiV9wVBK6LcVvpLE6JK1UrV5nf\",\n \"mvbxyK9bYa7spijiyqNoXK73XKZ62TCdsb\",\n \"musLJV8LaNCpN5nbMqR2t4LSapZfqviqd6\",\n \"mpwRqd4tV2hYadsDVJMHtYun6tLikMvmDm\",\n \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"n3c3rBadMv6EPsJkQFNBgYUqvBZaHLX5xG\",\n \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"mfjaeQ9w6KgJu4xRJQi8kUeGJasY3Pt95v\",\n \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\",\n \"mkQUMW4bc139pwanCT1WnAfLBv1bMYcQbM\",\n \"mi5xJe7JhMisgzUxHQhMop7f9CHHeEXvh3\",\n \"mw9anBoBXkfq13WFyzCu6E7RgkAwH1vBpU\",\n \"mfkEpaNtqhGQpzd5kGMwDVVaLKjeUZix4R\",\n \"moBMxUtRs4BVqtiXccp5uHLJJTbV3zJ6Nm\",\n \"n1Q9q9eAM4wgoeJopgCJwMfqe58d6NVsWb\",\n \"mvwuQAzD7mddzPavT7tRMrxouoWf1y6v7U\",\n \"mmcjdrSrj6jVwKA3PeCqzVcPqNQ5jsPp7Y\",\n \"mtcqf82LRiHbix57zWMew7FCNaaL3axSYZ\",\n \"n3ryRh7UJjuF7AZ3J28YRegqZmc2CG3fJs\"\n ]\n}" }, { "title": "List addresses in specified account", - "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}' http://localhost:5279/", - "lbrynet": "lbrynet address list --account_id=\"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"mvzMHLMTcJy2P9AvukWmNNfPBoviCuv13c\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"monTPcFivBM7E4XkCLPKjMhdKtq9LSwKVn\",\n \"n42yAXj8XvkF7yuzqd2qXFjeV3psLZRojf\",\n \"mvcV1zBcq2VxYkjvXHiJVnfqXFCbxAc95Z\",\n \"mnGGgHnfuVpriGY3LADa4dttrborpjv9PE\",\n \"mxHn4LjA2EJUbeqngbmudt3EXrVwZTvpXG\",\n \"mrh4BWFrmsWczh44Ajmx9e4RW3KeWRtzD6\",\n \"mmTTccma1iZUG32EmL6si3AMvpFEgnp9Vj\",\n \"mioYEF1ygrrdEAAxGueygvPekFpvRcYGXS\",\n \"mkarumLDBB9HM97buKgVqEpwCFiLdj9JdC\",\n \"miKKTr9t98JAgQEK31XndsFcSa61vM7aic\",\n \"mpCyi8HBUDsR8FsHRWhbEBp3cmzbHLvUS4\",\n \"mwTY9nRtQ66UGMc8EG5z3f2gHedZk8rtjr\",\n \"mxHPDmRihDCJnPJnQ1HDyGN7aw8UuEpFT4\",\n \"mrKXZRTnMXdJLoT4WmNZeNragNnA7jwrRv\",\n \"n1KkY1Cech1uZr9qhY4Xwv1iLtfFAFEZ5k\",\n \"n4U1ZVAtZtpYivZ7cEQeXyz2DYfusoypPe\",\n \"mtdsfTWEb9ss6qynCjr4hutM6fxcdX5NTU\",\n \"mooJ4j2vwMzBCiscHKNXV9zn4AH22mZcTj\",\n \"moHXKBPc5iHLk2Jd2mRgYrv9ReHC9pVVAY\",\n \"mwaNnv8ArmKuNYCUeErYyavoJSmhkeDAJR\",\n \"mrLxHmSrMJ2sy21YzCCxpJ1xMH6FcD9XYe\",\n \"mxhxQpqmFvt64VQL1LqRuwxVuB2HH8mR2D\",\n \"mmjrPBKV3bFHDEEcu2SWktKSE5eSkuUmyB\",\n \"mxG6Rn8tmEvJhnWqSdr1YyKhQeNwxifhMo\",\n \"mpxxhqkxd1dUvZc9Lm8ZJRDT8EyakqAuhq\",\n \"mkmmzwkKApoCne9ffHz3af42qxCANjkSPf\"\n ]\n}" + "curl": "curl -d'{\"method\": \"address_list\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}' http://localhost:5279/", + "lbrynet": "lbrynet address list --account_id=\"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"address_list\", \"params\": {\"account_id\": \"n4rCoR6csUGwSk74UCnemrpaoReuaGiG6Y\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"n2SNes984ovgEhr5RwK2tR3vfg9fh1ffFB\",\n \"mk5j1cphE7MDnHjQ9hsbebasdnihpeWkoN\",\n \"mjKzKNXS6kQ2aGCnZJQNJ5pkAs9D6WAazY\",\n \"mpky5FeXchgLKhm4J1gcUnEA941Gkj1BFf\",\n \"mhkTroaeYmLWa6jA7Y4ywNTXVmrvt9jz9p\",\n \"n3KzDXVNwuBw5Rk7RmUhnULxJppMsC5Yb3\",\n \"mqWwCeLSdKJarWyYEqCJGrw8R23AdZNAu7\",\n \"n4U5xrwZNgPbk17FrG6gmMmmS3uSKyR94J\",\n \"myCV9nEZXR4sDTANdWaYTyr9PGpfFkPsDX\",\n \"mi5CZeWy2FDwnya8ppjHaVxqDthwakdq21\",\n \"msJQBbZsRBJTCnGhNBQS78hTYxY3tt5AZ6\",\n \"mwFXHeWcd2vuQQeMFx65i1EcCkEsfHzxrk\",\n \"mntccx5CXqA3q7cph75GSrW2Ux6L32cj3R\",\n \"mo9D1Z9mQu6YDR2TDGeEBFsLuLyBNkm7AL\",\n \"mqk91rsLT32cAczkdH8dThrMhUuN5hdHvz\",\n \"n2nnA5vnG3u7UhXZ4fALp75YNewj6Ltp1E\",\n \"mp5YLe4dFfHu77BWAGurWhm258ytNudvw9\",\n \"n1L5YGkFnsLdYPB1sXAymrqsW2GaKpvuuT\",\n \"mtfYoryQowgiWtriYsFyGRYvWppYyuuhXH\",\n \"msBnGd8T3sDf4ZHZzPrBLFMSZhPMSijgDe\",\n \"mqr28HeWPf9RmyKZgHootiWhvvxuzokzmW\",\n \"n4dfmCgztKUmJAk7g24euaG8wUajndWQ6b\",\n \"minFAWn2Pa5uz82FKeUZuaqETr2huSK3tk\",\n \"mxzKuUwLjDdNgYpGcR7FzKcxvcJzTXk4m8\",\n \"mgker7EAMyq6pCzkXSy2u1BkccaG1xMAd5\",\n \"mjNsA6AJWEGv8oBQF4ocajvPhrLCN9iCVQ\"\n ]\n}" } ] }, @@ -788,7 +788,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\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\"\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\"\n}" } ] } @@ -838,10 +838,10 @@ "examples": [ { "title": "Delete a blob", - "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"4f9784f06bc5f2641c0f585683a294c4110ec90313bca1c0516723bbc0eec9139037090044c1daa81ff123ed6c76f3ce\"}}' http://localhost:5279/", - "lbrynet": "lbrynet blob delete 4f9784f06bc5f2641c0f585683a294c4110ec90313bca1c0516723bbc0eec9139037090044c1daa81ff123ed6c76f3ce", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"4f9784f06bc5f2641c0f585683a294c4110ec90313bca1c0516723bbc0eec9139037090044c1daa81ff123ed6c76f3ce\"}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted 4f9784f06bc5f2641c0f585683a294c4110ec90313bca1c0516723bbc0eec9139037090044c1daa81ff123ed6c76f3ce\"\n}" + "curl": "curl -d'{\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\"}}' http://localhost:5279/", + "lbrynet": "lbrynet blob delete e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"blob_delete\", \"params\": {\"blob_hash\": \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\"}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": \"Deleted e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\"\n}" } ] }, @@ -919,7 +919,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 \"4f9784f06bc5f2641c0f585683a294c4110ec90313bca1c0516723bbc0eec9139037090044c1daa81ff123ed6c76f3ce\",\n \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\"\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\",\n \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"7524279f9af737aef758cf5f63c238c2f629aac8a6b28f911de2a69e3bb151a72f6dfdf2cc6097f182da565522da5c5e\",\n \"f04b84f4b64e97e00e2db6ce358dceaa431c4cfa5769afe7420645ba09ff9bc467cdcc5ee15e4bba84ea1649cbeb0beb\"\n ]\n}" } ] }, @@ -990,14 +990,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Abandon a channel claim", - "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel abandon ceae903e6aa88e85688c01b2e988418613087fbd", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000198c0b7f5f36c1f1b84a004d5b0d6ee746945d9406e66840a8d416927e33bd325000000006b483045022100bd808f43469b732afde15f710ee966b2fe30002eeb52779dc0e234f6d587230102207631014884b1e7f6499afb39ba4c08f8881ff4d83a51dc088beb0e40c72bd0b5012103f3f47961721802cc99c2a3953f45dc43468b062ffb70a6f6480b33095172f7adffffffff0134b7f505000000001976a914223eccf965026fa49f3608f3380ef345b766791688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"update\",\n \"confirmations\": 4,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mie2W3WNWFtaDU8Zv4tPdWfv7kdEKAuhjZ\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"957e8a74d5dc16faff74447ef5c1a43c5507053066aacd2c95bd3cd0e69a003a\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"957e8a74d5dc16faff74447ef5c1a43c5507053066aacd2c95bd3cd0e69a003a\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel abandon d911fb6eeb61320de1cc602ca57453c729f78b11", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_abandon\", \"params\": {\"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001cf5cb5977201ef738a0c081071426f037a98cf454f5a99b56a85b0e2438783cd000000006b483045022100d0e65dc1597960254579a931ff3d1cd180e9e26e46627a2cddf5ff1e42ad3e1902203aacf3f6996b71420e33fa514eaf2c62b58f3adaa6663399517458b1ce15295b012102321e96c9dd08f649b76798dade0b368589dd18edb37395a8decf9de802d81658ffffffff0134b7f505000000001976a914b07092e146c1412554ec4362ccaf5da3572b7ed388ac00000000\",\n \"inputs\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"update\",\n \"confirmations\": 8,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mwbt5aSnFg3m9z15LdKvsSX75H2kR3x61f\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"1fe882ce454be131b024a855342711fadd21550e82ec84995886884e97bce06c\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"1fe882ce454be131b024a855342711fadd21550e82ec84995886884e97bce06c\"\n }\n}" } ] }, @@ -1102,14 +1102,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { - "title": "Create a channel claim", + "title": "Create a channel claim without metadata", "curl": "curl -d'{\"method\": \"channel_create\", \"params\": {\"name\": \"@channel\", \"bid\": \"1.0\", \"featured\": [], \"tags\": [], \"languages\": [], \"locations\": [], \"preview\": 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\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000010b5d9576bb58395cc7d8e2c6ff0e9269080b85ab2bebc6c906e4d45ae3082e32010000006a47304402204cfa852c946c52f21a03a96b6d1701f9887f67bdbbbdb07a5c34b26004d9ade202201188b2419a36e7aec5e3c394003ca9f5a5ec3757e5e7091945f2860fbc95a55d0121039b19986f186cb740693b6b9e262f60a6b7036d25c526d5c2108c10aefb9d4f70ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c685976d7576a914829737aec8d3e316b804ab384de653cdeb23c82a88acc462a029000000001976a914be5287181fc0c27adc52fbd615dcfb4339f39fa888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miFav91GxdfuvqJBrwVE3xa51Ljnhdh9CQ\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\"\n }\n },\n {\n \"address\": \"mxsHYdMzW3y6xbSw7ox9w21zVzBe9DjYJS\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\"\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000017bf99c4d2127690a2117d5bed8278c2e8c848fae21732a7778c48ff71157026f010000006a47304402203a014538a924231ce25f96c33262b9fcbab214e893bf41613c990c6cf8f26feb022061e4a0b2b9c0c8b780c73223e7d5d35243eca62eb1d2a5ebc8b65300be60c74f012103979248e369f619808a004cdce3d790994384cfee5036395c0b0013a6816f2941ffffffff0200e1f5050000000084b508406368616e6e656c4c5d00125a0a583056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d0336d7576a9147e632195aa38f982f52529168a9321d45f53fa5188acc462a029000000001976a9149281902b157e4e3b9cec4e0ce823d89afa31379f88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mo13cycUZChFzLoDGstCKQpHKrTV8MBwUM\",\n \"amount\": \"7.999876\",\n \"confirmations\": 2,\n \"height\": 207,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mtscAGTJyHxUowTkN9yenEtUETgofz5ZB4\",\n \"amount\": \"6.983769\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.016107\",\n \"total_input\": \"7.999876\",\n \"total_output\": \"7.983769\",\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\"\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\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"website_url\": \"http://smallmedia.com\", \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": 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\", \"featured\": [], \"tags\": [\"music\", \"art\"], \"languages\": [\"pt-BR\", \"uk\"], \"locations\": [\"BR\", \"UA::Kiyv\"], \"website_url\": \"http://smallmedia.com\", \"thumbnail_url\": \"http://smallmedia.com/logo.jpg\", \"cover_url\": \"http://smallmedia.com/logo.jpg\", \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001cf5cb5977201ef738a0c081071426f037a98cf454f5a99b56a85b0e2438783cd010000006b483045022100f844f564df874aaee147bc05ec15600f5085deab3dcb78a31fb58c0ff871a3b70220152bafadf89a40c0d4c456ec31d64b3df122d9019ec5441ce67347edf4942342012103379287f8475eece852c0b97adb17b3c37ddf39172c026d110a3a327e2a903966ffffffff0200e1f50500000000fd5001b50b406269676368616e6e656c4d25010012ab010a583056301006072a8648ce3d020106052b8104000a0342000430e681f2ffbafe0e535b4a4d321331546f3ebd15a46ed28cb39ad08e72ffabd5707dd108cc4fd0466ef481dd9184f80a1c0295148dc41e96c3c3eb1a54d5bd6d121663726561746f7240736d616c6c6d656469612e636f6d1a15687474703a2f2f736d616c6c6d656469612e636f6d22202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a7067420b426967204368616e6e656c4a1e41206368616e6e656c2077697468206c6f7473206f6620766964656f732e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a056d757369635a0361727462050883011820620308ab016a0208206a0908e9011a044b6979766d7576a914026355ed846434a4dbf3dc8830cdc21f70926f0788ace221d305000000001976a9146e022bf8e40ac2eb60f6a1f357a2c750e7964aca88ac00000000\",\n \"inputs\": [\n {\n \"address\": \"my7JJgMSHjNi8siGSq56uHGBbBKFF8oFKh\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mfjaeQ9w6KgJu4xRJQi8kUeGJasY3Pt95v\",\n \"amount\": \"1.0\",\n \"claim_id\": \"6a0f60e46b4354c4c321fcedcf881fc7f9a7935a\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@bigchannel\",\n \"nout\": 0,\n \"permanent_url\": \"@bigchannel#6a0f60e46b4354c4c321fcedcf881fc7f9a7935a\",\n \"txid\": \"41a300aea95a0514e575a6ff0584b8f083bf36dc0cb2bf8bd6e94d9ff008e7eb\",\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\": \"3056301006072a8648ce3d020106052b8104000a0342000430e681f2ffbafe0e535b4a4d321331546f3ebd15a46ed28cb39ad08e72ffabd5707dd108cc4fd0466ef481dd9184f80a1c0295148dc41e96c3c3eb1a54d5bd6d\",\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\": \"mqYdE3zMsybcD2S7jpHLb5w5PuSb1CL8ED\",\n \"amount\": \"0.9772285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"41a300aea95a0514e575a6ff0584b8f083bf36dc0cb2bf8bd6e94d9ff008e7eb\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9772285\",\n \"txid\": \"41a300aea95a0514e575a6ff0584b8f083bf36dc0cb2bf8bd6e94d9ff008e7eb\"\n }\n}" } ] }, @@ -1164,21 +1171,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "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 {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\"\n }\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your channel claims", "curl": "curl -d'{\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet channel list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\"\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1307,14 +1314,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Update a channel claim", - "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet channel update ceae903e6aa88e85688c01b2e988418613087fbd --title=\"New Channel\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000229c08d88eb5cddb75075e665a0e1f2ab944131f8d5774c0a79e934debe85a9fe000000006946304302207c910cd2b1bd6a509b864198479426b750f944d1ceedd2daa079fa13e7ccf23e021f5ec72849e60cb1f7d84af6ce5d5ed15a374501ee7ef0c3ef559b1a717098db012103f3f47961721802cc99c2a3953f45dc43468b062ffb70a6f6480b33095172f7adffffffff711b211fdc10991bc305c7518d8dcd4150fb977e10cc0de101b8bab1716ca0ef000000006a47304402201f1f20051a9a472f0df9a07aef60f0de073adca85f04c88d3422ad905b5e4a8d022047792d00f44d2bfab78d2649686734fc0c01dab8903d71c11f4f8d28068a7b15012103a2e364eb583a6a65f7190a30c2098feddea863f26e581fa25a8059002a5d1806ffffffff0200e1f50500000000a6b708406368616e6e656c14bd7f0813864188e9b2018c68858ea86a3e90aece4c6a00125a0a583056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597420b4e6577204368616e6e656c6d6d76a914829737aec8d3e316b804ab384de653cdeb23c82a88ac6ebeea0b000000001976a91471e60a7dff9e287d105f7841bdbf873ab55a05b088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"fea985bede34e9790a4c77d5f8314194abf2e1a065e67550b7dd5ceb888dc029\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\"\n }\n },\n {\n \"address\": \"ms72s9utcQbEPnPommZ8xh1LxhkebmboM8\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"efa06c71b1bab801e10dcc107e97fb5041cd8d8d51c705c31b9910dc1f211b71\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n {\n \"address\": \"mquCEFxZWnSiLhjphENiN8se4WTiPQxVHn\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\"\n }\n}" + "curl": "curl -d'{\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet channel update d911fb6eeb61320de1cc602ca57453c729f78b11 --title=\"New Channel\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"channel_update\", \"params\": {\"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"title\": \"New Channel\", \"featured\": [], \"clear_featured\": false, \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"new_signing_key\": false, \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000222ca796324557a903074125d34b88bb2bf3ecec718dd482e414ac6d025c652b5000000006b483045022100e26d7de5920a039bdaf5751d18e4e257000bccc18134494c608c95e0e24bbbae02200d9270472eca917f8e259206d37e632b08755b80d19317914fd2c67950fbac9d012102321e96c9dd08f649b76798dade0b368589dd18edb37395a8decf9de802d81658ffffffff46b1df6870bf40dbbdb69ab4441507ae71ea63d160fa3c3d797b2a7399571aa7000000006a47304402207c990cc32fb821be983aa75f3f58aa91aff6b7cd58e8b914c3de30b4a2417810022026e5db0be303182044918c18330c4ea2c17fe638485dca3c3dc554de26ae11bc012102e988b3bac9b2375949e9a0f06fcb599bea2dbe79c756bf9e011d6d256329b0a8ffffffff0200e1f50500000000a6b708406368616e6e656c14118bf729c75374a52c60cce10d3261eb6efb11d94c6a00125a0a583056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033420b4e6577204368616e6e656c6d6d76a9147e632195aa38f982f52529168a9321d45f53fa5188ac6ebeea0b000000001976a914c0f8fc34fe6a1517bd630632962ca7bf2e297f7088ac00000000\",\n \"inputs\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"mpXnmsTQB5BgC2CqUVzge7B3LjY629mxy2\",\n \"amount\": \"1.999604\",\n \"confirmations\": 1,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 0,\n \"txid\": \"a71a5799732a7b793d3cfa60d163ea71ae071544b49ab6bddb40bf7068dfb146\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n },\n {\n \"address\": \"my7JJgMSHjNi8siGSq56uHGBbBKFF8oFKh\",\n \"amount\": \"1.9993355\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.0002685\",\n \"total_input\": \"2.999604\",\n \"total_output\": \"2.9993355\",\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\"\n }\n}" } ] } @@ -1346,21 +1353,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "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 {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 212,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\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 \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ]\n}" }, { "title": "Paginate your claims", "curl": "curl -d'{\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet claim list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 212,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"msRTHmYZQF6Mc6ce62mt3JsA7FiDM6yG5w\",\n \"amount\": \"1.0\",\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"sub_type\": \"channel\",\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\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 \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"ms3EBypbZTFCEyGBPGTgns5CywjT9FXqLp\",\n \"amount\": \"1.0\",\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"claim_op\": \"update\",\n \"confirmations\": 5,\n \"height\": 210,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"@channel\",\n \"nout\": 0,\n \"permanent_url\": \"@channel#d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"txid\": \"cd838743e2b0856ab5995a4f45cf987a036f427110080c8a73ef017297b55ccf\",\n \"type\": \"claim\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n },\n \"value_type\": \"channel\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -1417,21 +1424,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "examples": [ { "title": "Search for all claims in channel", - "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"winning\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet claim search --channel_id=\"ceae903e6aa88e85688c01b2e988418613087fbd\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"winning\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"absolute_channel_position\": 0,\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 212,\n \"hex\": \"01bd7f0813864188e9b2018c68858ea86a3e90aecee46e57b139165fddc382a7f502edc7a07b675130a4435cb15726d189ae5768f31be20e8db061c5fe1ae3b7231e0e8bb2c7100587f018c44aa1d55ba245750ff80a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707665776b6630306e180b22186170706c69636174696f6e2f6f637465742d73747265616d32307b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"valid_at_height\": 212,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_pages\": 1\n }\n}" + "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"winning\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet claim search --channel_id=\"d911fb6eeb61320de1cc602ca57453c729f78b11\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"winning\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"absolute_channel_position\": 0,\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 10,\n \"total_pages\": 1\n }\n}" }, { "title": "Search for claims matching a name", "curl": "curl -d'{\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"winning\": false}}' http://localhost:5279/", "lbrynet": "lbrynet claim search --name=\"astream\"", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"claim_search\", \"params\": {\"name\": \"astream\", \"winning\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 212,\n \"hex\": \"01bd7f0813864188e9b2018c68858ea86a3e90aecee46e57b139165fddc382a7f502edc7a07b675130a4435cb15726d189ae5768f31be20e8db061c5fe1ae3b7231e0e8bb2c7100587f018c44aa1d55ba245750ff80a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707665776b6630306e180b22186170706c69636174696f6e2f6f637465742d73747265616d32307b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"valid_at_height\": 212,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 1,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_sequence\": -1,\n \"decoded_claim\": true,\n \"depth\": 1,\n \"effective_amount\": \"1.0\",\n \"has_signature\": true,\n \"height\": 214,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"lbry://astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"signature_is_valid\": true,\n \"supports\": [],\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"valid_at_height\": 214,\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 1,\n \"total_pages\": 1\n }\n}" } ] } @@ -1578,9 +1585,9 @@ "examples": [ { "title": "Delete a file", - "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\"}}' http://localhost:5279/", - "lbrynet": "lbrynet file delete --claim_id=\"70af4076385dbba0fe0b400056f407202caa057a\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\"}}).json()", + "curl": "curl -d'{\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\"}}' http://localhost:5279/", + "lbrynet": "lbrynet file delete --claim_id=\"1defd21a89a96386cba50117c106b17620202f3e\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_delete\", \"params\": {\"delete_from_download_dir\": false, \"delete_all\": false, \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\"}}).json()", "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": true\n}" } ] @@ -1687,14 +1694,14 @@ "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"reverse\": false}}' http://localhost:5279/", "lbrynet": "lbrynet file list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpvewkf00n\",\n \"key\": \"44dbf905146d75f49382c4010138014f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768:0\",\n \"points_paid\": 0.0,\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3bcc0eec6f0fa68558ac1fa6f1b0ffef340f97e183c21d875d4c3efe67e55b4342da27fc159823cc7f7546dd22eee020\",\n \"stream_name\": \"tmpvewkf00n\",\n \"suggested_file_name\": \"tmpvewkf00n\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"written_bytes\": null\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpvmlbw55r\",\n \"key\": \"65019627d82a10c21dbab64e9fa43dfa\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9f3050bf0b4dc68bb9c1644198531170d4402e454e42d5a5a92d4bc419bbc2e34f99350987d06e5e59caee0b019df1b7\",\n \"stream_name\": \"tmpvmlbw55r\",\n \"suggested_file_name\": \"tmpvmlbw55r\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"written_bytes\": null\n },\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"b794c52fd7a758bff21a117f97215c43dcdc18e2\",\n \"claim_name\": \"blank-image\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmp2n1hl28t.png\",\n \"key\": \"6b86207e8644249b7c7601ac6ca1f043\",\n \"metadata\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\",\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\": \"1555896523\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp2n1hl28t.png\",\n \"sd_hash\": \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"mime_type\": \"image/png\",\n \"nout\": 0,\n \"outpoint\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9a58dd62acad005e1806bd92fd997784382d7ff94efe29d80f3349187093242feb84e9f40d96741dbdd66b6f0699496f1867832cd078de0060c62612268a539a40ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d70326e31686c3238742e706e6718632209696d6167652f706e673230e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728cbb1f4e5053222080112196f1dcdb7f2611176db40a2e20629d64218131e5a2141d3105a188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e63686573746572\",\n \"sd_hash\": \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"435a1c0fc185a26ca3a292a87e5598a99bb758e3412d317e36362017703f2ac824970e8b03aa2a8ca1aa5c368d283f77\",\n \"stream_name\": \"tmp2n1hl28t.png\",\n \"suggested_file_name\": \"tmp2n1hl28t.png\",\n \"total_bytes\": 112,\n \"total_bytes_lower_bound\": 96,\n \"tx\": null,\n \"txid\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43\",\n \"written_bytes\": null\n }\n ]\n}" }, { "title": "List files matching a parameter", - "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"reverse\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet file list --claim_id=\"70af4076385dbba0fe0b400056f407202caa057a\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"reverse\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpvewkf00n\",\n \"key\": \"44dbf905146d75f49382c4010138014f\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768:0\",\n \"points_paid\": 0.0,\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"3bcc0eec6f0fa68558ac1fa6f1b0ffef340f97e183c21d875d4c3efe67e55b4342da27fc159823cc7f7546dd22eee020\",\n \"stream_name\": \"tmpvewkf00n\",\n \"suggested_file_name\": \"tmpvewkf00n\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"written_bytes\": null\n }\n ]\n}" + "curl": "curl -d'{\"method\": \"file_list\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"reverse\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet file list --claim_id=\"1defd21a89a96386cba50117c106b17620202f3e\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"file_list\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"reverse\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"blobs_completed\": 1,\n \"blobs_in_stream\": 1,\n \"blobs_remaining\": 0,\n \"channel_claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"channel_name\": \"@channel\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_name\": \"astream\",\n \"completed\": true,\n \"download_directory\": \"/tmp\",\n \"download_path\": null,\n \"file_name\": \"tmpvmlbw55r\",\n \"key\": \"65019627d82a10c21dbab64e9fa43dfa\",\n \"metadata\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"mime_type\": \"application/octet-stream\",\n \"nout\": 0,\n \"outpoint\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1:0\",\n \"points_paid\": 0.0,\n \"protobuf\": \"01118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"status\": \"finished\",\n \"stopped\": true,\n \"stream_hash\": \"9f3050bf0b4dc68bb9c1644198531170d4402e454e42d5a5a92d4bc419bbc2e34f99350987d06e5e59caee0b019df1b7\",\n \"stream_name\": \"tmpvmlbw55r\",\n \"suggested_file_name\": \"tmpvmlbw55r\",\n \"total_bytes\": 16,\n \"total_bytes_lower_bound\": 0,\n \"tx\": null,\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"written_bytes\": null\n }\n ]\n}" } ] }, @@ -1822,7 +1829,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 \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"comment_server\": \"http://comments.lbry.com:2903/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/tmpyqz3c__0\",\n \"download_dir\": \"/tmp/tmpyqz3c__0\",\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\": 8,\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\": 2.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"tcp_port\": 3333,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpyqz3c__0\"\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 \"blockchain_name\": \"lbrycrd_regtest\",\n \"cache_time\": 150,\n \"comment_server\": \"http://comments.lbry.com:2903/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/tmpavk8sjxi\",\n \"download_dir\": \"/tmp/tmpavk8sjxi\",\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\": 8,\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\": 2.0,\n \"reflect_streams\": true,\n \"reflector_servers\": [\n [\n \"127.0.0.1\",\n 5566\n ]\n ],\n \"s3_headers_depth\": 960,\n \"share_usage_data\": false,\n \"split_buckets_under_index\": 1,\n \"tcp_port\": 3333,\n \"udp_port\": 4444,\n \"use_upnp\": false,\n \"wallet_dir\": \"/tmp/tmpavk8sjxi\"\n }\n}" } ] }, @@ -1879,14 +1886,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Abandon a stream claim", - "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream abandon 70af4076385dbba0fe0b400056f407202caa057a", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"preview\": false, \"blocking\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000016877aa08b395faabddcea80576fb9d70322c8c2382e37d1f2c08afbb9a50c94e000000006a47304402202ab777835e8319e29c317ee7803cc1d6fe859dba94be868e0ef2249d9cf8b9c40220376ad929bed3629b6459933a83846d7c6aae0c98dce199ecf21ab527ae66d9580121033023b9e69e50ebabba2589a48ea394643e61b3d41a7d295ac6c798440e24dabaffffffff0134b7f505000000001976a9149ae69038bbfabd1b63f825f306b16041131c1cf888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 212,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mudzZRH7knBC6mYc2NRASyutFryXff1bgw\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"b91f535a7815e698c826a636517885d6eb06b1945b11f0984dfcce2b7bccdf68\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"b91f535a7815e698c826a636517885d6eb06b1945b11f0984dfcce2b7bccdf68\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"preview\": false, \"blocking\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream abandon 1defd21a89a96386cba50117c106b17620202f3e", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_abandon\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"preview\": false, \"blocking\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001c10f3307248df7ff672a0d14d132ca68041cb790a6d9658ece4e2d7df1eaf04b000000006b4830450221009a9729a0c43cd2523ed9397faa4bf4e850efe4fb1098afb5cd0c70a92278ec6b02202ec9b9c3c65b6baf72248a41d9a0cd5e7cf2bad9ebfed43706c3b245a1050735012103297693f8ac3017a6f21b028c40d0fcd9bfab975e0607135ae38bdfae3bc58d68ffffffff0134b7f505000000001976a914261edba6c7c0c3a452a1a57c8808890f501bc2b988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_op\": \"update\",\n \"confirmations\": 3,\n \"height\": 214,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mizWwPvEQ2MDDPYvDn5ZuU4jsrfR5uB8i2\",\n \"amount\": \"0.999893\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 0,\n \"txid\": \"1241cf3e44112fe1bbb7dde8d5cbb6557b1e4bba23a52bd04f1800dfed3c5708\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000107\",\n \"total_input\": \"1.0\",\n \"total_output\": \"0.999893\",\n \"txid\": \"1241cf3e44112fe1bbb7dde8d5cbb6557b1e4bba23a52bd04f1800dfed3c5708\"\n }\n}" } ] }, @@ -2059,14 +2066,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { - "title": "Create a stream claim", - "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvewkf00n\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpvewkf00n", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvewkf00n\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000198c0b7f5f36c1f1b84a004d5b0d6ee746945d9406e66840a8d416927e33bd325010000006a473044022058b1ee2d100d11caaf1423b5587d71aac92c9c506e35c2c5e1666f88d0bf04c5022051725983ea6a1b6b2c7920c4e001675fcdeb4f01f81f21ab2eeaee9411aca1a401210285dc7a663ace30d43c22cb210a7508277819b5b5098a193663710a2ce529e369ffffffff0200e1f50500000000a8b5076173747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707665776b6630306e180b22186170706c69636174696f6e2f6f637465742d73747265616d32307b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d44446d7576a91430baf6b86733ac357c0002e3d89bdebebd995d4888ace256df05000000001976a914f0604cbcd22a1785b7deaf4f457a788394ebcda688ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mquCEFxZWnSiLhjphENiN8se4WTiPQxVHn\",\n \"amount\": \"1.9993355\",\n \"confirmations\": 1,\n \"height\": 210,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"25d33be32769418d0a84666e40d9456974eed6b0d504a0841b1f6cf3f5b7c098\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"sub_type\": \"stream\",\n \"txid\": \"c8b7e2bc10db9ecc28a9808e20aa10798159798f6c5db240c016beec02d81639\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"n3Rwq7n8wygBkQ2ZiHkjjfNYqxRhh6caZh\",\n \"amount\": \"0.9852285\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"c8b7e2bc10db9ecc28a9808e20aa10798159798f6c5db240c016beec02d81639\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"1.9993355\",\n \"total_output\": \"1.9852285\",\n \"txid\": \"c8b7e2bc10db9ecc28a9808e20aa10798159798f6c5db240c016beec02d81639\"\n }\n}" + "title": "Create a stream claim without metadata", + "curl": "curl -d'{\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvmlbw55r\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create astream 1.0 /tmp/tmpvmlbw55r", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"astream\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmpvmlbw55r\", \"tags\": [], \"languages\": [], \"locations\": [], \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"010000000122ca796324557a903074125d34b88bb2bf3ecec718dd482e414ac6d025c652b5010000006b483045022100d23039ce63937a01efe93212978d4b2292412b000b7d2a648483f23330d05b7e022026b475e649813f69ffc69440ac67e02e14383477e863c422165dffaacc97de33012103d07ae209414a273332c781cbad6157685dd9f40981a69d79546b9d6a0f540a1bffffffff0200e1f50500000000a8b5076173747265616d4c82000a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c95226d7576a9141f119a04bb196e5f842284c88602e35144a6879e88ac38fb9423000000001976a914faa11e81ace591d91e11abac2a875446f42ef4c588ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mtscAGTJyHxUowTkN9yenEtUETgofz5ZB4\",\n \"amount\": \"6.983769\",\n \"confirmations\": 4,\n \"height\": 209,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"b552c625d0c64a412e48dd18c7ce3ebfb28bb8345d127430907a55246379ca22\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"txid\": \"79fe350fb5b3abd2036e16a8fcf893b14e1f7d431697aef6cd9aa165e4c1bcd1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"n4NAEmUHt1TwV45t3ySRFLKEawUq7wY66n\",\n \"amount\": \"5.969662\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"79fe350fb5b3abd2036e16a8fcf893b14e1f7d431697aef6cd9aa165e4c1bcd1\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.014107\",\n \"total_input\": \"6.983769\",\n \"total_output\": \"6.969662\",\n \"txid\": \"79fe350fb5b3abd2036e16a8fcf893b14e1f7d431697aef6cd9aa165e4c1bcd1\"\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/tmp2n1hl28t.png\", \"tags\": [\"blank\", \"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/logo.jpg\", \"release_time\": 1555896523, \"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream create blank-image 1.0 /tmp/tmp2n1hl28t.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/logo.jpg\" --release_time=1555896523 --channel_id=\"d911fb6eeb61320de1cc602ca57453c729f78b11\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_create\", \"params\": {\"name\": \"blank-image\", \"bid\": \"1.0\", \"file_path\": \"/tmp/tmp2n1hl28t.png\", \"tags\": [\"blank\", \"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/logo.jpg\", \"release_time\": 1555896523, \"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000001d1bcc1e465a19acdf6ae9716437d1f4eb193f8fca8166e03d2abb3b50f35fe79010000006a473044022003b124ad7c48e3151a25f3c5842a9841ed011e164e728491d8749e0349eec214022030822a888b484b042afe5d45ec8e108b7131d071dedc37a9608b47eab2b59e2e0121032bcb44325b40edbab3468f73891ec76de8f350e718fbbfffbc85a967b629ac70ffffffff0200e1f50500000000fdc601b50b626c616e6b2d696d6167654d9b0101118bf729c75374a52c60cce10d3261eb6efb11d9a58dd62acad005e1806bd92fd997784382d7ff94efe29d80f3349187093242feb84e9f40d96741dbdd66b6f0699496f1867832cd078de0060c62612268a539a40ad5010a720a2006003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af120f746d70326e31686c3238742e706e6718632209696d6167652f706e673230e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14120650696361736f1a0d5075626c696320446f6d61696e2218687474703a2f2f7075626c69632d646f6d61696e2e6f726728cbb1f4e5053222080112196f1dcdb7f2611176db40a2e20629d64218131e5a2141d3105a188087a70e520408051007420b426c616e6b20496d6167654a184120626c616e6b20504e472074686174206973203578372e52202a1e687474703a2f2f736d616c6c6d656469612e636f6d2f6c6f676f2e6a70675a05626c616e6b5a03617274620208016a1308ec0112024e481a0a4d616e636865737465726d7576a9141dcdb7f2611176db40a2e20629d64218131e5a2188acac5e7d1d000000001976a914964e085fec5712df82792e093c22db63095daf2888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"n4NAEmUHt1TwV45t3ySRFLKEawUq7wY66n\",\n \"amount\": \"5.969662\",\n \"confirmations\": 2,\n \"height\": 213,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"79fe350fb5b3abd2036e16a8fcf893b14e1f7d431697aef6cd9aa165e4c1bcd1\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\",\n \"amount\": \"1.0\",\n \"claim_id\": \"b794c52fd7a758bff21a117f97215c43dcdc18e2\",\n \"claim_op\": \"create\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"blank-image\",\n \"nout\": 0,\n \"permanent_url\": \"blank-image#b794c52fd7a758bff21a117f97215c43dcdc18e2\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43\",\n \"type\": \"claim\",\n \"value\": {\n \"author\": \"Picaso\",\n \"description\": \"A blank PNG that is 5x7.\",\n \"fee\": {\n \"address\": \"miEYLC68MfPp8dJd8tdUS2pdaJ4QK9HXH3\",\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\": \"1555896523\",\n \"source\": {\n \"hash\": \"06003bbee8aece0543ed9d9cecc48be1d996cfeff9837a1aed1d961caeda82af\",\n \"media_type\": \"image/png\",\n \"name\": \"tmp2n1hl28t.png\",\n \"sd_hash\": \"e53699a94244b57c71761bdefbd15d92227fa7d71699b273d9a136bc57c22d69a37815ea0d8807b87fd7949577c7ec14\",\n \"size\": \"99\"\n },\n \"stream_type\": \"image\",\n \"tags\": [\n \"blank\",\n \"art\"\n ],\n \"thumbnail\": {\n \"url\": \"http://smallmedia.com/logo.jpg\"\n },\n \"title\": \"Blank Image\"\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"muDh8dsiAqy5RA3kKq4R1Jwg84SPZgtQeh\",\n \"amount\": \"4.947555\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.022107\",\n \"total_input\": \"5.969662\",\n \"total_output\": \"5.947555\",\n \"txid\": \"018895533f8ca7f0d1281d4a39abfdd3d6f5f5b117e8de145b315d1f6c5f1f43\"\n }\n}" } ] }, @@ -2093,21 +2107,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "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 {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 212,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\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 \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ]\n}" }, { "title": "Paginate your stream claims", "curl": "curl -d'{\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}' http://localhost:5279/", "lbrynet": "lbrynet stream list --page=1 --page_size=20", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_list\", \"params\": {\"page\": 1, \"page_size\": 20}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": 1,\n \"height\": 212,\n \"is_change\": false,\n \"is_channel_signature_valid\": true,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"items\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\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 \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n }\n ],\n \"page\": 1,\n \"page_size\": 20,\n \"total_pages\": 1\n }\n}" } ] }, @@ -2284,14 +2298,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [ { "title": "Update a stream claim to add channel", - "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", - "lbrynet": "lbrynet stream update 70af4076385dbba0fe0b400056f407202caa057a --channel_id=\"ceae903e6aa88e85688c01b2e988418613087fbd\"", - "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"01000000023916d802ecbe16c040b25d6c8f7959817910aa208e80a928cc9edb10bce2b7c8000000006b483045022100dd0c490a2b9755080769d64321f6f0bd5864ff14921e2eb407622f1a4a163c9902203ce3357bae87abdf9d48ae23d74dfc3b7957858b37995cff22a13db7d75365320121033023b9e69e50ebabba2589a48ea394643e61b3d41a7d295ac6c798440e24dabaffffffff3916d802ecbe16c040b25d6c8f7959817910aa208e80a928cc9edb10bce2b7c8010000006a4730440220078b9bd6ca696d3a48677d038b4c2d72f6a1c3b23f5ad4958438b12af809a5eb0220034e92c4792f8a7b5156bb9b6980125d141fb21497bfc47deb825f835f61997a01210279bbfa7774c5b9265c803ded514edf2f3490f5e3a0585eedac45824a2129d5e2ffffffff0200e1f50500000000fd1101b7076173747265616d147a05aa2c2007f45600400bfea0bb5d387640af704cd601bd7f0813864188e9b2018c68858ea86a3e90aecee46e57b139165fddc382a7f502edc7a07b675130a4435cb15726d189ae5768f31be20e8db061c5fe1ae3b7231e0e8bb2c7100587f018c44aa1d55ba245750ff80a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d707665776b6630306e180b22186170706c69636174696f6e2f6f637465742d73747265616d32307b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d44446d6d76a91430baf6b86733ac357c0002e3d89bdebebd995d4888acb6d8de05000000001976a914940e3a889c5ea9b11d5f92392170dc9373a2451888ac00000000\",\n \"inputs\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 211,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"sub_type\": \"stream\",\n \"txid\": \"c8b7e2bc10db9ecc28a9808e20aa10798159798f6c5db240c016beec02d81639\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"n3Rwq7n8wygBkQ2ZiHkjjfNYqxRhh6caZh\",\n \"amount\": \"0.9852285\",\n \"confirmations\": 1,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"c8b7e2bc10db9ecc28a9808e20aa10798159798f6c5db240c016beec02d81639\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"mjxchjMXksemtLUiU3qaAQtccgp5qWsSQg\",\n \"amount\": \"1.0\",\n \"claim_id\": \"70af4076385dbba0fe0b400056f407202caa057a\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#70af4076385dbba0fe0b400056f407202caa057a\",\n \"signing_channel\": {\n \"claim_id\": \"ceae903e6aa88e85688c01b2e988418613087fbd\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a03420004149439c425b82c67b8af11571dd3120ababd91d5210eb5c37c29419b3f889eed658b84cb582a763979c5f46c8375ddc3881c0cb5e36692fb16468fd479c68597\",\n \"title\": \"New Channel\"\n }\n },\n \"sub_type\": \"stream\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvewkf00n\",\n \"sd_hash\": \"7b3245d4259cac05058bd89442db3b8575b968407b33232f8d7617292232fee2829ee020caf921da63d018754c6d4444\",\n \"size\": \"11\"\n }\n }\n },\n {\n \"address\": \"mu1oM4wC1KAYD9LJMdMXxHdmvagfCVM8yg\",\n \"amount\": \"0.9849055\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000323\",\n \"total_input\": \"1.9852285\",\n \"total_output\": \"1.9849055\",\n \"txid\": \"4ec9509abbaf082c1f7de382238c2c32709dfb7605a8ceddabfa95b308aa7768\"\n }\n}" + "curl": "curl -d'{\"method\": \"stream_update\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}' http://localhost:5279/", + "lbrynet": "lbrynet stream update 1defd21a89a96386cba50117c106b17620202f3e --channel_id=\"d911fb6eeb61320de1cc602ca57453c729f78b11\"", + "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"stream_update\", \"params\": {\"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\", \"tags\": [], \"clear_tags\": false, \"languages\": [], \"clear_languages\": false, \"locations\": [], \"clear_locations\": false, \"channel_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\", \"clear_channel\": false, \"channel_account_id\": [], \"preview\": false}}).json()", + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": {\n \"height\": -2,\n \"hex\": \"0100000002d1bcc1e465a19acdf6ae9716437d1f4eb193f8fca8166e03d2abb3b50f35fe79000000006b48304502210092422cf6b51bf888015f278f8ba017ddba702aefb9da90c38d11cb8d40b3f5be02202a99fc17bb55c0dc95c667a08e569362f7ed3196db1bb5f1b0667264dbdeb7d1012103297693f8ac3017a6f21b028c40d0fcd9bfab975e0607135ae38bdfae3bc58d68ffffffffebe708f09f4de9d68bbfb20cdc36bf83f0b88405ffa675e514055aa9ae00a341010000006b483045022100af856d6e01e4944265a36418891e4cb5a8c863ad56fb7278cae8e5b4f67435550220715ffbb65aba0da2b7471b3e9f61c67be858590208baa08f527ad93f8d526f08012103c23fcf2bae4b767ac4c3c36e1a2800bea9db7277c6e00f91cdc7b44970bc8a92ffffffff0200e1f50500000000fd1101b7076173747265616d143e2f202076b106c11701a5cb8663a9891ad2ef1d4cd601118bf729c75374a52c60cce10d3261eb6efb11d9cdb8d1ebb493165cfd0d50755f2f32bf8f082278e0c377eec9b5b8bafc2d6f7f2fbf68953241b306d85d1c44d807e7fa322d0ab6211c33ca3ab9ddacdc7a78290a7f0a7d0a20b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9120b746d70766d6c6277353572180b22186170706c69636174696f6e2f6f637465742d73747265616d323036cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c95226d6d76a9141f119a04bb196e5f842284c88602e35144a6879e88acb6a3d205000000001976a9148659bd40849222005cfe39f7ecd93ca644d7740988ac00000000\",\n \"inputs\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_op\": \"create\",\n \"confirmations\": 1,\n \"height\": 213,\n \"is_change\": false,\n \"is_mine\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"txid\": \"79fe350fb5b3abd2036e16a8fcf893b14e1f7d431697aef6cd9aa165e4c1bcd1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"mqYdE3zMsybcD2S7jpHLb5w5PuSb1CL8ED\",\n \"amount\": \"0.9772285\",\n \"confirmations\": 3,\n \"height\": 211,\n \"is_change\": true,\n \"is_mine\": true,\n \"nout\": 1,\n \"txid\": \"41a300aea95a0514e575a6ff0584b8f083bf36dc0cb2bf8bd6e94d9ff008e7eb\",\n \"type\": \"payment\"\n }\n ],\n \"outputs\": [\n {\n \"address\": \"miMEKz1hREgBPQcAkoacQa6mKL8uEzhSP9\",\n \"amount\": \"1.0\",\n \"claim_id\": \"1defd21a89a96386cba50117c106b17620202f3e\",\n \"claim_op\": \"update\",\n \"confirmations\": -2,\n \"height\": -2,\n \"is_channel_signature_valid\": true,\n \"name\": \"astream\",\n \"nout\": 0,\n \"permanent_url\": \"astream#1defd21a89a96386cba50117c106b17620202f3e\",\n \"signing_channel\": {\n \"claim_id\": \"d911fb6eeb61320de1cc602ca57453c729f78b11\",\n \"name\": \"@channel\",\n \"value\": {\n \"public_key\": \"3056301006072a8648ce3d020106052b8104000a034200045f60a412352c8507f10ca126b868be203cc3d46cb5d31d95e46ce1434beebf573d9af76a408f03903afa63e409e3840e15c028e1d5d3b1a59d9c35838102d033\",\n \"title\": \"New Channel\"\n }\n },\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"claim\",\n \"value\": {\n \"source\": {\n \"hash\": \"b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9\",\n \"media_type\": \"application/octet-stream\",\n \"name\": \"tmpvmlbw55r\",\n \"sd_hash\": \"36cc01376651b9610f63a353dc4a9792114e11f8dc64e876657cc4ec35b7d239984ed974e7c1aafb5fc602b5095c9522\",\n \"size\": \"11\"\n }\n },\n \"value_type\": \"stream\"\n },\n {\n \"address\": \"msmLLxDSJSYWoSXnFo181ZMgdd7UpUmF6m\",\n \"amount\": \"0.9769055\",\n \"confirmations\": -2,\n \"height\": -2,\n \"nout\": 1,\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\",\n \"type\": \"payment\"\n }\n ],\n \"total_fee\": \"0.000323\",\n \"total_input\": \"1.9772285\",\n \"total_output\": \"1.9769055\",\n \"txid\": \"4bf0eaf17d2d4ece8e65d9a690b71c0468ca32d1140d2a67fff78d2407330fc1\"\n }\n}" } ] } @@ -2347,7 +2361,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [] }, { @@ -2385,7 +2399,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [] }, { @@ -2411,7 +2425,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "examples": [] } ] @@ -2487,7 +2501,7 @@ "curl": "curl -d'{\"method\": \"transaction_list\", \"params\": {}}' http://localhost:5279/", "lbrynet": "lbrynet transaction list", "python": "requests.post(\"http://localhost:5279\", json={\"method\": \"transaction_list\", \"params\": {}}).json()", - "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-04-20 23:56\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1555819013,\n \"txid\": \"322e08e35ad4e406c9c6eb2bab850b0869920effc6e2d8c75c3958bb76955d0b\",\n \"update_info\": [],\n \"value\": \"-2.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-04-20 23:56\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1555819012,\n \"txid\": \"85c5a4b6aeea84d64bc54828c803275bf5f93dd8ed8ef1bc33bf555f36406750\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" + "output": "{\n \"jsonrpc\": \"2.0\",\n \"result\": [\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 1,\n \"date\": \"2019-04-21 21:29\",\n \"fee\": \"-0.000124\",\n \"support_info\": [],\n \"timestamp\": 1555896548,\n \"txid\": \"6f025711f78fc478772a7321ae8f848c2e8c27d8bed517210a6927214d9cf97b\",\n \"update_info\": [],\n \"value\": \"-2.0\"\n },\n {\n \"abandon_info\": [],\n \"claim_info\": [],\n \"confirmations\": 7,\n \"date\": \"2019-04-21 21:29\",\n \"fee\": \"0.0\",\n \"support_info\": [],\n \"timestamp\": 1555896547,\n \"txid\": \"3ad50907b0b14107d852dfb339383ba9eb2b484f113ac77a64c865fa9cdff485\",\n \"update_info\": [],\n \"value\": \"10.0\"\n }\n ]\n}" } ] }, @@ -2502,7 +2516,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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 '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 }", "examples": [] } ] @@ -2533,7 +2547,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 \"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 \"claim_op\": \"when type is 'claim', this determines if it is 'create' or 'update'\",\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 \"permanent_url\": \"when type is 'claim' or 'support', this is the long permanent claim URL\",\n \"value\": \"when type is 'claim', this is the claim metadata\",\n \"sub_type\": \"when type is 'claim', this determines if it is 'channel' or 'stream' claim\",\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 \"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 }", "examples": [] }, { diff --git a/lbrynet/schema/claim.py b/lbrynet/schema/claim.py index 7307a3322..56580e7a6 100644 --- a/lbrynet/schema/claim.py +++ b/lbrynet/schema/claim.py @@ -198,6 +198,9 @@ class Stream(BaseClaim): fee['address'] = self.fee.address if 'amount' in fee: fee['amount'] = self.fee.amount + stream_type = self.message.WhichOneof('type') + if stream_type: + claim['stream_type'] = stream_type return claim def update(self, file_path=None, height=None, width=None, duration=None, **kwargs): diff --git a/scripts/generate_json_api.py b/scripts/generate_json_api.py index 835fbd48d..d733697f7 100644 --- a/scripts/generate_json_api.py +++ b/scripts/generate_json_api.py @@ -4,7 +4,9 @@ import json import inspect import tempfile import asyncio +import time from docopt import docopt +from binascii import unhexlify from textwrap import indent from lbrynet.extras.cli import set_kwargs, get_argument_parser from lbrynet.extras.daemon.Daemon import ( @@ -173,7 +175,7 @@ class Examples(CommandTestCase): # channels channel = await r( - 'Create a channel claim', + 'Create a channel claim without metadata', 'channel', 'create', '@channel', '1.0' ) channel_id = channel['outputs'][0]['claim_id'] @@ -200,13 +202,28 @@ class Examples(CommandTestCase): await self.generate(1) await self.on_transaction_dict(channel) + big_channel = await r( + 'Create a channel claim with all metadata', + '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"' + ) + await self.on_transaction_dict(big_channel) + await self.generate(1) + await self.on_transaction_dict(big_channel) + await self.daemon.jsonrpc_channel_abandon(big_channel['outputs'][0]['claim_id']) + await self.generate(1) + # stream claims with tempfile.NamedTemporaryFile() as file: file.write(b'hello world') file.flush() stream = await r( - 'Create a stream claim', + 'Create a stream claim without metadata', 'stream', 'create', 'astream', '1.0', file.name ) await self.on_transaction_dict(stream) @@ -217,7 +234,7 @@ class Examples(CommandTestCase): stream = await r( 'Update a stream claim to add channel', 'stream', 'update', stream_id, - f"--channel_id=\"{channel_id}\"" + f'--channel_id="{channel_id}"' ) await self.on_transaction_dict(stream) await self.generate(1) @@ -245,14 +262,38 @@ class Examples(CommandTestCase): await r( 'Search for all claims in channel', - 'claim', 'search', f"--channel_id=\"{channel_id}\"" + 'claim', 'search', f'--channel_id="{channel_id}"' ) await r( 'Search for claims matching a name', - 'claim', 'search', f"--name=\"{stream_name}\"" + 'claim', 'search', f'--name="{stream_name}"' ) + with tempfile.NamedTemporaryFile(suffix='.png') as file: + file.write(unhexlify( + b'89504e470d0a1a0a0000000d49484452000000050000000708020000004fc' + b'510b9000000097048597300000b1300000b1301009a9c1800000015494441' + b'5408d763fcffff3f031260624005d4e603004c45030b5286e9ea000000004' + b'9454e44ae426082' + )) + file.flush() + big_stream = await r( + 'Create an image stream claim with all metadata and fee', + 'stream', 'create', 'blank-image', '1.0', file.name, + '--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"', f'--release_time={int(time.time())}', + f'--channel_id="{channel_id}"' + ) + await self.on_transaction_dict(big_stream) + await self.generate(1) + await self.on_transaction_dict(big_stream) + await self.daemon.jsonrpc_channel_abandon(big_stream['outputs'][0]['claim_id']) + await self.generate(1) + # files file_list_result = await r(