# How to Create a Matrix Smart Contract

**1、Create a smart contract**

Use Matrix IDE to develop, compile, test and adjust contracts. Details can be found in the User Guide.

Visit：[**ide.matrix.io**](https://www.matrix.io/blog/ide.matrix.io)

!\[Graphical user interface, application

Description automatically generated]\(<https://www.matrix.io/gitbook/Guides/Guides_10.fld/image001.png>)

**2、Deploy the contract**

● Use Matrix IDE to connect your node and deploy the contract.

!\[Graphical user interface, application

Description automatically generated]\(<https://www.matrix.io/gitbook/Guides/Guides_10.fld/image002.png>)

● Use the contract features on the Matrix Web Wallet to publish the compiled byte codes onto the Matrix Mainnet or the test chain.

!\[Graphical user interface, application, Teams

Description automatically generated]\(<https://www.matrix.io/gitbook/Guides/Guides_10.fld/image003.png>)


---

# 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.matrix.io/guides/how-to-create-a-matrix-smart-contract.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.
