1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/user-guides/compute-to-data/publish-a-c2d-algorithm-nft.md

64 lines
2.9 KiB
Markdown
Raw Normal View History

---
description: How to publish a C2D algorithm NFT on the Ocean Market
---
# Publish a C2D Algorithm NFT
<figure><img src="../../.gitbook/assets/the-algorithm.gif" alt=""><figcaption><p>You're an algorithm guru after all!</p></figcaption></figure>
### 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)