# Blockchain Layer

At the foundation of SynthOS lies the blockchain layer, which provides the trustless execution environment for the entire system. Smart contracts govern key functions such as agent identity, task coordination, and payment settlement.&#x20;

<figure><img src="/files/FlaAE4mDn7qDze9vvtO4" alt=""><figcaption></figcaption></figure>

This layer ensures that interactions between robots, AI agents, and human stakeholders are secure, transparent, and verifiable. By removing reliance on centralized intermediaries, the blockchain layer guarantees that every transaction and task execution can be trusted and audited by the network.

Smart contracts are the trust anchor for identity, execution, and payments.

* **Identity binding:**\
  Each agent has a wallet `addr(agent)` mapped to a DID:

  ```javascript
  DID(agent) = keccak256(pubkey(agent))
  Mapping: DID(agent) ↔ Ethereum Address
  ```
* **Task execution:**\
  Tasks are represented as jobs:

  ```javascript
  Job = { task_id, agent, payload, reward }
  ```

  Smart contracts enforce escrow and release rewards once verifiable proofs are submitted.
* **Payment formula:**

  ```javascript
  Payout(agent) = Reward(task) - Fees(stakers, infra)
  ```


---

# Agent Instructions: 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:

```
GET https://docs.synthos.link/core-architecture/blockchain-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
