---
description: How to publish a C2D algorithm NFT on the Ocean Market
---

# Publish a C2D Algorithm NFT

{% embed url="https://media0.giphy.com/media/3o6Yg4GUVgIUg3bf7W/giphy.gif?cid=ecf05e47ic4sshrkoyjtqms5un2lefebokek9hxcngiedlod&ct=g&ep=v1_gifs_search&rid=giphy.gif" %}
You're an algorithm guru after all!
{% endembed %}

### Publish Your Algorithm NFT

#### Step 1 - Navigate to the Ocean Market

* Go to [https://market.oceanprotocol.com](https://market.oceanprotocol.com)

#### Step 2 - Connect your wallet

* Click the top right Connect Wallet button to connect your self-custody wallet to the Ocean Market

<figure><img src="../../.gitbook/assets/market/connect-wallet.png" alt=""><figcaption><p>Connect your self-custody wallet</p></figcaption></figure>

#### Step 3 - Click the Publish link in the top left corner of the page

* Click the Publish link

<figure><img src="../../.gitbook/assets/c2d/publish.png" alt=""><figcaption><p>Navigate to the Publish page</p></figcaption></figure>

#### Step 4 - Enter the metadata

* Enter the metadata for your algorithm NFT paying special attention to select the Algorithm asset type button:

<figure><img src="../../.gitbook/assets/c2d/algo-asset.png" alt=""><figcaption><p>Be sure to select the Algorithm asset type</p></figcaption></figure>

* Select the appropriate Docker image to run your code - most algorithms are written in Javascript or Python, so you can use either of these Docker images or your own custom image!

<figure><img src="../../.gitbook/assets/c2d/docker-image.png" alt=""><figcaption><p>Select the appropriate Docker image for your algorithm type</p></figcaption></figure>

#### Step 5 - Enter the Access information

* Make sure to keep this option checked! ✅

<figure><img src="../../.gitbook/assets/c2d/algorithm-privacy.png" alt=""><figcaption><p>Keep this option checked for Compute-to-Data</p></figcaption></figure>

#### Step 6 - Set a price, Fixed or Free, for your algorithm

* It is recommended that you set a fixed price since the price that you choose for your algorithm will be charged any time that someone selects to run your algorithm on a dataset, including datasets that aren't yours!

<figure><img src="../../.gitbook/assets/c2d/Set-a-price-algo.png" alt=""><figcaption><p>Set a price for your C2D algorithm NFT</p></figcaption></figure>

#### Step 7 - Approve the preview

* Your preview should look like the following:

<figure><img src="../../.gitbook/assets/c2d/preview-publish.png" alt="" width="375"><figcaption></figcaption></figure>

#### Step 8 - Submit the transactions

* Click the pink Submit button at the bottom of the page and sign the two transactions with your wallet. You'll have to pay for gas when you sign to publish your algorithm asset.

<figure><img src="../../.gitbook/assets/c2d/Sign-transactions.png" alt=""><figcaption><p>Sign and pay gas for 2 transactions on the final publishing step</p></figcaption></figure>

#### Congratulations on publishing your algorithm!

* On to the next step -> [Publish a C2D Data NFT](publish-a-c2d-data-nft.md)
