> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/updateaccount | TRON

> TRON API method that updates an account's name on the TRON blockchain. This method creates an unsigned transaction to set or modify the account name field.

TRON API method that updates an account's name on the TRON blockchain. This method creates an unsigned transaction to set or modify the account name field.

## Parameters

* `owner_address` — the account address whose name will be updated.
* `account_name` — the new name for the account in hexadecimal format. Must be converted from string to hex before sending.
* `visible` — optional boolean parameter. When set to `true`, the address is in base58 format. Default is `false`.

## Response

* `visible` — indicates the address format used in the response
* `txID` — the transaction hash
* `raw_data` — raw transaction data including:
  * `contract` — array containing the account update contract
  * `ref_block_bytes` — reference block bytes
  * `ref_block_hash` — reference block hash
  * `expiration` — transaction expiration timestamp
  * `timestamp` — transaction creation timestamp
* `raw_data_hex` — hexadecimal representation of the raw transaction

## Use case

The `wallet/updateaccount` method is used for:

* Setting a human-readable name for an account.
* Updating account metadata for identification purposes.
* Labeling accounts in wallet applications and explorers.
* Organizing multiple accounts with descriptive names.

Note: Account names are stored on-chain and consume bandwidth when set or updated. The returned transaction must be signed and broadcast to complete the update.


## OpenAPI

````yaml openapi/tron_node_api/updateaccount.json post /95e61622bf6a8af293978377718e3b77/wallet/updateaccount
openapi: 3.0.0
info:
  title: wallet/updateaccount TRON API
  version: 1.0.0
  description: Update an account name on the TRON blockchain
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/updateaccount:
    post:
      tags:
        - Account Management
      summary: wallet/updateaccount
      operationId: updateAccount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - owner_address
                - account_name
              properties:
                owner_address:
                  type: string
                  default: TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g
                account_name:
                  type: string
                  default: '0x7570646174654e616d6531353330383933343635353139'
                visible:
                  type: boolean
                  default: true
      responses:
        '200':
          description: Unsigned account update transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                  txID:
                    type: string
                  raw_data:
                    type: object
                  raw_data_hex:
                    type: string

````