> For the complete documentation index, see [llms.txt](https://docs.axonum.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.axonum.io/builders/solidity-compatibility.md).

# Solidity Compatibility

## AI Precompile Differences

Learn how to [deploy on AI EVM](/builders/deploy-on-ai-evm.md).

## EVM/Opcode Differences

Most smart contracts will work on Axonum without any changes. Check out the [Differences From Ethereum page](/chain/differences.md) for a detailed list of the few differences you should know about.

## Gas Differences

Axonum uses the same gas costs as Ethereum. However, Axonum also charges an [L1 Data Fee](https://docs.optimism.io/stack/transactions/fees#l1-data-fee) for the cost of publishing an L2 transaction to L1. This fee is charged based on the size of a transaction in bytes. As a result, smart contract optimization techniques can differ slightly on Axonum. Refer to the [Contract Optimization guide](https://docs.optimism.io/builders/app-developers/contracts/optimization) for more information.


---

# 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.axonum.io/builders/solidity-compatibility.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.
