# Deploy Custom Chaincode

{% hint style="success" %}
Spydra runs chaincode as an external service to be able to gain more control over and to manage chaincode runtime more effectively. So the uploaded chaincode must be compatible to run as external service.\
Refer [Chaincode as external service](/how-to/private-network/custom-apps/chaincode-as-external-service.md) page for more details.
{% endhint %}

***

## <mark style="color:purple;">Create Custom App</mark>

* Navigate to the Network where you want to deploy Custom App
* Select Apps in the side menu

![Click on Apps](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/77a7d0c2-09a5-484e-9d7b-3c725ec267c2/e479b39f-4708-45f5-bfd4-18bfbbe204eb.png?mark-x=-8\&mark-y=902\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz01NDYmaD0xMjAmZml0PWNyb3AmY29ybmVyLXJhZGl1cz0xMA%3D%3D)

* Click on "Create App" on the Apps page

![Click on Create App](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/ea8b094d-8a28-4bac-bf65-22ae5079a037/81248fe6-51a6-4537-8648-ce8f90d9b6d0.png?mark-x=2464\&mark-y=286\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz0yNzImaD0xMDQmZml0PWNyb3AmY29ybmVyLXJhZGl1cz0xMA%3D%3D)

### Step 1: App Details

* Enter Name and Description

![Type "Custom App"](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/01890941-e9ab-4464-b5cd-8b05172469cb/4bb82925-fe39-45b8-8fb8-cc881387ea5a.png?mark-x=212\&mark-y=790\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz0xMjA4Jmg9MTEyJmZpdD1jcm9wJmNvcm5lci1yYWRpdXM9MTA%3D)

* Select the Souce code and click on "Create App"

![Click on Create App](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/22861df8-5cfc-4747-ad4a-9a97621d8ae5/da2b7c59-5513-47b0-b829-06be4b9fd186.png?mark-x=464\&mark-y=1358\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz0yNzImaD0xMDQmZml0PWNyb3AmY29ybmVyLXJhZGl1cz0xMA%3D%3D)

### Step 2: Chaincode Details

* Enter Chaincode details like name and description
* You can choose to upload the chaincode by Git Repo or upload a ZIP file

**GIT Repository**

* To upload the chaincode from a GIT Repo, share all the required information like, Git username, Password, GIT URL, Branch, Subdirectory, etc.

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

**Upload Chaincode**

* Alternatively, you can upload the chaincode as a File

![Click on Upload File](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/ec975168-0ac0-428f-8dca-3df52a0b6908/28424ceb-e38c-4850-9997-e7ba25fb90ea.png?mark-x=212\&mark-y=408\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz00OTYmaD02NCZmaXQ9Y3JvcCZjb3JuZXItcmFkaXVzPTEw)

* Upload Chaincode. Learn more about [Supported File Formats - ZIP format](/how-to/private-network/custom-apps/supported-file-formats-zip-format.md)

![Click on Upload](https://images.tango.us/workflows/e1774d2e-4fcd-4b52-a91b-3e36d31e8f82/steps/e665db20-7e53-4d8c-a5d7-0c55ca66416c/ae58d2d8-83fe-458c-bd0d-22d88181d650.png?mark-x=464\&mark-y=1352\&m64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL2JsYW5rLnBuZz9tYXNrPWNvcm5lcnMmYm9yZGVyPTglMkNGRjc0NDImdz0yMTImaD0xMDQmZml0PWNyb3AmY29ybmVyLXJhZGl1cz0xMA%3D%3D)

* Once all the details are entered, click on Upload to deploy custom chaincode.
* Definit initialisation functions (optional)<br>


---

# 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.spydra.app/how-to/private-network/custom-apps/deploy-custom-chaincode.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.
