Smart Contract Playground

A smart contract is code plus persistent state living at an address. Anyone can call its functions; the code enforces the rules. Below is a real ERC-20 token contract. Pick who's calling, call a function, and watch the state and events change. Break a rule (send more than you hold) and the call reverts: nothing changes.

Token.sol read-only sample
Calling as You (msg.sender)
Call a function
Contract state
1,000 totalSupply
balanceOftokens
allowance (owner → spender)
No approvals yet.
Events & calls
No calls yet. Call a function to emit events.