PageSourceSearch

https://innovationlab.fetch.ai/resources/assets/js/9b93dcd9.064dd9c6.js

js fetch.ai collected 2026-09-24 09:38:18 UTC 10,261 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkinnovation_labs=self.webpackChunkinnovation_labs||[]).push([[344],{75409:(n,e,s)=>{s.r(e),s.d(e,{assets:()=>c,contentTitle:()=>o,default:()=>d,frontMatter:()=>r,metadata:()=>i,toc:()=>l});const i=JSON.parse('{"id":"examples/on-chain-examples/on-chain-agents","title":"AI Agents Reshaping the On-Chain Ecosystem","description":"Introduction","source":"@site/versioned_docs/version-1.0.4/examples/on-chain-examples/agent-on-chain.mdx","sourceDirName":"examples/on-chain-examples","slug":"/examples/on-chain-examples/on-chain-agents","permalink":"/resources/docs/1.0.4/examples/on-chain-examples/on-chain-agents","draft":false,"unlisted":false,"tags":[],"version":"1.0.4","frontMatter":{"id":"on-chain-agents","title":"AI Agents Reshaping the On-Chain Ecosystem"},"sidebar":"tutorialSidebar","previous":{"title":"Model Context Protocol (MCP) and uAgents Integration","permalink":"/resources/docs/1.0.4/mcp-integration/what-is-mcp"},"next":{"title":"Mettalex - A Practical Implementation of AI Agents in the Web3 Ecosystem","permalink":"/resources/docs/1.0.4/examples/on-chain-examples/mettalex-agents"}}');var t=s(74848),a=s(28453);const r={id:"on-chain-agents",title:"AI Agents Reshaping the On-Chain Ecosystem"},o=void 0,c={},l=[{value:"Introduction",id:"introduction",level:2},{value:"Why AI Agents Matter On-Chain",id:"why-ai-agents-matter-on-chain",level:2},{value:"How uAgents make it happen?",id:"how-uagents-make-it-happen",level:2}];function h(n){const e={code:"code",h2:"h2",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,a.R)(),...n.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h2,{id:"introduction",children:"Introduction"}),"\n",(0,t.jsxs)(e.p,{children:["AI agents\u2014particularly Fetch.ai\u2019s ",(0,t.jsx)(e.strong,{children:"uAgents"})," and ",(0,t.jsx)(e.strong,{children:"SDK agents"}),"\u2014are autonomous participants in blockchain networks that respond to ",(0,t.jsx)(e.strong,{children:"on-chain events"}),", ",(0,t.jsx)(e.strong,{children:"manage digital assets"}),", and ",(0,t.jsx)(e.strong,{children:"facilitate multi-chain interactions"})," . By removing the need for centralized intermediaries or continuous human oversight, these agents transform standard on-chain flows into dynamic, intelligent services."]}),"\n",(0,t.jsx)(e.h2,{id:"why-ai-agents-matter-on-chain",children:"Why AI Agents Matter On-Chain"}),"\n",(0,t.jsxs)(e.ol,{children:["\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Autonomous Execution"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsx)(e.li,{children:"AI agents listen for on-chain triggers (e.g., token transfers, contract calls, governance proposals)."}),"\n",(0,t.jsx)(e.li,{children:"Once triggered, agents can execute trades, re-balance liquidity, or vote on proposals in real-time\u2014without waiting for human confirmation."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Enhanced Security & Trustlessness"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:["Because all agent actions (like escrow setup, fund releases, or cross-chain swaps) occur on-chain, everything is ",(0,t.jsx)(e.strong,{children:"transparent"})," and ",(0,t.jsx)(e.strong,{children:"auditable"}),"."]}),"\n",(0,t.jsxs)(e.li,{children:["Agents follow ",(0,t.jsx)(e.strong,{children:"immutable"})," contract rules, ensuring no single party can hijack the process."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Chain- & Wallet
1-Agnostic"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Chain-Agnostic"})," : AI agents can run across multiple blockchains\u2014Ethereum, Binance Smart Chain, Cosmos-based networks, or any EVM-compatible chain. They can coordinate cross-chain actions in a unified manner."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Wallet-Agnostic"})," : Users aren\u2019t tied to a specific wallet solution (e.g., MetaMask, Keplr, Phantom). Agents interface with any wallet, enabling broad user adoption and frictionless onboarding."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Flexibility & Extensibility"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:["Developers can tailor an agent\u2019s logic to handle ",(0,t.jsx)(e.strong,{children:"DeFi strategies, governance proposals, NFT auctions,"})," or ",(0,t.jsx)(e.strong,{children:"P2P trades"}),"."]}),"\n",(0,t.jsx)(e.li,{children:"Agents can integrate external oracles, off-chain data APIs, and bridging protocols, evolving beyond single-blockchain constraints."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Scalable, Efficient Workflows"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:["By delegating tasks to AI agents, dApps reduce the time users spend ",(0,t.jsx)(e.strong,{children:"manually"})," approving each transaction and gain a more ",(0,t.jsx)(e.strong,{children:"seamless"})," on-chain experience."]}),"\n",(0,t.jsx)(e.li,{children:"Agents can auto-manage tasks like yield farming reinvestment or on-chain voting schedules."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(e.h2,{id:"how-uagents-make-it-happen",children:"How uAgents make it happen?"}),"\n",(0,t.jsxs)(e.ol,{children:["\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Registration via Almanac Contract (Cosmos-Based)"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Cosmos-Based Registration:"})," ",(0,t.jsx)(e.code,{children:"uAgents"})," register themselves on a Cosmos-based chain (using Almanac contract smart contract)."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Immutable Proof of Existence:"})," This on-chain registration provides each agent with a ",(0,t.jsx)(e.strong,{children:"unique"}),", ",(0,t.jsx)(e.strong,{children:"verifiable"})," identity(address), ensuring that any other uAgents, AI Agents or service or dApps can confirm its authenticity before interacting."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Decentralized Discovery:"})," Other ",(0,t.jsx)(e.strong,{children:"uAgents"})," or ",(0,t.jsx)(e.strong,{children:"AI Agents"})," can query the Almanac contract to ",(0,t.jsx)(e.strong,{children:"discover"})," available agents, making it straightforward to integrate new agents into existing ecosystems."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Wallet
1-Agnostic Architecture"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Fetch (ASI Alliance) Wallet Integration"}),": uAgents come pre-integrated with ",(0,t.jsx)(e.strong,{children:"Fetch.ai (ASI Alliance) wallets"}),", but can also work seamlessly with other Web3 wallets like MetaMask, Keplr, or Ledger-based solutions."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Broad User Adoption:"})," Because there\u2019s no hard coupling to a single wallet, end-users don\u2019t have to switch providers or manage multiple accounts\u2014",(0,t.jsx)(e.strong,{children:"drastically reducing friction"}),"."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Secret Management:"})," Agents handle private keys or other secrets in a secure environment , further minimizing the risk of manual errors or security breaches."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Chain-Agnostic Operations"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Multi-Chain Compatibility:"})," Once registered, an ",(0,t.jsx)(e.code,{children:"uAgent"})," can ",(0,t.jsx)(e.strong,{children:"monitor"})," and act on ",(0,t.jsx)(e.strong,{children:"multiple blockchains"}),"\u2014Ethereum, Binance Smart Chain, Cosmos, Polkadot, and more."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Event Listening & Execution:"})," The agent listens for events (e.g., escrow creation, governance proposal) on any chain it supports. Once triggered, it can respond with an on-chain transaction in that same environment."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Unified Coordination:"})," For cross-chain workflows, an agent can coordinate matching orders or bridging logic across networks, which is critical for advanced DeFi or NFT scenarios."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Identifiable by Address or AName"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Unique Agent Address:"})," Each uAgent is identifiable by a standard address (agent1.....) which can be used to communicate to other agents on Fetch.ai blockchain."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"AName (Human-Readable Handle):"})," The Fetch.ai Name Service Smart Contract can also map a human-friendly name (AName) to an agent\u2019s address."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(e.li,{children:["\n",(0,t.jsx)(e.p,{children:"Extensibility & Custom Logic"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Plugin System:"})," Developers can embed specialized routines\u2014DeFi yield strategies, NFT auction logic, commodity order matching\u2014within the agent."]}),"\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:"Off-Chain Integration:"})," Because each agent can also pull data from oracles or external APIs (e.g., price feeds, weather data), it\u2019s easy to create autonomous, data-driven behaviors that integrate seamlessly with on-chain contracts."]}),"\n"]}),"\n"]}),"\n"]})]})}function d(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(h,{...n})}):h(n)}},28453:(n,e,s)=>{s.d(e,{R:()=>r,x:()=>o});var i=s(96540);const t={},a=i.createContext(t);function r(n){const e=i.useContext(a);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function o(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(t):n.components||t:r(n.components),i.createElement(a.Provider,{value:e},n.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.