"description":"Download stream from a LBRY name.",
"arguments":[
{
"name":"uri",
"type":"str",
"description":"uri of the content to download",
"is_required":false
},
{
"name":"file_name",
"type":"str",
"description":"specified name for the downloaded file",
"is_required":false
},
{
"name":"timeout",
"type":"int",
"description":"download timeout in number of seconds",
"is_required":false
}
],
"returns":" {\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }",
"examples":[]
},
{
"name":"publish",
"description":"Create or update a stream claim at a given name (use 'stream create/update' for more control).",
"arguments":[
{
"name":"name",
"type":"str",
"description":"name of the content (can only consist of a-z A-Z 0-9 and -(dash))",
"is_required":true
},
{
"name":"bid",
"type":"decimal",
"description":"amount to back the claim",
"is_required":false
},
{
"name":"file_path",
"type":"str",
"description":"path to file to be associated with name.",
"is_required":false
},
{
"name":"stream_type",
"type":"str",
"description":"type of stream",
"is_required":false
},
{
"name":"fee_currency",
"type":"string",
"description":"specify fee currency",
"is_required":false
},
{
"name":"fee_amount",
"type":"decimal",
"description":"content download fee",
"is_required":false
},
{
"name":"fee_address",
"type":"str",
"description":"address where to send fee payments, will use value from --claim_address if not provided",
"is_required":false
},
{
"name":"title",
"type":"str",
"description":"title of the publication",
"is_required":false
},
{
"name":"description",
"type":"str",
"description":"description of the publication",
"is_required":false
},
{
"name":"author",
"type":"str",
"description":"author of the publication. The usage for this field is not the same as for channels. The author field is used to credit an author who is not the publisher and is not represented by the channel. For example, a pdf file of 'The Odyssey' has an author of 'Homer' but may by published to a channel such as '@classics', or to no channel at all",
"is_required":false
},
{
"name":"clear_tags",
"type":"bool",
"description":"clear existing tags (prior to adding new ones)",
"is_required":false
},
{
"name":"tags",
"type":"list",
"description":"add content tags",
"is_required":false
},
{
"name":"clear_languages",
"type":"bool",
"description":"clear existing languages (prior to adding new ones)",
"is_required":false
},
{
"name":"languages",
"type":"list",
"description":"languages used by the channel, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`",
"is_required":false
},
{
"name":"clear_locations",
"type":"bool",
"description":"clear existing locations (prior to adding new ones)",
"is_required":false
},
{
"name":"locations",
"type":"list",
"description":"locations relevant to the stream, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"",
"is_required":false
},
{
"name":"license",
"type":"str",
"description":"publication license",
"is_required":false
},
{
"name":"license_url",
"type":"str",
"description":"publication license url",
"is_required":false
},
{
"name":"thumbnail_url",
"type":"str",
"description":"thumbnail url",
"is_required":false
},
{
"name":"release_time",
"type":"int",
"description":"original public release of content, seconds since UNIX epoch",
"is_required":false
},
{
"name":"duration",
"type":"int",
"description":"audio/video duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"image_width",
"type":"int",
"description":"image width",
"is_required":false
},
{
"name":"image_height",
"type":"int",
"description":"image height",
"is_required":false
},
{
"name":"video_width",
"type":"int",
"description":"video width",
"is_required":false
},
{
"name":"video_height",
"type":"int",
"description":"video height",
"is_required":false
},
{
"name":"video_duration",
"type":"int",
"description":"video duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"audio_duration",
"type":"int",
"description":"audio duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"channel_id",
"type":"str",
"description":"claim id of the publisher channel",
"is_required":false
},
{
"name":"channel_name",
"type":"str",
"description":"name of publisher channel",
"is_required":false
},
{
"name":"channel_account_id",
"type":"str",
"description":"one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"account to use for funding the transaction",
"is_required":false
},
{
"name":"claim_address",
"type":"str",
"description":"address where the claim is sent to, if not specified it will be determined automatically from the account",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
}
],
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"Get the claim that a URL refers to.",
"arguments":[
{
"name":"urls",
"type":"str, list",
"description":"one or more urls to resolve",
"is_required":false
}
],
"returns":"Dictionary of results, keyed by url\n '<url>': {\n If a resolution error occurs:\n 'error': Error message\n\n If the url resolves to a channel or a claim in a channel:\n 'certificate': {\n 'address': (str) claim address,\n 'amount': (float) claim amount,\n 'effective_amount': (float) claim amount including supports,\n 'claim_id': (str) claim id,\n 'claim_sequence': (int) claim sequence number (or -1 if unknown),\n 'decoded_claim': (bool) whether or not the claim value was decoded,\n 'height': (int) claim height,\n 'depth': (int) claim depth,\n 'has_signature': (bool) included if decoded_claim\n 'name': (str) claim name,\n 'permanent_url': (str) permanent url of the certificate claim,\n 'supports: (list) list of supports [{'txid': (str) txid,\n 'nout': (int) nout,\n 'amount': (float) amount}],\n 'txid': (str) claim txid,\n 'nout': (str) claim nout,\n 'signature_is_valid': (bool), included if has_signature,\n 'value': ClaimDict if decoded, otherwise hex string\n }\n\n If the url resolves to a channel:\n 'claims_in_channel': (int) number of claims in the channel,\n\n If the url resolves to a claim:\n 'claim': {\n 'address': (str) claim address,\n 'amount': (float) claim amount,\n 'effective_amount': (float) claim amount including supports,\n 'claim_id': (str) claim id,\n 'claim_sequence': (int) claim sequence number (or -1 if unknown),\n 'decoded_claim': (bool) whether or not the claim value was decoded,\n 'height': (int) claim height,\n 'depth': (int) claim depth,\n 'has_signature': (bool) included if decoded_claim\n 'name': (str) claim name,\n 'permanent_url': (str) permanent url of the claim,\n 'channel_name': (str) channel name if claim is in a channel\n 'supports: (list) list of supports [{'txid': (str) txid,\n 'nout': (int) nout,\n 'amount': (float) amount}]\n 'txid': (str) claim txid,\n 'nout': (str) claim nout,\n 'signature_is_valid': (bool), included if has_signature,\n 'value': ClaimDict if decoded, otherwise hex string\n }\n }",
"doc":"Create, modify and inspect wallet accounts.",
"commands":[
{
"name":"account_add",
"description":"Add a previously created account from a seed, private key or public key (read-only).\nSpecify --single_key for single address or vanity address accounts.",
"arguments":[
{
"name":"account_name",
"type":"str",
"description":"name of the account to add",
"is_required":true
},
{
"name":"seed",
"type":"str",
"description":"seed to generate new account from",
"is_required":false
},
{
"name":"private_key",
"type":"str",
"description":"private key for new account",
"is_required":false
},
{
"name":"public_key",
"type":"str",
"description":"public key for new account",
"is_required":false
},
{
"name":"single_key",
"type":"bool",
"description":"create single key account, default is multi-key",
"is_required":false
}
],
"returns":" {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }",
"description":"If provided only the balance for this account will be given. Otherwise default account.",
"is_required":false
},
{
"name":"confirmations",
"type":"int",
"description":"Only include transactions with this many confirmed blocks.",
"is_required":false
}
],
"returns":"(decimal) amount of lbry credits in wallet",
"examples":[]
},
{
"name":"account_create",
"description":"Create a new account. Specify --single_key if you want to use\nthe same address for all transactions (not recommended).",
"arguments":[
{
"name":"account_name",
"type":"str",
"description":"name of the account to create",
"is_required":true
},
{
"name":"single_key",
"type":"bool",
"description":"create single key account, default is multi-key",
"is_required":false
}
],
"returns":" {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }",
"description":"Decrypt an encrypted account, this will remove the wallet password. The account must be unlocked to decrypt it",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id for the account to decrypt",
"is_required":false
}
],
"returns":"(bool) true if wallet is decrypted, otherwise false",
"examples":[]
},
{
"name":"account_encrypt",
"description":"Encrypt an unencrypted account with a password",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id for the account to encrypt",
"is_required":false
}
],
"returns":"(bool) true if wallet is decrypted, otherwise false",
"examples":[]
},
{
"name":"account_fund",
"description":"Transfer some amount (or --everything) to an account from another\naccount (can be the same account). Amounts are interpreted as LBC.\nYou can also spread the transfer across a number of --outputs (cannot\nbe used together with --everything).",
"description":"split payment across many outputs, default: 1.",
"is_required":false
},
{
"name":"broadcast",
"type":"bool",
"description":"actually broadcast the transaction, default: false.",
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }",
"examples":[]
},
{
"name":"account_list",
"description":"List details of all of the accounts or a specific account.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"If provided only the balance for this account will be given",
"description":"include claims, requires than a LBC account is specified (default: false)",
"is_required":false
},
{
"name":"show_seed",
"type":"bool",
"description":"show the seed for the account",
"is_required":false
}
],
"returns":" [\n {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }\n ]",
"returns":"(bool) true if account is locked, otherwise false",
"examples":[]
},
{
"name":"account_max_address_gap",
"description":"Finds ranges of consecutive addresses that are unused and returns the length\nof the longest such range: for change and receiving address chains. This is\nuseful to figure out ideal values to set for 'receiving_gap' and 'change_gap'\naccount settings.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"account for which to get max gaps",
"is_required":true
}
],
"returns":"(map) maximum gap for change and receiving addresses",
"examples":[]
},
{
"name":"account_remove",
"description":"Remove an existing account.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to remove",
"is_required":true
}
],
"returns":" {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }",
"description":"Send the same number of credits to multiple addresses.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"account to fund the transaction",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }",
"examples":[]
},
{
"name":"account_set",
"description":"Change various settings on an account.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to change",
"is_required":true
},
{
"name":"default",
"type":"bool",
"description":"make this account the default",
"is_required":false
},
{
"name":"new_name",
"type":"str",
"description":"new name for the account",
"is_required":false
},
{
"name":"receiving_gap",
"type":"int",
"description":"set the gap for receiving addresses",
"is_required":false
},
{
"name":"receiving_max_uses",
"type":"int",
"description":"set the maximum number of times to use a receiving address",
"is_required":false
},
{
"name":"change_gap",
"type":"int",
"description":"set the gap for change addresses",
"is_required":false
},
{
"name":"change_max_uses",
"type":"int",
"description":"set the maximum number of times to use a change address",
"is_required":false
}
],
"returns":" {\n \"id\": \"account_id\",\n \"is_default\": \"this account is used by default\",\n \"ledger\": \"name of crypto currency and network\",\n \"name\": \"optional account name\",\n \"seed\": \"human friendly words from which account can be recreated\",\n \"encrypted\": \"if account is encrypted\",\n \"private_key\": \"extended private key\",\n \"public_key\": \"extended public key\",\n \"address_generator\": \"settings for generating addresses\",\n \"modified_on\": \"date of last modification to account settings\"\n }",
"examples":[
{
"title":"Modify maximum number of times a change address can be reused.",
"description":"Checks if an address is associated with the current wallet.",
"arguments":[
{
"name":"address",
"type":"str",
"description":"address to check",
"is_required":true
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
}
],
"returns":"(bool) true, if address is associated with current wallet",
"examples":[]
},
{
"name":"address_list",
"description":"List account addresses",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n \"an address in base58\"\n ]\n }",
"examples":[]
},
{
"name":"address_unused",
"description":"Return an address containing no balance, will create\na new address if there is none.",
"doc":"Create, update, abandon and list your channel claims.",
"commands":[
{
"name":"channel_abandon",
"description":"Abandon one of my channel claims.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"claim_id of the claim to abandon",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"txid of the claim to abandon",
"is_required":false
},
{
"name":"nout",
"type":"int",
"description":"nout of the claim to abandon",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
},
{
"name":"blocking",
"type":"bool",
"description":"wait until abandon is in mempool",
"is_required":false
}
],
"returns":" {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"Create a new channel by generating a channel private key and establishing an '@' prefixed claim.",
"arguments":[
{
"name":"name",
"type":"str",
"description":"name of the channel prefixed with '@'",
"is_required":true
},
{
"name":"allow_duplicate_name",
"type":"bool",
"description":"create new channel even if one already exists with given name. default: false.",
"is_required":false
},
{
"name":"bid",
"type":"decimal",
"description":"amount to back the claim",
"is_required":true
},
{
"name":"title",
"type":"str",
"description":"title of the publication",
"is_required":false
},
{
"name":"description",
"type":"str",
"description":"description of the publication",
"is_required":false
},
{
"name":"tags",
"type":"list",
"description":"content tags",
"is_required":false
},
{
"name":"languages",
"type":"list",
"description":"languages used by the channel, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`",
"is_required":false
},
{
"name":"locations",
"type":"list",
"description":"locations of the channel, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"",
"is_required":false
},
{
"name":"contact_email",
"type":"str",
"description":"email of channel owner",
"is_required":false
},
{
"name":"homepage_url",
"type":"str",
"description":"homepage url",
"is_required":false
},
{
"name":"thumbnail_url",
"type":"str",
"description":"thumbnail url",
"is_required":false
},
{
"name":"cover_url",
"type":"str",
"description":"url of cover image",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to store channel",
"is_required":false
},
{
"name":"claim_address",
"type":"str",
"description":"address where the channel is sent to, if not specified it will be determined automatically from the account",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
}
],
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"Import serialized channel signing information (to allow signing new claims to the channel)",
"arguments":[
{
"name":"serialized_certificate_info",
"type":"str",
"description":"certificate info",
"is_required":true
}
],
"returns":"(dict) Result dictionary",
"examples":[]
},
{
"name":"channel_list",
"description":"List my channel claims.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"description":"Update an existing channel claim.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"claim_id of the channel to update",
"is_required":true
},
{
"name":"bid",
"type":"decimal",
"description":"amount to back the claim",
"is_required":false
},
{
"name":"title",
"type":"str",
"description":"title of the publication",
"is_required":false
},
{
"name":"description",
"type":"str",
"description":"description of the publication",
"is_required":false
},
{
"name":"clear_tags",
"type":"bool",
"description":"clear existing tags (prior to adding new ones)",
"is_required":false
},
{
"name":"tags",
"type":"list",
"description":"add content tags",
"is_required":false
},
{
"name":"clear_languages",
"type":"bool",
"description":"clear existing languages (prior to adding new ones)",
"is_required":false
},
{
"name":"languages",
"type":"list",
"description":"languages used by the channel, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`",
"is_required":false
},
{
"name":"clear_locations",
"type":"bool",
"description":"clear existing locations (prior to adding new ones)",
"is_required":false
},
{
"name":"locations",
"type":"list",
"description":"locations of the channel, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"",
"is_required":false
},
{
"name":"contact_email",
"type":"str",
"description":"email of channel owner",
"is_required":false
},
{
"name":"homepage_url",
"type":"str",
"description":"homepage url",
"is_required":false
},
{
"name":"thumbnail_url",
"type":"str",
"description":"thumbnail url",
"is_required":false
},
{
"name":"cover_url",
"type":"str",
"description":"url of cover image",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to store channel",
"is_required":false
},
{
"name":"claim_address",
"type":"str",
"description":"address where the channel is sent",
"is_required":false
},
{
"name":"new_signing_key",
"type":"bool",
"description":"generate a new signing key, will invalidate all previous publishes",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
}
],
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"List my stream and channel claims.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to query",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"description":"Search for stream and channel claims on the blockchain.\n\nUse --channel_id=<channel_id> to list all stream claims in a channel.",
"arguments":[
{
"name":"name",
"type":"str",
"description":"find claims with this name",
"is_required":false
},
{
"name":"claim_id",
"type":"str",
"description":"find a claim with this claim_id",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"find a claim with this txid:nout",
"is_required":false
},
{
"name":"nout",
"type":"str",
"description":"find a claim with this txid:nout",
"is_required":false
},
{
"name":"channel_id",
"type":"str",
"description":"limit search to specific channel claim id (returns stream claims)",
"is_required":false
},
{
"name":"winning",
"type":"bool",
"description":"limit to winning claims",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"description":"Create and associate a comment with a claim using your channel identity.",
"arguments":[
{
"name":"parent_comment_id",
"type":"int",
"description":"The ID of a comment to make a response to",
"is_required":false
}
],
"returns":"(dict) Comment object if successfully made",
"examples":[]
},
{
"name":"comment_list",
"description":"List comments associated with a claim.",
"arguments":[
{
"name":"flat",
"type":"bool",
"description":"Flag to indicate whether or not you want the replies to be flattened along with the rest of the comments attached to the claim. Off by default",
"is_required":false
},
{
"name":"parent_comment_id",
"type":"int",
"description":"The ID of an existing comment to list replies from",
"is_required":false
},
{
"name":"max_replies_shown",
"type":"int",
"description":"For every comment that we pull replies from, only retrieve up to this amount. Note: This is not the same as page size.",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"The page you'd like to see in the comment list. The first page is 1, second page is 2, and so on.",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"The amount of comments that you'd like to retrieve in one request",
"is_required":false
}
],
"returns":"(dict) Dict containing the following schema:\n {\n \"page\": (int) The page of comments as provided when limiting response to page_size.\n \"page_size\": (int) Number of comments in the given page. -1 if page_size wasn't used\n \"comments\": (list) Contains all the comments (as dicts) as provided by the specified parameters\n }",
"description":"delete file from download directory, instead of just deleting blobs",
"is_required":false
},
{
"name":"delete_all",
"type":"bool",
"description":"if there are multiple matching files, allow the deletion of multiple files. Otherwise do not delete anything.",
"is_required":false
},
{
"name":"sd_hash",
"type":"str",
"description":"delete by file sd hash",
"is_required":false
},
{
"name":"file_name",
"type":"str",
"description":"delete by file name in downloads folder",
"is_required":false
},
{
"name":"stream_hash",
"type":"str",
"description":"delete by file stream hash",
"is_required":false
},
{
"name":"rowid",
"type":"int",
"description":"delete by file row id",
"is_required":false
},
{
"name":"claim_id",
"type":"str",
"description":"delete by file claim id",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"delete by file claim txid",
"is_required":false
},
{
"name":"nout",
"type":"int",
"description":"delete by file claim nout",
"is_required":false
},
{
"name":"claim_name",
"type":"str",
"description":"delete by file claim name",
"is_required":false
},
{
"name":"channel_claim_id",
"type":"str",
"description":"delete by file channel claim id",
"is_required":false
},
{
"name":"channel_name",
"type":"str",
"description":"delete by file channel claim name",
"is_required":false
}
],
"returns":"(bool) true if deletion was successful",
"examples":[]
},
{
"name":"file_list",
"description":"List files limited by optional filters",
"arguments":[
{
"name":"sd_hash",
"type":"str",
"description":"get file with matching sd hash",
"is_required":false
},
{
"name":"file_name",
"type":"str",
"description":"get file with matching file name in the downloads folder",
"is_required":false
},
{
"name":"stream_hash",
"type":"str",
"description":"get file with matching stream hash",
"is_required":false
},
{
"name":"rowid",
"type":"int",
"description":"get file with matching row id",
"is_required":false
},
{
"name":"claim_id",
"type":"str",
"description":"get file with matching claim id",
"is_required":false
},
{
"name":"outpoint",
"type":"str",
"description":"get file with matching claim outpoint",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"get file with matching claim txid",
"is_required":false
},
{
"name":"nout",
"type":"int",
"description":"get file with matching claim nout",
"is_required":false
},
{
"name":"channel_claim_id",
"type":"str",
"description":"get file with matching channel claim id",
"is_required":false
},
{
"name":"channel_name",
"type":"str",
"description":"get file with matching channel name",
"is_required":false
},
{
"name":"claim_name",
"type":"str",
"description":"get file with matching claim name",
"is_required":false
},
{
"name":"blobs_in_stream<blobs_in_stream>",
"type":"int",
"description":"get file with matching blobs in stream",
"is_required":false
},
{
"name":"blobs_remaining",
"type":"int",
"description":"amount of remaining blobs to download",
"is_required":false
},
{
"name":"sort",
"type":"str",
"description":"field to sort by (one of the above filter fields)",
"is_required":false
},
{
"name":"comparison",
"type":"str",
"description":"logical comparision, (eq | ne | g | ge | l | le)",
"is_required":false
}
],
"returns":" [\n {\n \"completed\": \"(bool) true if download is completed\",\n \"file_name\": \"(str) name of file\",\n \"download_directory\": \"(str) download directory\",\n \"points_paid\": \"(float) credit paid to download file\",\n \"stopped\": \"(bool) true if download is stopped\",\n \"stream_hash\": \"(str) stream hash of file\",\n \"stream_name\": \"(str) stream name\",\n \"suggested_file_name\": \"(str) suggested file name\",\n \"sd_hash\": \"(str) sd hash of file\",\n \"download_path\": \"(str) download path of file\",\n \"mime_type\": \"(str) mime type of file\",\n \"key\": \"(str) key attached to file\",\n \"total_bytes_lower_bound\": \"(int) lower bound file size in bytes\",\n \"total_bytes\": \"(int) file upper bound size in bytes\",\n \"written_bytes\": \"(int) written size in bytes\",\n \"blobs_completed\": \"(int) number of fully downloaded blobs\",\n \"blobs_in_stream\": \"(int) total blobs on stream\",\n \"blobs_remaining\": \"(int) total blobs remaining to download\",\n \"status\": \"(str) downloader status\",\n \"claim_id\": \"(str) None if claim is not found else the claim id\",\n \"txid\": \"(str) None if claim is not found else the transaction id\",\n \"nout\": \"(int) None if claim is not found else the transaction output index\",\n \"outpoint\": \"(str) None if claim is not found else the tx and output\",\n \"metadata\": \"(dict) None if claim is not found else the claim metadata\",\n \"channel_claim_id\": \"(str) None if claim is not found or not signed\",\n \"channel_name\": \"(str) None if claim is not found or not signed\",\n \"claim_name\": \"(str) None if claim is not found else the claim name\"\n }\n ]",
"examples":[]
},
{
"name":"file_reflect",
"description":"Reflect all the blobs in a file matching the filter criteria",
"arguments":[
{
"name":"sd_hash",
"type":"str",
"description":"get file with matching sd hash",
"is_required":false
},
{
"name":"file_name",
"type":"str",
"description":"get file with matching file name in the downloads folder",
"is_required":false
},
{
"name":"stream_hash",
"type":"str",
"description":"get file with matching stream hash",
"is_required":false
},
{
"name":"rowid",
"type":"int",
"description":"get file with matching row id",
"is_required":false
},
{
"name":"reflector",
"type":"str",
"description":"reflector server, ip address or url by default choose a server from the config",
"is_required":false
}
],
"returns":"(list) list of blobs reflected",
"examples":[]
},
{
"name":"file_set_status",
"description":"Start or stop downloading a file",
"arguments":[
{
"name":"status",
"type":"str",
"description":"one of \"start\" or \"stop\"",
"is_required":true
},
{
"name":"sd_hash",
"type":"str",
"description":"set status of file with matching sd hash",
"is_required":false
},
{
"name":"file_name",
"type":"str",
"description":"set status of file with matching file name in the downloads folder",
"is_required":false
},
{
"name":"stream_hash",
"type":"str",
"description":"set status of file with matching stream hash",
"is_required":false
},
{
"name":"rowid",
"type":"int",
"description":"set status of file with matching row id",
"description":"find available peers for this blob hash",
"is_required":true
},
{
"name":"search_bottom_out_limit",
"type":"int",
"description":"the number of search probes in a row that don't find any new peers before giving up and returning",
"is_required":false
}
],
"returns":"(list) List of contact dictionaries {'address': <peer ip>, 'udp_port': <dht port>, 'tcp_port': <peer port>,\n 'node_id': <peer node id>}",
"examples":[]
},
{
"name":"peer_ping",
"description":"Send a kademlia ping to the specified peer. If address and port are provided the peer is directly pinged,\nif not provided the peer is located first.",
"arguments":[],
"returns":"(str) pong, or {'error': <error message>} if an error is encountered",
"doc":"Create, update, abandon, list and inspect your stream claims.",
"commands":[
{
"name":"stream_abandon",
"description":"Abandon one of my stream claims.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"claim_id of the claim to abandon",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"txid of the claim to abandon",
"is_required":false
},
{
"name":"nout",
"type":"int",
"description":"nout of the claim to abandon",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
},
{
"name":"blocking",
"type":"bool",
"description":"wait until abandon is in mempool",
"is_required":false
}
],
"returns":" {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"Get estimated cost for a lbry stream",
"arguments":[
{
"name":"uri",
"type":"str",
"description":"uri to use",
"is_required":true
}
],
"returns":"(float) Estimated cost in lbry credits, returns None if uri is not\n resolvable",
"examples":[]
},
{
"name":"stream_create",
"description":"Make a new stream claim and announce the associated file to lbrynet.",
"arguments":[
{
"name":"name",
"type":"str",
"description":"name of the content (can only consist of a-z A-Z 0-9 and -(dash))",
"is_required":true
},
{
"name":"allow_duplicate_name",
"type":"bool",
"description":"create new claim even if one already exists with given name. default: false.",
"is_required":false
},
{
"name":"bid",
"type":"decimal",
"description":"amount to back the claim",
"is_required":true
},
{
"name":"file_path",
"type":"str",
"description":"path to file to be associated with name.",
"is_required":true
},
{
"name":"stream_type",
"type":"str",
"description":"type of stream",
"is_required":false
},
{
"name":"fee_currency",
"type":"string",
"description":"specify fee currency",
"is_required":false
},
{
"name":"fee_amount",
"type":"decimal",
"description":"content download fee",
"is_required":false
},
{
"name":"fee_address",
"type":"str",
"description":"address where to send fee payments, will use value from --claim_address if not provided",
"is_required":false
},
{
"name":"title",
"type":"str",
"description":"title of the publication",
"is_required":false
},
{
"name":"description",
"type":"str",
"description":"description of the publication",
"is_required":false
},
{
"name":"author",
"type":"str",
"description":"author of the publication. The usage for this field is not the same as for channels. The author field is used to credit an author who is not the publisher and is not represented by the channel. For example, a pdf file of 'The Odyssey' has an author of 'Homer' but may by published to a channel such as '@classics', or to no channel at all",
"is_required":false
},
{
"name":"tags",
"type":"list",
"description":"add content tags",
"is_required":false
},
{
"name":"languages",
"type":"list",
"description":"languages used by the channel, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`",
"is_required":false
},
{
"name":"locations",
"type":"list",
"description":"locations relevant to the stream, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"",
"is_required":false
},
{
"name":"license",
"type":"str",
"description":"publication license",
"is_required":false
},
{
"name":"license_url",
"type":"str",
"description":"publication license url",
"is_required":false
},
{
"name":"thumbnail_url",
"type":"str",
"description":"thumbnail url",
"is_required":false
},
{
"name":"release_time",
"type":"int",
"description":"original public release of content, seconds since UNIX epoch",
"is_required":false
},
{
"name":"duration",
"type":"int",
"description":"audio/video duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"image_width",
"type":"int",
"description":"image width",
"is_required":false
},
{
"name":"image_height",
"type":"int",
"description":"image height",
"is_required":false
},
{
"name":"video_width",
"type":"int",
"description":"video width",
"is_required":false
},
{
"name":"video_height",
"type":"int",
"description":"video height",
"is_required":false
},
{
"name":"video_duration",
"type":"int",
"description":"video duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"audio_duration",
"type":"int",
"description":"audio duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"channel_id",
"type":"str",
"description":"claim id of the publisher channel",
"is_required":false
},
{
"name":"channel_account_id",
"type":"str",
"description":"one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"account to use for funding the transaction",
"is_required":false
},
{
"name":"claim_address",
"type":"str",
"description":"address where the claim is sent to, if not specified it will be determined automatically from the account",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
}
],
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"description":"Update an existing stream claim and if a new file is provided announce it to lbrynet.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"id of the stream claim to update",
"is_required":true
},
{
"name":"bid",
"type":"decimal",
"description":"amount to back the claim",
"is_required":false
},
{
"name":"file_path",
"type":"str",
"description":"path to file to be associated with name.",
"is_required":false
},
{
"name":"fee_currency",
"type":"string",
"description":"specify fee currency",
"is_required":false
},
{
"name":"fee_amount",
"type":"decimal",
"description":"content download fee",
"is_required":false
},
{
"name":"fee_address",
"type":"str",
"description":"address where to send fee payments, will use value from --claim_address if not provided",
"is_required":false
},
{
"name":"title",
"type":"str",
"description":"title of the publication",
"is_required":false
},
{
"name":"description",
"type":"str",
"description":"description of the publication",
"is_required":false
},
{
"name":"author",
"type":"str",
"description":"author of the publication. The usage for this field is not the same as for channels. The author field is used to credit an author who is not the publisher and is not represented by the channel. For example, a pdf file of 'The Odyssey' has an author of 'Homer' but may by published to a channel such as '@classics', or to no channel at all",
"is_required":false
},
{
"name":"clear_tags",
"type":"bool",
"description":"clear existing tags (prior to adding new ones)",
"is_required":false
},
{
"name":"tags",
"type":"list",
"description":"add content tags",
"is_required":false
},
{
"name":"clear_languages",
"type":"bool",
"description":"clear existing languages (prior to adding new ones)",
"is_required":false
},
{
"name":"languages",
"type":"list",
"description":"languages used by the channel, using RFC 5646 format, eg: for English `--languages=en` for Spanish (Spain) `--languages=es-ES` for Spanish (Mexican) `--languages=es-MX` for Chinese (Simplified) `--languages=zh-Hans` for Chinese (Traditional) `--languages=zh-Hant`",
"is_required":false
},
{
"name":"clear_locations",
"type":"bool",
"description":"clear existing locations (prior to adding new ones)",
"is_required":false
},
{
"name":"locations",
"type":"list",
"description":"locations relevant to the stream, consisting of 2 letter `country` code and a `state`, `city` and a postal `code` along with a `latitude` and `longitude`. for JSON RPC: pass a dictionary with aforementioned attributes as keys, eg: ... \"locations\": [{'country': 'US', 'state': 'NH'}] ... for command line: pass a colon delimited list with values in the following order: \"COUNTRY:STATE:CITY:CODE:LATITUDE:LONGITUDE\" making sure to include colon for blank values, for example to provide only the city: ... --locations=\"::Manchester\" with all values set: ... --locations=\"US:NH:Manchester:03101:42.990605:-71.460989\" optionally, you can just pass the \"LATITUDE:LONGITUDE\": ... --locations=\"42.990605:-71.460989\" finally, you can also pass JSON string of dictionary on the command line as you would via JSON RPC ... --locations=\"{'country': 'US', 'state': 'NH'}\"",
"is_required":false
},
{
"name":"license",
"type":"str",
"description":"publication license",
"is_required":false
},
{
"name":"license_url",
"type":"str",
"description":"publication license url",
"is_required":false
},
{
"name":"thumbnail_url",
"type":"str",
"description":"thumbnail url",
"is_required":false
},
{
"name":"release_time",
"type":"int",
"description":"original public release of content, seconds since UNIX epoch",
"is_required":false
},
{
"name":"stream_type",
"type":"str",
"description":"type of stream",
"is_required":false
},
{
"name":"image_width",
"type":"int",
"description":"image width",
"is_required":false
},
{
"name":"image_height",
"type":"int",
"description":"image height",
"is_required":false
},
{
"name":"video_width",
"type":"int",
"description":"video width",
"is_required":false
},
{
"name":"video_height",
"type":"int",
"description":"video height",
"is_required":false
},
{
"name":"video_duration",
"type":"int",
"description":"video duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"audio_duration",
"type":"int",
"description":"audio duration in seconds, an attempt will be made to calculate this automatically if not provided",
"is_required":false
},
{
"name":"channel_id",
"type":"str",
"description":"claim id of the publisher channel",
"is_required":false
},
{
"name":"clear_channel",
"type":"bool",
"description":"remove channel signature",
"is_required":false
},
{
"name":"channel_account_id",
"type":"str",
"description":"one or more account ids for accounts to look in for channel certificates, defaults to all accounts.",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"account to use for funding the transaction",
"is_required":false
},
{
"name":"claim_address",
"type":"str",
"description":"address where the claim is sent to, if not specified it will be determined automatically from the account",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
}
],
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"doc":"Create, list and abandon all types of supports.",
"commands":[
{
"name":"support_abandon",
"description":"Abandon supports, including tips, of a specific claim, optionally\nkeeping some amount as supports.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"claim_id of the claim to abandon",
"is_required":false
},
{
"name":"txid",
"type":"str",
"description":"txid of the claim to abandon",
"is_required":false
},
{
"name":"nout",
"type":"int",
"description":"nout of the claim to abandon",
"is_required":false
},
{
"name":"keep",
"type":"decimal",
"description":"amount of lbc to keep as support",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"is_required":false
},
{
"name":"blocking",
"type":"bool",
"description":"wait until abandon is in mempool",
"is_required":false
}
],
"returns":" {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"inputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }",
"examples":[]
},
{
"name":"support_create",
"description":"Create a support or a tip for name claim.",
"arguments":[
{
"name":"claim_id",
"type":"str",
"description":"claim_id of the claim to support",
"is_required":true
},
{
"name":"amount",
"type":"decimal",
"description":"amount of support",
"is_required":true
},
{
"name":"tip",
"type":"bool",
"description":"send support to claim owner, default: false.",
"is_required":false
},
{
"name":"account_id",
"type":"str",
"description":"id of the account to use",
"is_required":false
},
{
"name":"preview",
"type":"bool",
"description":"do not broadcast the transaction",
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"total_input\": \"sum of inputs as a decimal\",\n \"total_output\": \"sum of outputs, sans fee, as a decimal\",\n \"total_fee\": \"fee amount\",\n \"hex\": \"entire transaction encoded in hex\"\n }",
"examples":[]
},
{
"name":"support_list",
"description":"List supports and tips in my control.",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to query",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"description":"List transactions belonging to wallet",
"arguments":[
{
"name":"account_id",
"type":"str",
"description":"id of the account to query",
"is_required":false
},
{
"name":"page",
"type":"int",
"description":"page to return during paginating",
"is_required":false
},
{
"name":"page_size",
"type":"int",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":"(list) List of transactions\n\n {\n \"claim_info\": (list) claim info if in txn [{\n \"address\": (str) address of claim,\n \"balance_delta\": (float) bid amount,\n \"amount\": (float) claim amount,\n \"claim_id\": (str) claim id,\n \"claim_name\": (str) claim name,\n \"nout\": (int) nout\n }],\n \"abandon_info\": (list) abandon info if in txn [{\n \"address\": (str) address of abandoned claim,\n \"balance_delta\": (float) returned amount,\n \"amount\": (float) claim amount,\n \"claim_id\": (str) claim id,\n \"claim_name\": (str) claim name,\n \"nout\": (int) nout\n }],\n \"confirmations\": (int) number of confirmations for the txn,\n \"date\": (str) date and time of txn,\n \"fee\": (float) txn fee,\n \"support_info\": (list) support info if in txn [{\n \"address\": (str) address of support,\n \"balance_delta\": (float) support amount,\n \"amount\": (float) support amount,\n \"claim_id\": (str) claim id,\n \"claim_name\": (str) claim name,\n \"is_tip\": (bool),\n \"nout\": (int) nout\n }],\n \"timestamp\": (int) timestamp,\n \"txid\": (str) txn id,\n \"update_info\": (list) update info if in txn [{\n \"address\": (str) address of claim,\n \"balance_delta\": (float) credited/debited\n \"amount\": (float) absolute amount,\n \"claim_id\": (str) claim id,\n \"claim_name\": (str) claim name,\n \"nout\": (int) nout\n }],\n \"value\": (float) value of txn\n }",
"examples":[]
},
{
"name":"transaction_show",
"description":"Get a decoded transaction from a txid",
"arguments":[
{
"name":"txid",
"type":"str",
"description":"txid of the transaction",
"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 \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ],\n \"outputs\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\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 }",
"description":"number of items on page during pagination",
"is_required":false
}
],
"returns":" {\n \"page\": \"Page number of the current items.\",\n \"page_size\": \"Number of items to show on a page.\",\n \"total_pages\": \"Total number of pages.\",\n \"items\": [\n {\n \"txid\": \"hash of transaction in hex\",\n \"height\": \"block where transaction was recorded\",\n \"nout\": \"position in the transaction\",\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 }\n ]\n }",
"examples":[]
},
{
"name":"utxo_release",
"description":"When spending a UTXO it is locally locked to prevent double spends;\noccasionally this can result in a UTXO being locked which ultimately\ndid not get spent (failed to broadcast, spend transaction was not\naccepted by blockchain node, etc). This command releases the lock\non all UTXOs in your account.",