updateToken

Create an unsigned transaction to update vrc10 token information,equivalent to updateAsset.

Usage

visionWeb.transactionBuilder.updateToken(options, issuerAddress);

Parameters

ParameterDescriptionTypeDefault
optionsDescriptions are below.object-
ownerAddressAddress of the token issuer.stringDefault account address

options parameters

ParameterDescriptionTypeDefault
descriptionThe description of token.string-
urlThe token's website url.string-
freePhotonEach token holder's free photon.number0
freePhotonLimitThe total free photon of the token.number0
permissionIdOptional, for multi-signature use.number-

Returns

Object.

Example

visionWeb.transactionBuilder.updateToken({
  description: 'v5',
  url: 'https://vron.bkbos.space',
  freePhoton: 1000000,
  freePhotonLimit: 100,
  permissionId: 1,
});
> {
  visible: false,
  txID: '1064390ab60f82efa706007db16547650d973245b87ef15d4c97c7ff39aa896f',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: 'e49c',
    ref_block_hash: '84dbb7aa87eaaac6',
    expiration: 1608476688000,
    timestamp: 1608476628824
  },
  raw_data_hex: '0a02e49c220884dbb7aa87eaaac64080fdb985e82e5a76080f12700a30747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5570646174654173736574436f6e7472616374123c0a1541401a8da8a7fc86f0087f8c62e630d10df10a963b12037432741a1868747470733a2f2f76726f6e2e626b626f732e737061636520c0843d2864280170d8aeb685e82e'
}