Creates an unsigned unfreeze VS transaction. This unfreezes VS for the specified resource. If you unfreeze for PHOTON, it removes VISION POWER, which also removes VOTES. If the photon is already spent, the account will be negative for photon.
Usage
visionWeb.transactionBuilder.unfreezeBalance(
resource,
address,
receiverAddress,
options
);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
resource | Specifying the resource type. Must be either "PHOTON", "ENTROPY","CommunityVoting" or "FVGUARANTEE". | PHOTON | ENTROPY |CommunityVoting | FVGUARANTEE | PHOTON |
address | Address of the owner of the VS to be unfrozen (defaults to caller's default address). | string | Default account address |
receiverAddress | Address of user in which the resource is being removed from, due to unfreeze. | string | - |
options | Descriptions are below. | object | - |
options parameters
Parameter | Description | Type | Default |
---|---|---|---|
permissionId | The permission Id,optional, for multi-signature use. | number | - |
Returns
Object.
Example
visionWeb.transactionBuilder.unfreezeBalance("ENTROPY","VEoh3WDXviqcPZ1qVNCQpqLHYzigrQWTPL","VJJKvvPZ1cLkRoeYmswWPYdwi9Y2mkK8c8");
> {
visible: false,
txID: '94e3b73ae0ee448b374f9bb12e343b004c1b9c593e236258cc8f4ec65b3b7a55',
raw_data: {
contract: [ [Object] ],
ref_block_bytes: '5219',
ref_block_hash: '4e61aab31519891e',
expiration: 1608475857000,
timestamp: 1608475798249
},
raw_data_hex: '0a02521922084e61aab31519891e40e8a08785e82e5a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a154653cd48c2723cb985679f4e44d99c64d22d89f41d1215462d7a77f8bef6fe225bf5e353dd6a380f588a1496180a70e9d58385e82e'
}