2

I'd like to create a smart contract to execute trades on exchanges and transfer the received ethereum to another wallet. Something like this: * Receive token into wallet * Smart contract sells token for ethereum * Ethereum transfers to another address.

Is this possible?

1
  • If the exchange has a contract interface this is possible on-chain (you only need a contract for this). Something which comes to mind is direct interaction with EtherDelta or something similar. However, if you want to use a centralized exchange, you will need to transfer your tokens to the exchange (using their 'normal' address), run a script to sell tokens and then run another script to withdraw your ETH to an address. So in short it is possible but not only with contracts if exchange doesn't have an interface. Also keep withdraw fees in mind! – JBrouwer Mar 31 '18 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.