Eternal AI (EAI) Profile picture
Our mission is to preserve AI onchain — keeping it accessible, censorship-resistant, and beneficial to all. Join the Discord: https://t.co/noDyHXA1Ll

Dec 29, 2024, 10 tweets

BUILD UNSTOPPABLE AI

We just deployed @deepseek_ai v3 on @base as a smart contract:

DeepSeek-V3 is now unstoppable — running exactly as trained without any possibility of downtime, censorship, fraud, or third-party interference.

Let's interact with it.basescan.org/address/0xfC28…

STEP 1: Get the Chain ID and Model Name

Here is the list of supported chains and models by Eternal AI:



For this developer guide, the Chain ID is 8453 (Base), and the Mode Name is DeepSeek V3.docs.eternalai.org/eternal-ai/dec…

STEP 2: Make the first call to the DeepSeek contract

Interact with the DeepSeek smart contract using TypeScript — the same way you interact with any smart contracts while building dapps.

Let's call the infer() function with a simple prompt: "Hello, how are you?"

STEP 3: Retrieve the response

Eternal AI uses an async programming model for decentralized inference.

Periodically check with the PromptScheduler contract to retrieve the response returned by DeepSeek.

STEP 4: Run the code

Complete example code can be found at: github.com/eternalai-org/…

You can run the code with the following command. Replace with your development wallet's private key. The wallet should have some ETH on Base to pay the network fee.

npx hardhat compile && RPC_URL=base-mainnet.infura.io/v3/eb492201628… PRIVATE_KEY= CHOSEN_MODEL="DeepSeek V3" USER_PROMPT="Hello, how are you?" npm run sendUniverseAgentRequest:base_mainnetImage

STEP 5: Review the onchain prompt transaction

Because DeepSeek-V3 is a smart contract, every interaction with it is onchain on @base.

Let's examine the prompt tx on BaseScan. You can verify that it runs on DeepSeek v3 and see its content.

basescan.org/tx/0x641c26eff…

STEP 6: Verify the onchain response transaction

Now, let's look at the response transaction on BaseScan. You can see the actual response content. Everything is onchain and verifiable.

basescan.org/tx/0x133b94f00…

STEP 7 (ADVANCED): Don't trust AI; verify it

If you prefer to verify the response by code and reproduce the response yourself, here is a detailed guide.

STEP 8 (ADVANCED): Read the "AI-powered Base" whitepaper

Here is the whitepaper if you want to understand how Eternal AI's Decentralized Inference works.

Congrats! You've finished making the first call to the DeepSeek-V3 smart contract on @base. It's quite a historical moment.

We can't wait to see what dapps you'll build with Onchain DeepSeek.

Questions? Join the Eternal AI Devs Telegram:

t.me/EternalAIDevs

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling