January 18, 2022, 6:58:52 PM
Sell an asset you own, receiving another asset in return
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.
SELL is not used to move assets from one address to another (see MOVE)
SELL (spend_amount: decimal, spend_asset: asset, receive_asset: asset, spend_label: string)
SELL is most commonly used without subfunctions.
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.
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.
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.
Press CONNECT and select a signing device from the list.
When your device is connected, the device connection status will say 'CONNECTED' and the SIGN button will appear.
Click SIGN and follow the instructions on your device.
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.