PACTO CITY GUIDE

Los artículos de la guía se muestran en inglés mientras se preparan las traducciones.

What is a smart contract? Think of a vending machine

A vending machine follows rules. It does not judge whether you enjoyed the drink. That distinction helps explain smart contracts.

Pacto City ·

A smart contract is a program on a blockchain that follows defined rules. Despite the name, it is not a lawyer who understands every promise.

Put in a coin, press a button

A vending machine checks the payment and selection, then performs a set action. You do not need a shop assistant for each purchase.

A smart contract works similarly. When called, it checks conditions it can read and runs the relevant instructions. It might transfer tokens or prevent a withdrawal while tokens remain locked.

The machine cannot judge the taste

Dispensing a drink and enjoying it are different things. A program cannot decide whether a design is beautiful simply because the brief says “make it beautiful.”

Someone must define how real-world results are checked. That may require a person's confirmation or a source of outside information.

What about the legal agreement?

Running software does not, by itself, establish the same legal effect everywhere. The parties' agreement and applicable rules still matter.

Keep this distinction

A smart contract executes rules. Choosing good rules and checking real-world performance are separate tasks.

Más sobre este tema →Todas las guías