> For the complete documentation index, see [llms.txt](https://trianglesolutions.gitbook.io/project-s-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trianglesolutions.gitbook.io/project-s-docs/overview/smart-contracts.md).

# Smart Contracts

Imagine you have a group of friends and you want to play a game where each person takes turns doing a chore for the others. You could write out a list of all the chores that need to be done and when each person will do them. But what if someone doesn't do their chore when it's their turn? It might be hard to remember who did what and when, and it could be hard to make sure that everyone sticks to the agreement.

That's where smart contracts come in. A smart contract is like a computer program that can keep track of who does what and when. It's like a digital list of chores that everyone can see and agree to. When it's someone's turn to do a chore, the smart contract will remind them and make sure they do it. And if someone doesn't do their chore, the smart contract can automatically remind them or even stop them from doing something else until they do it.

Smart contracts can be used for all sorts of things, like making sure people get paid for their work or making sure that everyone follows the rules of a game. They're a helpful way to make sure that agreements are followed and that everyone is treated fairly.

## Video - Simply Explained

Simply Explained on Youtube has an incredible video explaining what Smart Contracts are!&#x20;

{% embed url="<https://youtu.be/ZE2HxTmxfrI>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://trianglesolutions.gitbook.io/project-s-docs/overview/smart-contracts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
