cancelMarketOrder

创建一个未签名的交易,用于取消市场交易订单。

用法

visionWeb.transactionBuilder.cancelMarketOrder(ownerAddress, orderId);

入参

参数描述类型默认值
ownerAddress拥有者账户地址string登录账户
orderId订单 idstring-

返回值

object,创建的 transaction 对象。

示例

visionWeb.transactionBuilder.cancelMarketOrder('f2041ee178427f6b89b673c292cdefa6eb29a6b506003a2a1fa68ebe6075aa69');
> {
  result: true,
  txid: '1d1d35e03f77687cd0bd2b010abda4590cab8d6f26ae45345712321e6a72b49b',
  transaction: {
    visible: false,
    txID: '1d1d35e03f77687cd0bd2b010abda4590cab8d6f26ae45345712321e6a72b49b',
    raw_data: {
      contract: [Array],
      ref_block_bytes: '4fcc',
      ref_block_hash: '56a4b984e288b77f',
      expiration: 1609678254000,
      timestamp: 1609678195957
    },
    raw_data_hex: '0a024fcc220856a4b984e288b77f40b0dfb3c2ec2e5a77083512730a36747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4d61726b657443616e63656c4f72646572436f6e747261637412390a1546b03b026cdeb86dc1c50d13f55a8ff5650eb252ad1220f2041ee178427f6b89b673c292cdefa6eb29a6b506003a2a1fa68ebe6075aa6970f599b0c2ec2e'
  }
}