# UpdateAccount

Modify account name

**Return**: Transaction object

**BODY PARAMS**

`{`

**`account_name`** `string (required)`

**`owner_address`**` ``string (required)`

**`visible`**` ``boolean (optional)`

**`permission_id`**` ``int32 (optional)`

`}`

**Note:**  &#x20;

* **account\_name** is the name of the account, converted to a hex string
* **owner\_address** is the account address to be modified, converted to a hex string
* **visible** is optional,whether the address is in base58 format
* **permission\_id** is optional,for multi-signature use

**Example:**

curl --request POST\
\--url [**http://172.104.51.182:16667/wallet/updateaccount**](http://172.104.51.182:16667/wallet/updateaccount)\
\--header 'Accept: application/json'\
\--header 'Content-Type: application/json'\
\--data '{ "account\_name": "0x55555555555555555555555555555555555555555", "owner\_address": "414203485a535a4072C9FBFaADDfe2A010AD0BcdB0" }

**Input:**&#x20;

`{`&#x20;

`"account_name": "0x55555555555555555555555555555555555555555", "owner_address": "414203485a535a4072C9FBFaADDfe2A010AD0BcdB0"`&#x20;

`}`

**Response:**&#x20;

`{`&#x20;

`"visible": false, "txID": "36b1610c2090227ca057304c1a31826dda741d093f5d81c829b7c16947dca898", "raw_data": { "contract": [ { "parameter": { "value": { "account_name": "055555555555555555555555555555555555555555", "owner_address": "414203485a535a4072c9fbfaaddfe2a010ad0bcdb0" }, "type_url": "type.googleapis.com/protocol.AccountUpdateContract" }, "type": "AccountUpdateContract" } ], "ref_block_bytes": "0a8f", "ref_block_hash": "7aa63c76a090236e", "expiration": 1639099299000, "timestamp": 1639099240270 }, "raw_data_hex": "0a020a8f22087aa63c76a090236e40b8e9b98fda2f5a68080a12640a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e74557064617465436f6e7472616374122e0a150555555555555555555555555555555555555555551215414203485a535a4072c9fbfaaddfe2a010ad0bcdb070ce9eb68fda2f"`&#x20;

`}`

\=> When you call **gettransactionsign** API then call **broadcasttransaction** API<br>

We will the final result: The account updated success on AIIX network.<br>

`{`&#x20;

`"result": true, "txid": "36b1610c2090227ca057304c1a31826dda741d093f5d81c829b7c16947dca898"`&#x20;

`}`<br>
