Bitcoin Forum

Bitcoin => Project Development => Topic started by: Bitcoinmeetups.org on October 19, 2017, 03:05:27 AM



Title: Can we write a solidity smart contract which automatically distributes tokens to
Post by: Bitcoinmeetups.org on October 19, 2017, 03:05:27 AM
Can we write a solidity smart contract which automatically distributes tokens to anyone that sends ETH or other useful tokens to the contract?

Hello,

I have an idea about a smart contract.

If a user sends ETH or another valid token to the contract it automatically sends a corresponding amount of tokens back to the sender.

I have started an empty .sol git file below and you can edit it if you know how to write this.

https://github.com/bitcoinmeetups/bitcoinmeetups.github.com/edit/master/token-dispatch.sol

Bmeet

http://bitcoinmeetups.org


Title: Re: Can we write a solidity smart contract which automatically distributes tokens to
Post by: Bit_Happy on October 19, 2017, 07:41:11 AM
The main question: Answer == 99.999% = Yes
Smart contracts are powerful and I am eager/hungry to learn more.

During initial "talks" with a "hopefully qualified individual", he repeatedly answered like this:
(For example)    {My question regarding smart contract "extra options / special features, etc"} >  "I ask: Is this possible, and is it easy for the general public" >> At least 3 times he would answer { Difficult with a simple wallet & easy with dApp }

Having no idea what he was talking about, I wanted to learn, and here is a great start:

Quote
DApp is an abbreviated form for decentralized application.

A DApp has its backend code running on a decentralized peer-to-peer network. Contrast this with an app where the backend code is running on centralized servers.

A DApp can have frontend code and user interfaces written in any language (just like an app) that can make calls to its backend. Furthermore, its frontend can be hosted on decentralized storage such as Swarm or IPFS.

If an app=frontend+server, since Ethereum contracts are code that runs on the global Ethereum decentralized peer-to-peer network, then: ....

https://ethereum.stackexchange.com/questions/383/what-is-a-dapp



Title: Re: Can we write a solidity smart contract which automatically distributes tokens to
Post by: Bitcoinmeetups.org on October 21, 2017, 04:24:15 AM
It's nice that you are replying but this is a thread about writing a specific smart contract together.


Title: Re: Can we write a solidity smart contract which automatically distributes tokens to
Post by: Cryptoland on November 17, 2017, 09:35:51 PM
Yes you can, but why would you when projects like Crowd Machine will do all of that for you with out the fee.  They create decentralized apps and smart contracts without code  https://bitcointalk.org/index.php?topic=2398960.new#new (https://bitcointalk.org/index.php?topic=2398960.new#new)