Eternal AI (EAI) Profile picture
Dec 29, 2024 10 tweets 5 min read Read on X
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…Image
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…Image
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?"Image
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. Image
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…Image
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…Image
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.

Image
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

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Eternal AI (EAI)

Eternal AI (EAI) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @CryptoEternalAI

Apr 1
Latest progress in AI, minus the noise.

Here’s what’s actually worth knowing recently from OpenAI, Google, Amazon, Runway, Eternal AI and more.

Save your scroll. 🧵 Image
1/ @OpenAI announced its first open-weight language model since GPT-2

OpenAI is going open-source again. Open and collaborative efforts helped science and AI move fast. Let’s go, open-source AI!

2/ @AmazonScience introduced Nova Act, a browser-controlling AI agent

Nova Act handles web tasks like bookings and testing—and does it better than Claude 3.7 Sonnet and OpenAI CUA. A step closer to AI that can do real work online.
Image
Read 8 tweets
Feb 5
We've brought Dobby onchain - the latest AI model by @SentientAGI

- Preserved on @Filecoin
- Decentralized served on @0xPolygon
- Made possible by @CryptoEternalAI

Grab an API key and have some fun building with Onchain Dobby 🔽 Image
Step 1: Get your Decentralized Inference API key

1. Go to
2. Login with Twitter
3. Get the Decentralized Inference API key for @0xPolygon

It's free.eternalai.org/api
Step 2: Make your first Dobby API call

1. Enter your API key
2. Set Chain ID as 137 (Polygon)
3. Set the model as "SentientAGI/Dobby-Mini-Unhinged-Llama-3.1-8B"
4. Set the system prompt
5. Set the user prompt

Then run this curl command: Image
Read 7 tweets
Dec 30, 2024
ONCHAIN DEEPSEEK-V3

- Preserved on @Filecoin
- Decentralized served on @Base
- Interact with @deepseek_ai smart contract in Solidity or via API
- Build Eliza AI agents with DeepSeek



ipfs://bafkreic562nps4rmmwr43hebvuks6hechxozfoelcmf75uk5ycus3dhk4e basescan.org/address/0xfC28…Image
1. At Eternal AI, our mission is to preserve humans' most important creations: AIs.

So we preserved @deepseek_ai v3 on @Filecoin.

- 642 GB written to @IPFS
- Split into 2716 chunks
- Powered by @LighthouseWeb3

ipfs://bafkreic562nps4rmmwr43hebvuks6hechxozfoelcmf75uk5ycus3dhk4eImage
2. The other mission is to make AIs censorship-resistant, tamper-proof & permissionlessly accessible to everyone.

So we deployed @deepseek_ai v3 on @base.

Anyone can access DeepSeek at any time. Every interaction with DeepSeek is onchain & verifiable.

basescan.org/address/0xfC28…Image
Read 7 tweets
Dec 26, 2024
🧠 Decentralized ZerePy Agent 🧠

Merry Xmas from Eternal AI & Zerebro.

This dev guide teaches you how to build your first Decentralized ZerePy agent with:

- Decentralized Inference by @CryptoEternalAI
- Onchain AI Model by @AIatMeta deployed on @Base
- Framework by @0xzerebro
BACKGROUND 1:

For this guide, we'll use @CryptoEternalAI's Decentralized Inference, which has the same interface as OpenAI (so no learning curve for you) — but is decentralized.

We'll use onchain @AIatMeta's Llama 3.3 deployed on @Base.

eternalai.org/api
BACKGROUND 2:

Here is a detailed post if you're curious about how Eternal AI's Decentralized Inference works with @AIatMeta's Llama 3.3 70B and onchain on @Base.

Read 17 tweets
Dec 25, 2024
Our BitAI technical whitepaper was posted yesterday! Huge thanks to everyone who's already provided feedback.

We understand the whitepaper was too technical, so we created a clear, visual presentation to make BitAI easy to understand!

Check out the non-technical thread below.Image
We are living in an AI-powered world. Image
AI is now woven into the fabric of everyday life Image
Read 14 tweets
Nov 13, 2024
AI-powered Ethereum: from rules-based smart contracts to AI-powered smart contracts.

Ethereum just got smarter.

Eternal AI brings onchain LLM to builders so they can write contracts & launch dapps that don’t just run but learn and think.

Whitepaper: eternalai.org/ethereum.pdfImage
1. Truly smart contracts

Today, dapps are rule-based programs coded as smart contracts. They're like rigid machines, unable to adapt or learn.

To address this, we must rethink our approach to dapps and create a framework for devs to add AI capabilities to their contracts.
2. Rule-based programming model

Consider a contract that manages a decentralized fantasy sports league. It needs to determine the winner between the two teams.

With rule-based, the contract uses a set of if-else statements to analyze the performance & determine the winner.Image
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(