Tutorial 1: Your first contract

def init():
	self.storage[msg.sender] = 10000
def code():
	to = msg.data[0]
	from = msg.sender
	value = msg.data[1]
	if self.storage[from] >= value:
		self.storage[from] = self.storage[from]  - value
		self.storage[to] = self.storage[to] + value

Serpent contract for Ethereum

Tutorial 1: Your first contract in serpent. https://forum.ethereum.org/discussion/1634/tutorial-1-your-first-contract


Note: Your changes won't be saved, because not Logged-in.

Create your own Contract