name_update "name" ( "value" options )
Updates a name and possibly transfers it.
Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
Arguments:
1. name (string, required) The name to update
2. value (string, optional) Value for the name
3. options (json object, optional) Options for this RPC call
{
"nameEncoding": "str", (string) Encoding ("ascii", "utf8" or "hex") of the name argument
"valueEncoding": "str", (string) Encoding ("ascii", "utf8" or "hex") of the value argument
"destAddress": "str", (string) The address to send the name output to
"sendCoins": { (json object) Addresses to which coins should be sent additionally
"address": amount, (numeric or string, required) A key-value pair. The key (string) is the address, the value (float or string) is the amount in ROD
...
},
"burn": { (json object) Data and amounts of ROD to burn in the transaction
"data": amount, (numeric or string, required) A key-value pair. The key (string) is the burn data, the value (float or string) is the amount in ROD
...
},
}
Result:
"hex" (string) the transaction ID
Examples:
> spacexpanse-cli name_update "myname", "new-value"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "name_update", "params": ["myname", "new-value"]}' -H 'content-type: text/plain;' http://127.0.0.1:11998/
[
{
"name": "name",
"detailsLines": [],
"properties": [
"string",
"required"
],
"description": "The name to update"
},
{
"name": "value",
"detailsLines": [],
"properties": [
"string",
"optional"
],
"description": "Value for the name"
},
{
"name": "options",
"detailsLines": [
" {",
" \"nameEncoding\": \"str\", (string) Encoding (\"ascii\", \"utf8\" or \"hex\") of the name argument",
" \"valueEncoding\": \"str\", (string) Encoding (\"ascii\", \"utf8\" or \"hex\") of the value argument",
" \"destAddress\": \"str\", (string) The address to send the name output to",
" \"sendCoins\": { (json object) Addresses to which coins should be sent additionally",
" \"address\": amount, (numeric or string, required) A key-value pair. The key (string) is the address, the value (float or string) is the amount in ROD",
" ...",
" },",
" \"burn\": { (json object) Data and amounts of ROD to burn in the transaction",
" \"data\": amount, (numeric or string, required) A key-value pair. The key (string) is the burn data, the value (float or string) is the amount in ROD",
" ...",
" },",
" }"
],
"properties": [
"json object",
"optional"
],
"description": "Options for this RPC call"
}
]