docs/docs/build/rpc-api/wallet-rpc-api/update_alias.md
zano build machine 49f0f115fb Auto generated doc
2025-03-31 15:37:26 +03:00

1.2 KiB

Update an alias details/transwer alias ownership

URL: http:://127.0.0.1:11211/json_rpc

Request:

{
  "id": 0,
  "jsonrpc": "2.0",
  "method": "update_alias",
  "params": {
    "al": {
      "address": "ZxCSpsGGeJsS8fwvQ4HktDU3qBeauoJTR6j73jAWWZxFXdF7XTbGm4YfS2kXJmAP4Rf5BVsSQ9iZ45XANXEYsrLN2L2W77dH7",
      "alias": "zxdya6q6whzwqjkmtcsjpc3ku",
      "comment": "Society is never gonna make any progress until we all learn to pretend to like each other.",
      "tracking_key": "18bb94f69ed61b47b6556f3871b89dff8f9a6f4f798f706fd199b05ccf8ef20c"
    }
  }
}

Request description:

    "al": Alias details
      "address": Address of the alias.
      "alias": Alias itself, a brief shortcut for an address.
      "comment": Arbitrary comment (optional).
      "tracking_key": View secret key of the corresponding address (optional).

Response:

{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "tx_id": "97d91442f8f3c22683585eaa60b53757d49bf046a96269cef45c1bc9ff7300cc"
  }
}

Response description:

    "tx_id": If success - transactions that performs registration(alias becomes available after few confirmations)

Auto-doc built with: 2.1.5.397[2872515]