createMarketSellAsset

Create an unsigned transaction to create market order to sell asset.

Usage

visionWeb.transactionBuilder.createMarketSellAsset(
  ownerAddress,
  sellTokenName,
  sellTokenQuantity,
  buyTokenName,
  buyTokenQuantity
);

Parameters

ParameterDescriptionTypeDefault
ownerAddressOwner account addressstring.Default account address
sellTokenNameSell token name.number|string-
sellTokenQuantitySell token quantity.number-
buyTokenNameBuy token name.number|string-
buyTokenQuantityBuy token quantity.number-

Returns

Object

Example

visionWeb.transactionBuilder.createMarketSellAsset("1000003", 100, "1000004", 100);
> {
  visible: false,
  txID: '46310a36eacb148f02073ba1c132edcde9067870fdb816ba5549d882999578bc',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: '4e4c',
    ref_block_hash: 'ab481782b77da60b',
    expiration: 1609677084000,
    timestamp: 1609677025309
  },
  raw_data_hex: '0a024e4c2208ab481782b77da60b40e0aaecc1ec2e5a69083412650a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e4d61726b657453656c6c4173736574436f6e7472616374122d0a1546b03b026cdeb86dc1c50d13f55a8ff5650eb252ad12073130303030303318642207313030303030342864709de0e8c1ec2e'
}