UpdateAccount

Modify account name

Return: Transaction object

Body params:

  • account_name - Account_name is the name of the account, converted to a hex string

  • owner_address - Owner_address is the account address to be modified, converted to a hex string

  • visible - Optional,whether the address is in base58 format

  • permission_id - Optional,for multi-signature use

Request

curl --request POST \
     --url https://tron.api.watchdata.io/wallet/updateaccount \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "account_name": "0x7570646174654e616d6531353330383933343635353139",
     "owner_address": "41d1e7a6bc354106cb410e65ff8b181c600ff14292"
}
'

Response

{
  "visible": false,
  "txID": "8e35b75ad4a09517c567573a8b8fb49a984d849cfc6ec9388e379be82d40ecea",
  "raw_data": {
    "contract": [
      {
        "parameter": {
          "value": {
            "account_name": "7570646174654e616d6531353330383933343635353139",
            "owner_address": "41d1e7a6bc354106cb410e65ff8b181c600ff14292"
          },
          "type_url": "type.googleapis.com/protocol.AccountUpdateContract"
        },
        "type": "AccountUpdateContract"
      }
    ],
    "ref_block_bytes": "b69d",
    "ref_block_hash": "e6fda1d26b927373",
    "expiration": 1649065977000,
    "timestamp": 1649065919347
  },
  "raw_data_hex": "0a02b69d2208e6fda1d26b92737340a8c9f79fff2f5a6a080a12660a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e74557064617465436f6e747261637412300a177570646174654e616d6531353330383933343635353139121541d1e7a6bc354106cb410e65ff8b181c600ff1429270f386f49fff2f"
}

Last updated