I was wondering how to implement a smart contract (in Solidity) where a user inputs some ETH and then the smart contract buys multiple tokens from an exchange? For example, the users inputs 1 ETH and then he/she gets BTC or XRP in return.

Does anybody have some tutorials or tips on how to approach this?


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.