unfreezeBalance

创建一个未签名的交易,用于解冻 vs。

用法

visionWeb.transactionBuilder.unfreezeBalance(
  resource,
  address,
  receiverAddress,
  options
);

入参

参数描述类型默认值
resource指定的资源类型PHOTON | ENTROPY|CommunityVoting|FVGUARANTEEPHOTON
address解冻的 vs 所有者账户地址(默认为交易发起者地址)string默认账户地址
receiverAddress解冻而要从中删除资源的账户地址string-
options可选参数,具体参数见下方object-

options 参数

参数描述类型默认值
permissionId设置多重签名时使用number-

返回值

object,创建的 transaction 对象。

示例

visionWeb.transactionBuilder.unfreezeBalance("PHOTON","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'
}