LAST UPDATED:

January 18, 2022, 6:58:52 PM

SELL function

MNEMONIC:

-

Sell an asset you own, receiving another asset in return

TABLE OF CONTENTS

  1. SUMMARY
  2. DISAMBIGUATION
  3. SYNTAX
  4. USAGE
  5. CHAINING
  6. RELATED FUNCTIONS

1. SUMMARY

The SELL function is used to sell assets from one labelled address and receive another asset in return. The SELL function can only be used to sell assets from an address in your custody. The SELL function is compatible with hardware wallets only.

2. DISAMBIGUATION

SELL is not used to move assets from one address to another (see MOVE)

3. SYNTAX

SELL     (spend_amount: decimal, spend_asset: asset, receive_asset: asset, spend_label: string)

4. USAGE

SELL is most commonly used without subfunctions.

Composing a SELL Transaction

SELL(1000,DAI,ETH,TESTNET1)

This command will prepare a transaction to sign which will sell 1,000 DAI from the labelled address TESTNET1 in exchange for ETH.

If the command submitted to the Command Line has not been formatted correctly, Vektor will open the SELL Function Form to help build and execute the intended command.

screenshot

Once the amount, the spend asset, the receive asset and the spender address have been inputted, the Function Form gives a correctly formatted command.

Pressing INSERT pastes the command to the Command Line, ready for execution.

-

Signing a SELL Transaction

The Signing Request Modal gives you the opportunity to review your transaction details.

In the top right corner, you can check the connection status of your hardware wallet.

screenshot

Press CONNECT and select a signing device from the list.

screenshot

When your device is connected, the device connection status will say 'CONNECTED' and the SIGN button will appear.

screenshot

Click SIGN and follow the instructions on your device.

screenshot

Once your command has been successfully submitted the notification of the transaction broadcast will appear. Click VIEW to check the confirmation status on the associated public blockchain explorer.

5. CHAINING

-