updateAccount

Create an unsigned transaction to update account to update account name.

Usage

visionWeb.transactionBuilder.updateAccount(accountName, address, options);

Parameters

ParameterDescriptionTypeDefault
accountNameAccount name.string-
addressAccount address.stringLogin account address
optionsDescriptions are below.object-

options parameters

ParameterDescriptionTypeDefault
permissionIdThe permission Id,optional, for multi-signature use.number-

Returns

Object.

Example

visionWeb.transactionBuilder.updateAccount("ABC");
> {
  visible: false,
  txID: '0546fd60dcec83055a255cc3abf1099b00745f4feca51617b6f4a048a44196b9',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: 'bd6e',
    ref_block_hash: '9a6b1f6b88555f08',
    expiration: 1608559974000,
    timestamp: 1608559916148
  },
  raw_data_hex: '0a02bd6e22089a6b1f6b88555f0840f0ac95ade82e5a55080a12510a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4163636f756e74557064617465436f6e7472616374121b0a0254541215466b4beaeacf5cef074c785c25ec12578ecd93b0d070f4e891ade82e'
}