Create an unsigned transaction to cancel market order by id.
Usage
visionWeb.transactionBuilder.cancelMarketOrder(ownerAddress, orderId);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
ownerAddress | Account address. | string | Default account address |
orderId | Order id. | string | - |
Returns
Object
Example
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'
}
}