> For the complete documentation index, see [llms.txt](https://docs.sat20.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sat20.org/english/learn-understanding-satoshinet/smart-contracts-and-gas.md).

# Smart Contracts and GAS

SatoshiNet's next major phase is smart contracts. STP + indexers solve how assets are identified, verified, safely entered, and safely exited. Smart contracts solve what assets can do after entering SatoshiNet.

With smart contracts, SatoshiNet can evolve from an asset circulation network into an application network.

## Why Smart Contracts Matter

Bitcoin L1 is suitable as a final settlement layer, but not for directly carrying complex applications. SatoshiNet smart contracts support the following while preserving Bitcoin-native asset facts, entry paths, and exit capability:

1. AMMs and asset trading.
2. Stablecoins and payments.
3. Asset issuance and composition.
4. Games, DePIN, RWA, and other applications.
5. AI Agent-triggered and AI Agent-managed automated contracts.

## Role of GAS

GAS is the resource metering and fee entry point for the contract network. It is not merely "an asset"; it serves three purposes:

1. Preventing cost-free occupation of network resources.
2. Pricing contract execution, verification, storage, and transaction processing.
3. Creating an economic connection among developers, nodes, applications, and users.

The public GAS narrative focuses on utility, consumption paths, risks, and limitations. It can attract ecosystem attention, but long-term value comes from real applications and real resource consumption.

## Contract Roadmap

SatoshiNet smart contracts can progress in layers:

| Phase                      | Goal                                                                              |
| -------------------------- | --------------------------------------------------------------------------------- |
| Template contracts         | Deterministic templates for AMMs, limit orders, stablecoins, and common scenarios |
| EVM compatibility          | Lower migration cost for developers                                               |
| Natural language contracts | Explore new interaction patterns between AI Agents and contracts                  |
| Agent contracts            | Let Agents trigger, explain, and verify contract actions                          |

Current design docs: [Smart Contract Protocol](/english/protocol-and-security/smart-contracts/contracts.md).


---

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

```
GET https://docs.sat20.org/english/learn-understanding-satoshinet/smart-contracts-and-gas.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.
