Create an unsigned transaction to update vrc10 token information,equivalent to updateAsset.
Usage
visionWeb.transactionBuilder.updateToken(options, issuerAddress);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
options | Descriptions are below. | object | - |
ownerAddress | Address of the token issuer. | string | Default account address |
options parameters
Parameter | Description | Type | Default |
---|---|---|---|
description | The description of token. | string | - |
url | The token's website url. | string | - |
freePhoton | Each token holder's free photon. | number | 0 |
freePhotonLimit | The total free photon of the token. | number | 0 |
permissionId | Optional, 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'
}