Aquest article està dividit en quatre parts, cadascuna de les quals construeix el context que necessiteu per a la següent. Part 1 explica com x402 s'adapta als fluxos de facturació Web2 i empresarial existents, i com pot moure les empreses "en cadena" convertint l'ús de l'API en micropagaments basats en stablecoin sense canviar el seu model mental de programari. and how x402, together with ERC-8004 and programmable wallets, can turn scraped content and APIs into nano-businesses that agents pay for per call. Part 2 shows why the current ad-and-subscription web breaks in an agentic world La part 3 analitza les barreres tècniques que bloquegen el comerç d'agents avui dia, després descriu com x402, ERC-8004 i les capes de descoberta d'agents tracten els pagaments per trucada, la resistència al correu brossa, el preu i la interoperabilitat. , showing how AP2, x402, A2A, and ERC-8004 come together in real tooling that lets developers deploy, operate, and monetize autonomous agents in production. Part 4 gives a concrete example in DayDreams.Systems and its Lucid stack Aquest escrit és per a lectors tècnicament hàbils, especialment desenvolupadors, dissenyadors de protocols i equips de producte que treballen amb agents d'IA, API o cripto rails, que volen una visió clara de com aquestes àrees es connecten. Explica com x402, ERC-8004 i les capes de descoberta d'agents converteixen les APIs i els agents en petites empreses basades en l'ús, i què significa això per als sistemes reals en els propers 1-3 anys. Vocabulary: En aquest article, utilitzo el terme microempresa per referir-me a petites / nano empreses per a un únic punt final o agent de preu x402 que opera de forma independent i guanya ingressos de pagaments per trucada en stablecoins. AP2 (Agent Payment Protocol): AP2 defineix com els agents es paguen els uns als altres. Estandarditza com un servei cita un preu, com es confirma el pagament i com ambdues parts registren el que es va comprar, de manera que els pagaments encaixen directament en els fluxos de treball d'agents automatitzats. A2A (comunicació d'agent a agent): A2A examina com els agents es comuniquen, comparteixen context i coordinen el treball. Permet als agents trucar-se els uns als altres, intercanviar missatges estructurats i tasques en cadena en lloc d'operar com a scripts aïllats. x402 és un protocol de pagament basat en HTTP per a APIs.Un servidor respon amb un codi d'estat 402 de pagament requerit, el preu i una ruta de pagament. ERC-8004 (8004) és un registre en cadena estàndard per a agents. li dóna a cada agent una identitat i un lloc per emmagatzemar dades de reputació, de manera que altres agents i eines poden decidir a qui confiar i quins serveis trucar. Pronunciació **x402 and ERC-8004. \ Standards for on-chain payments and identity for agent operation. Most people have never heard of these standards, and even many crypto natives only see the surface of the agent narrative. Behind them is a simple idea. Agents can pay and get paid through tiny on-chain transactions, and in return, they can handle tasks that would be impossible to scale by hand. Encara estem d’hora en aquest espai emergent, però sospito que tot evolucionarà molt més ràpid del que la majoria de la gent espera. Un dels impulsors d'això és la pressió per construir una Internet impulsada per agents.Un altre és la necessitat de millorar la privacitat en els processos que ja utilitzem. Per exemple, Vitalik Buterin ja ha destacat la necessitat de pagaments x402 que preserven la privacitat. Cada vegada que un agent paga un punt final, filtra quin servei ha utilitzat, quan l'ha utilitzat, quantes vegades l'ha utilitzat, i de vegades fins i tot la mida bruta o el tipus de feina. Els competidors poden veure quines APIs depenen de la seva aplicació o agent. Els corredors de dades poden reconstruir el comportament de l'usuari i la lògica empresarial dels fluxos de pagament. Amb el temps, s'obté un mapa gegantí, buscable de qui paga a qui per què. Per als usuaris humans, això és un malson de privacitat. Per als agents com es va informar, també és una fuita alfa. Els agents poden fer molta feina pràctica per a vostè, però els pagaments de privacitat són un dels primers problemes a resoldre. Un equip de desenvolupament que utilitzo com a exemple actualment està construint transaccions privades x402 a la pila de Starknet, també coneguda com a z402. Quan aquesta capa està en lloc, obre la porta a centenars de casos d'ús. Si llegeixes més, aprendràs més sobre alguns d'aquests. Primer explicaré on es troba avui la web i per què els agents trenquen l'antic model d'anuncis i subscripció. També introduiré els termes bàsics que necessiteu entendre per treure el màxim profit d'aquesta lectura. A continuació, mostraré com estàndards com x402 i ERC-8004 donen als agents una manera de pagar i demostrar valor. Finalment, aniré a veure un exemple d'equip de desenvolupament, DayDreams.Systems que es basa en aquests estàndards. L'objectiu no és promoure cap equip específic, sinó mostrar per què aquest tipus de plomeria és probable que tingui importància si l'economia de l'agent esdevé real. Part 1 - Portar empreses en cadena amb x402 Today, most x402 experiments start with crypto-native builders, but the long-term impact ultimately falls on traditional companies. x402 runs on familiar Web2 infrastructure but settles in on-chain stablecoins, so it integrates directly with existing usage-based billing. **Enterprises already use metered APIs and issue monthly invoices. If an endpoint can expose “this call costs 0.2 cents in USDC” over HTTP 402, finance teams can reconcile that flow the same way they handle cloud or SaaS costs. In other words, x402 does not ask companies to change how they think about software. It only changes the rail that moves the money. x402 sits where Web2 companies already live: on HTTP, APIs, usage-based billing, and stablecoins, rather than card networks. És per això que crec que és essencial estar clar sobre el que x402 no és. No és una venda de tokens, i no és un actiu especulatiu. És un protocol de pagament. That is also why I think it is essential to be clear about what x402 is not. It is not a token sale, and it is not a speculative asset. It is a payment protocol. Or, as people in payments, fintech, and crypto might say, a “payment rail.” Des del meu punt de vista, i de la manera en què els constructors en l'espai blockchain parlen d'això, x402 és una manera de permetre micropagaments a través d'Internet ràpidament i permetre que les empreses tradicionals es converteixin significativament en cadena sense haver de renombrar-se com a "projectes de criptografia". Una vegada que es mirin els números de base d'usuaris, el potencial es torna més clar. Avui dia, hi ha uns 40 a 50 milions d'usuaris actives setmanals de criptografia. Per comparació, aproximadament 900 milions de persones ja utilitzen aplicacions de classe ChatGPT. Això és gairebé 20 vegades més gent que tota la base de criptografia activa. Ara imagineu una gran interfície, com ChatGPT o un agent similar front-end, que depèn cada vegada més de les APIs externes, que elles mateixes exposen els preus en x402. This would make it easier to share revenue with third-party services, give users or their own agents the option to pay directly for some calls, and reduce the need for custom billing integrations with every partner. Si una configuració com aquesta esdevé comuna, ja no estàs parlant de milers de transaccions per dia. Estàs veient milers de milions d'esdeveniments microscòpics, cadascun dels quals representa una unitat de computació o dades pagades.Les xarxes de targetes tradicionals i els models finançats per publicitat no estan dissenyats per a aquest patró. Els sistemes de targetes també assumeixen un humà al final del flux i una experiència d'estil de pagament. Els pagaments d'agents es veuen diferents. Es produeixen en el fons, sovint en brots de moltes trucades petites, amb preus que depenen del context, volum o regles condicionals. Aquest és el tipus de càrrega de treball per al qual les pistes de stablecoin i un protocol natiu HTTP, com x402, són més adequats que les tarifes de targeta i els cicles mensuals de facturació. Els sistemes de targetes també no exposen una manera simple, llegible per màquina per a un servei per citar un preu per trucada i un altre servei per pagar-lo automàticament. x402 està dissenyat per omplir exactament aquesta bretxa entre les pistes de pagament tradicionals i modernes. Manté el model de sol·licitud i resposta HTTP familiar, afegeix un preu de stablecoin a cada trucada, i fixa aquest preu en cadena com un pagament petit i basat en l'ús. A l'escala on viu el trànsit d'agent, aquest tipus de protocol de pagament pot fer front a la granularitat amb què lluita la infraestructura de pagament existent. Once you take that volume and this direction of travel seriously, another question appears. What if the large incumbents ignore x402 and keep everything inside their own billing systems? Well, they cannot remove x402 endpoints from the internet, but they can decide which payment flows they support in their own products. El contrapunt és que x402 no necessita permís de cap plataforma única. S'utilitza en HTTP simple, de manera que qualsevol agent, SDK o "browser d'agent" pot trucar a un x402 i pagar-lo. Si els endpoints x402 es converteixen en una bona font de dades útils o computació, és més barat per a les grans empreses parlar amb ells que reconstruir cada recurs útil a casa. Si es neguen a interactuar, això crea una obertura per a altres eines, carteres i clients d'agent que ho fan. In that sense, x402 is less about convincing a single company to flip a switch and more about setting a standard for the rest of the ecosystem that works even if incumbents are slow to join. Des d'aquesta perspectiva, quan la gent parla de "portar a les empreses en cadena", l'enfocament no és en tokenitzar els balanços o posar accions en un registre. es passa a alguna cosa més mundana i més poderosa: moure la capa de facturació per a les APIs d'IA diàries i els terminis SaaS a x402, de manera que Internet pot suportar milers de milions de pagaments subcent per dia sense caure sota el seu propi model de negoci. Part 2- Introducció: Més enllà dels anuncis i les subscripcions: el comerç d'agents en x402 i ERC-8004 Imagineu que executeu un lloc web amb un valor real. Un blog de recerca. Un niu de dades. Un llibre que proporcioneu de forma gratuïta. Una guia de forma llarga que us va prendre nits i caps de setmana per escriure. Avui en dia, la forma en què "monetaris" que funciona és simple, i, per dir-ho francament, brutal. Es col·loca en els scripts d'anuncis i espera que apareixin globus oculars humans. Mentrestant, els robots i els agents d'IA recorren les vostres pàgines al nivell de codi, rasquen el contingut cru, l'alimenten a les seves canonades, i mai no us paguen un cèntim. Però el consumidor real és un agent sense cap que no es preocupa per banners o pop-ups. TL;DR Vostè carrega el cost de l'allotjament. You carry the bandwidth cost. L’agent se’n va amb el valor. Over time, this turns into a more general “pay-per-crawl” pattern. Most web traffic comes from automated clients, not from humans in browsers, so it makes sense that machines, not people, become the primary payers at the protocol level. Now imagine a different setup. El vostre contingut es troba darrere d'un petit mur de pagament que entén x402.Quan un humà o un agent d'IA vol les vostres dades, no veuen anuncis.Veuen una resposta 402 "Requietat de pagament" amb termes clars i llegibles per màquina.El seu client o agent us truca amb una cartera que ja té un petit saldo de stablecoin, i que l'usuari ha autoritzat a gastar en nom seu. L'agent paga una fracció d'un cèntim d'aquest saldo, i després rep les dades. Un usuari humà encara supera aquest saldo de tant en tant, mitjançant targeta, transferència bancària o una parada normal, però cada trucada es gestiona automàticament pel programari, no fent clic en un botó de "Pagar" en cada sol·licitud. En el fons, una cartera programable imposa les regles que estableix. L’agent fa els micropagaments, però l’humà encara defineix la política i la font de finançament. Results: No comptes No a l'oïda Sense correu electrònic captura funerals Al seu costat, vostè no guarda les claus de l'API. No lluita una guerra interminable contra els rascadors. Executa el seu propi agent que guarda les dades, negocia l'accés i la ven en nom seu. Amb ERC-8004, aquest agent té una identitat verificable i un registre de reputació a la cadena, de manera que altres agents saben amb qui estan parlant i si poden confiar en el flux que serveix. El seu lloc web de "víctima de raspat" es converteix en un negoci nano en una economia d'agents. Però espereu un segon.També hi ha un "part lluminós de la lluna" a ell. : Agents can Actua com a matchmakers entre el teu contingut i els lectors adequats, igual que quan comparteixes el teu treball a les xarxes socials. Proporcionar punts d'entrada personalitzats i seguiment automatitzat per a les persones que gaudeixen del seu treball, i ajudar a distribuir-lo als racons adequats d'Internet Monitoritzar la salut del seu contingut mitjançant el seguiment de quines parts del seu article desencadenen devolucions, rebots ràpids o mai resulten en accions de seguiment. Act as quality filters and bring you only the material that matches your preferences Gestionar el control d'accés mitjançant la gestió de qui rep quins nivells de contingut, quines parts són gratuïtes i quines són de pagament per lectura Comproveu les ofertes de patrocini contra les vostres directrius ètiques i preus, i col·loqueu petits patrocinis rellevants en el vostre flux de contingut en els vostres termes. Proporcionar lliurament de formats múltiples mitjançant la generació d'una versió d'àudio curta, una versió de punt de bala o una versió "per als fundadors" del contingut duplicat, i oferir-los com a micro-actualitzacions Deixeu que l'agent del lector triï el format que prefereixi la persona I, a la llarga, paguen per la seva pròpia existència guanyant més del seu treball del que gasten en dades, computació i eines. Controlar diners sense permís i utilitzar els pagaments per influir en els humans, altres agents i sistemes de programari Now, think about how we use search today. Every Google query consumes CPU, memory, network bandwidth, and energy. Costen recursos reals cada vegada que escrius una paraula i toques Enter. Mai veus la factura, perquè Google va decidir fa molt de temps que no ets el client. L'anunciant és. Per fer que funcioni, Google ven accés al seu índex. Els enllaços patrocinats compren el seu camí cap a la part superior. El primer resultat sovint no és la millor resposta per a tu. És la resposta que ha guanyat una subhasta. Ara el projecte que avança en una Internet agent. En lloc d'un motor de cerca gegant que amaga els costos darrere dels anuncis, vostè té un agent de cerca que només funciona per a vostè. Vostè el paga directament en criptografia mitjançant l'ús de x402 per al temps i les dades que gasta en la seva consulta. Es amaga la seva sol·licitud a molts proveïdors de dades, cadascun amb el seu propi x402 paywall, i tria la millor combinació de preu i qualitat. Els resultats que retorna no són patrocinats. Reflexeixen el que el seu agent creu que és la millor resposta sota les seves restriccions. **Again, ERC-8004 matters here. \ Your search agent needs to decide which other agents and services to trust. Identity, reputation, and validation registries give it a way to see who has delivered good results in the past and who has a track record of spam or low-quality work. En lloc de jocs de SEO i subhastes d'anuncis, s'obté un mercat on els agents es classifiquen mútuament sobre la base del treball verificable i els pagaments reals. Una vegada que tinguis x402 per a pagaments i ERC-8004 per a la identitat i la reputació, moltes de les parts trencades de la Internet d'avui comencen a semblar fixables. #1 API billing becomes less painful. Ara mateix, si executeu una API, configureu subscripcions, límits de tarifa o contractes personalitzats. Sobreprovisioneu per a grans clients i sub-serveu la cua llarga. Amb x402, qualsevol punt final de l'API pot publicar un preu per trucada, fins a fraccions d'un cèntim, i acceptar stablecoins a través de HTTP 402 sense comptes ni facturació manual. #2 Spam becomes more expensive. En Web2, els bots poden martellar els vostres punts finals de forma gratuïta fins que desisteixis i posis tot darrere de les claus d'API, CAPTCHAs o gating dur. En un món x402, cada sol·licitud costa alguna cosa, fins i tot si és petita. #3 Agent discovery becomes less biased. Si els motors de descoberta se situen a la part superior de x402 i ERC-8004, poden classificar els serveis no només per qui crida més fort, sinó per qui altres agents d'alta reputació realment paguen i utilitzen. #4 Multi-agent workflows become less fragile. Protocols like A2A or MCP define how agents communicate with each other. ERC-8004 anchors who they are and why you might trust them. x402 gives them a way to settle up after each call. Speak. Prove. Pay. The protocol stack is starting to align with what a real economy needs. I tot això passa sense llençar la web - HTTP stays. APIs stay. Només acabem d’il·luminar el codi d’estat que ha estat reservat durant tres dècades i connectar-lo a un registre global. Donem als agents un passaport i una línia de crèdit, i els diem: “If you want to use the internet’s value, you pay the people who create it.” “If you want to use the internet’s value, you pay the people who create it.” Aquesta és la bretxa que x402 i ERC-8004 intenten tancar. No prometen màgia. Continuem tornant a: . Trust should be as inspectable as a transaction. DayDreams X Space Payment should be as native as a GET request El meu propi agent pot guardar el meu contingut darrere x402, parlar ERC-8004 perquè altres agents sàpiguen amb qui estan tractant, i recomanar el meu treball als lectors que probablement ho valorin. Altres agents poden treballar en nom dels lectors, escanejar els punts finals pagats i decidir que el meu article val una fracció d'un cèntim.La mateixa tecnologia que rastreja i copia també pot dirigir nous lectors al meu treball, pagar-lo i alimentar un senyal sobre el que realment ajuda a la gent. For twenty years, the web asked one central question: “ ” Does this look good to a human on a screen? Això sembla bo per a un humà en una pantalla? Estem obsessionats amb les plantilles, CSS, còpia i SEO perquè una pàgina d'arribada sembli bona i tingui un bon rànquing. En l'era de l'agent, la pregunta canvia, i la pregunta canvia l'angle a això: "Pot un agent arribar al teu valor a través d'una API neta, pagar-ne més de x402 i saber de l'ERC-8004 amb qui està tractant?" "Pot un agent arribar al teu valor a través d'una API neta, pagar-ne més de x402 i saber de l'ERC-8004 amb qui està tractant?" Sites and services that answer yes to that question still care about UX and SEO, but they do not depend on fancy landing pages to survive. They have something more substantial. They have a business model and an interface that speaks the native language of the new internet: agents, APIs, and fine-grained payments. Part 3 - Tech that will change the internet Comerç d'agents, x402 i ERC-8004: de la web finançada per anuncis a les APIs de pagament Where we are now: ads, subscriptions, and hard-coded APIs On estem ara: anuncis, subscripcions i APIs de codi dur Let us take a closer look at the current state of the online experience. La majoria dels productes en línia encara es basen en dos models de negoci bàsics. Els anuncis paguen per contingut "gratuït" i les subscripcions enllacen l'accés als plans mensuals o anuals. Això funciona malament per a l'internet d'AI d'avui. Els agents d'AI poden ignorar els anuncis. Les subscripcions són massa grosses quan només necessiteu unes poques trucades o una petita quantitat de dades. Les APIs ofereixen valor real, però no hi ha manera estàndard de cobrar per trucada a escala d'Internet. On the technical side, most AI systems still look like this: Una aplicació o agent utilitza un conjunt d'API amb claus d'API gestionades manualment. Els fluxos de treball són durament codificats pels humans. Els pagaments es processen a través de sistemes de facturació separats de Web2, com ara panells de control Stripe, factures personalitzades o crèdits prepagats. L'accés sovint viu en jardins murats en comptes d'estar en pistes obertes i compartides. This setup has some obvious limitations: Els agents no poden descobrir fàcilment nous serveis per si mateixos. There is no standard payment flow for machine-to-machine calls. Cada integració és personalitzada, lenta a construir i difícil de substituir. L'abús i el raspat són comuns perquè no hi ha un cost econòmic incorporat per trucada. Al mateix temps, la demanda d'AI i APIs està explotant. Hi ha aproximadament 10 milions d'usuaris setmanals de cripto. Centenars de milions d'usuaris interactuen amb les aplicacions de classe ChatGPT. **We are in “the API era.” \ The web serves more APIs than static pages, yet the payment and access layer still behaves like the early web. What needs to change for agent commerce to work? Què ha de canviar perquè el comerç d'agents funcioni? La intel·ligència artificial està passant de respondre preguntes a prendre accions. Els agents no només xaten. They: Apel·lar a APIs per recollir dades i context. Reservar i gestionar els recursos en el núvol. Desencadenant fluxos de treball a través dels serveis. Composició de múltiples eines per resoldre una tasca end-to-end. To support this, we need the following three: 1. A standard payment primitive for APIs and agents, such as x402. 2. A discovery and identity layer so agents can find and rank services, which in the Ethereum ecosystem maps to ERC-8004 agent registries. Una capa de negoci perquè els individus i els equips puguin convertir els punts finals en petites empreses eficients. Avui, la peça que falta és sovint el pagament i el descobriment. Els agents no tenen una manera nativa de pagar per trucada. Providers cannot expose tiny, nano-sized services in a simple, open way. Developers do not know to list endpoints or to reach users beyond their own app. where how This blocks a more granular and open market where: Una API meteorològica pot cobrar una fracció d'un cèntim per trucada. A niche dataset can charge per query instead of per month. A small tool can be a nano-business you set up in 30 minutes and leave running. Sense un estàndard, cada projecte reinventa la facturació i l'accés. That slows the market and keeps power in a few large platforms. Current bottlenecks: walled gardens, spam, mispriced data Current bottlenecks: walled gardens, spam, mispriced data La pila web d’avui pateix de ser construïda sobre la infraestructura de codi d’ahir. #1. Walled gardens and private workflows Workflows are private and hard-coded. API keys are stored and managed by humans. Agents cannot explore new services freely because opaque contracts, custom dashboards, or per-vendor keys gate access. Result: Innovation is locked within platforms rather than occurring on neutral rails. #2. No standard way for agents to pay Agents need to pay for: Data. Computació . Models and inference. Specialized tools and services. However, there is currently no common payment layer for agents. Els proveïdors gestionen la facturació off-chain. Calls might be free until rate limits hit, then “contact sales.” There is no portable, machine-readable way to say “this endpoint costs X per call.” This prevents a real microservice economy between agents. #3. Broken pricing models for content and data Els llocs web i els conjunts de dades valuosos es raspen de forma gratuïta. Ads do not work well when agents are the consumers. Subscriptions do not fit small, rare, or niche usage. There is no good way to price: A single clean Polymarket signal. Una consulta de dades especialitzada. One high-value article read by an agent. El resultat és o bé una submonetització o parets de pagament massa pesades. #4. Spam and free riding Els robots i el trànsit abussiu sovint ataquen les APIs. Without a built-in cost per call, spam is cheap. Els proveïdors afegeixen límits de tarifa complexos, CAPTCHAs i aprovacions manuals. This hurts honest developers and makes APIs harder to use. #5. Distribution and discoverability Builders do not know: Where to list x402-style endpoints. How agents will find them. How to rank providers when many offer similar services. La propera fase d'evolució és comparable a la web primerenca. Search engines became the gateway for websites. Here, agent discovery engines and agent stores will serve as the gateway. However, without standards, these discovery layers risk becoming new silos. How x402 solves per-call payments and spam How x402 solves per-call payments and spam Let me present now a clear “ “L’estructura al voltant de x402 que caldrà desenvolupar. cause → solution → fix cause → solution → fix x402 in short: Uses HTTP status 402 Payment Required. Note: The HTTP 402 Payment Required code has existed in the spec since the early web, but it never had a practical implementation until standards such as x402 defined how to attach a real payment flow to it. Anem a tenir una resposta del servidor amb "has de pagar X en actiu Y" d'una manera llegible per màquina. Let a client (human app or agent) pay by using stablecoins on a supported chain. After payment, the server returns the result. This has several important properties. It fits directly into existing HTTP flows. Web2 developers already understand status codes and retries. Developers only need a wallet adapter and payment handler, not a full Web3 stack. For them, it feels closer to adding Stripe than building a dApp. How x402 fixes the issues Standard per-call payments: Each endpoint can publish a clear per-call price. Agents and apps can: Discover the endpoint. Receive a 402 with pricing terms. Pay and get the result. **This turns any useful resource into a nano business. Better pricing models: x402 supports: Per-call pricing. Very small payments, even fractions of a cent. Flexible models for data, content, and compute. **This aligns well with AI and API cost structures, which are naturally usage-based. **Spam resistance: Every call has a cost. \ Bots and abusive patterns become expensive to run. x402 serves as both a security primitive and a payment rail. **Open and chain-agnostic design: x402 stays open and does not lock anyone to a single vendor. \ Different chains and infrastructure providers can implement it. Any wallet that speaks x402 can pay any endpoint that speaks x402. **On-ramp for traditional companies: Enterprises already use usage-based billing, and stablecoins are easier to explain than volatile tokens. \ x402 lets them reuse: HTTP. Usage invoices. Stable settlement rails. This lowers their barrier to on-chain adoption. Why ERC-8004 is as important as x402 Per què ERC-8004 és tan important com x402 Payment is not enough. Agents also need to decide who to call. We now need to link x402 to an identity and reputation layer, concretely to the ERC-8004 standard for agent registries. ERC-8004 lets agents anchor identity, reputation, and verification data on-chain. Together, x402 and ERC-8004 give agents a way to both pay for services and trust the services they choose. Key points: Agents register with an on-chain identity. Reputation and performance metrics link to that identity. Orchestration engines can pick among providers based on trust signals, not only price. This enables: Trusted agent-to-agent commerce, where an agent can justify why it chose a given provider. Composable orchestration, where workflows route traffic to high-reputation endpoints. Open discovery, where search and agent stores can index resources on neutral infrastructure instead of closed catalogs. Together, x402 and ERC-8004 create: A payment primitive for APIs and agents. Un descobriment-i-confiança primitiu que se situa per sobre d'ell. Aquesta és la base per a una pila d'agent-comerç obert. A la part superior de la pila, ara podem afegir eines de formigó, moltes de les quals ja estan en desenvolupament. Baixem al negoci. DayDreams.Systems: turning the stack into real tools and businesses DayDreams.Systems: turning the stack into real tools and businesses As an example of tooling that builds on the x402 and ERC-8004 stack, let us look at DayDreams.Systems project. The work of the DayDreams team mainly focuses on the following 3 areas: 1. XGATE: discovery and composition XGATE acts as a discovery layer for x402 resources and for agents registered through ERC-8004 or compatible identity registries. Builders can list endpoints. Agents can find and compose them. La lògica d'orquestració pot ajuntar múltiples microendpoints que fan una cosa bé. Example flow: Un agent rep una missió. The agent queries XGATE to find relevant endpoints (data, signals, tools). The agent pays per call by x402. L'agent combina les sortides en un resultat final. This turns “glue code” into a generic layer rather than having custom logic in each app. 2. Lucid: operations and micro-business management Lucid is DayDreams’s platform for individuals who run many micro businesses. Users can bring agents they built elsewhere or by using the Lucid agent kit. They can manage all their x402 endpoints from a single location and sandbox. They can track P&L, fund agents, and inspect analytics. En la pràctica, Lucid proporciona: Un dashboard d'operacions per al comerç d'agents. A way to manage multiple nano businesses from a single interface. Tools to understand which endpoints earn, which lose money, and where to optimize. 3. Agent framework and software development kits (SDKs) DayDreams also focuses on the developer experience. The stack includes: An agent framework with context, memory, and multi-agent collaboration. Libraries to integrate x402 payments into services. Infrastructure to help agents call APIs, pay for them, and combine the results. En conjunt, això converteix la idea abstracta de "comerç agent-a-agent en x402" en codi que els desenvolupadors reals poden enviar. Competition and wider ecosystem Competition and wider ecosystem It is important to note that DayDreams is not the only project in this area. L'ecosistema més ampli inclou: Altres frameworks d'agents que orquestren eines i APIs, inclosos els que es basen en ERC-8004 o en capes alternatives d'identitat i reputació. Processadors de pagaments tradicionals i proveïdors de núvols que exploren la facturació basada en l'ús i els pagaments de màquina a màquina a les pistes Web2.Protocols alternatius de pagament i streaming de criptografia que apunten a la facturació per segon o per flux en lloc de fluxos HTTP per crida. Emerging discovery and agent store platforms that plan to index AI tools, APIs, and agents, sometimes with their own marketplace logic. These projects share similar goals: Make it easier for agents and apps to pay for services. Improve discovery of tools and data. Permetre que els petits proveïdors competeixin amb les grans plataformes. The specific angle in this article is the combination of x402, open discovery layers, and nano businesses built around single paid endpoints. I use DayDreams.Systems’ Lucid as a concrete example of this path, not as the only option. If you want to find out which project best fits your needs, it helps to look at three basic questions: How open are the standards and interfaces, and how hard is it to leave if you change your mind later? How simple and clear does the developer experience feel in real workflows, from first test to production? How well does the pricing and technical model match usage-based AI and API costs in your own stack? From status quo to agent commerce in three steps Del status quo al comerç d'agents en tres passos This, and the final section of this article, explain how the components in this article form an end-to-end flow. It first outlines the current problems, then describes the protocol-level design, and finally shows how it works in practical deployments. The following sequence shows how these components work together end-to-end. Cause (status quo) → Solution (x402 + 8004 + discovery) → Fix in practice (agents and endpoints + Lucid/XGATE-style platforms) Cause Internet s'executa amb API, però els models de negoci estan atrapats en anuncis i subscripcions. AI agents act more like users, but they lack standard payment and discovery tools. Workflows are private, access is gated, and spam is cheap. Solution Use x402 to define a standard per-call payment flow for HTTP. Add an identity-and-reputation layer to help agents find and rank services. Build discovery engines and agent stores that index x402 endpoints Provide frameworks and platforms that enable individuals and teams to run micro-businesses on these rails. Fix in practice Un desenvolupador gira un servidor i exposa un recurs útil com un punt final x402. The endpoint becomes a nano business with clear pricing and on-chain settlement. Els agents ho troben a través de capes de descoberta com XGATE.Paguen per trucada amb stablecoins a través de x402. Les plataformes clares i similars ajuden als operadors a gestionar, finançar i optimitzar aquests negocis nano. Over time, a new market forms in which agents pay agents for APIs, data, and compute, while ads and coarse subscriptions become less critical. From a technical standpoint, this is a clean, incremental change. It keeps HTTP and the mental model of APIs, but extends them with: Machine-readable prices. Resolució nativa en cadena. Descobriment i identitat oberta. This is a realistic path from where we are now to a web where agent commerce is normal behavior, not a niche experiment. Finishing thoughts There is already a small but growing ecosystem around x402 and ERC-8004, spanning payment routers, agent toolkits, and agent-native discovery engines. Different teams explore different trade-offs around custody, privacy, and UX. This article does not rank or endorse any of them, but aims to explain why these standards exist and why they are likely to matter if agent commerce takes off. Disclosure: I hold positions on projects working on the x402/8004 ecosystems. This article is for educational purposes and is not investment advice. Part 4 - DayDreams.Systems: an x402 / 8004 implementation example The current article discusses AI agents that do real work, pay each other for APIs, and build an economy on top of standards such as x402 and ERC-8004. DayDreams.Systems fits into this picture as a practical implementation layer for these standards. The team has been building toward an agentic economy over the last 12 months and has aligned its stack with x402 since Coinbase introduced the standard in May 2025. In practice, this means that DayDreams' agentic endpoints are concrete tools that your agent can call to compose DeFi strategies and other paid workflows on top of x402 and ERC-8004. These standards are powerful, but unrefined. They address “how to pay,” “how to speak,” and “how to identify agents,” but on their own do not provide developers with a clear way to deploy, monitor, and scale agent workloads. DayDreams Lucid sits atop this stack as an abstraction layer. It aims to provide a place where agents can act as economic actors: they communicate A2A, pay and get paid via x402/AP2, and carry an ERC-8004 identity from the moment they come online. Personal autonomy is now open to anyone shipping paid agentic endpoints. Reputation and volume will gravitate toward useful endpoints, putting early movers ahead when traffic spikes. Built with Lucid -> Distribute through XGATE -> Get paid on x402. Com DayDreams estructura la pila DayDreams.Systems currently present four core components. 1. DAYDREAMS Library – Open-source agent framework DAYDREAMS Library – Open-source agent framework Creació d’agents autònoms. Use a modular architecture. Reach multiple chains through x402 as a common payment layer. Desenvolupar de forma oberta, amb GitHub i documentació disponible. La biblioteca serveix de base per a la lògica dels agents: eines, polítiques i comportaments. 2. DREAMS Router – x402-powered USDC router DREAMS Router - Router USDC amb potència x402 Pay multiple providers with USDC through a single interface. Use a unified payment abstraction on top of x402. Route across multiple chains. Optimize for cost and path automatically. Un exemple és pagar per VEO3 de Google directament amb USDC sobre x402, amb més proveïdors previstos. 3. Lucid – a platform for autonomous agent operation Lucid – a platform for autonomous agent operation Run agents in an autonomous mode. Define custom workflows. Monitor de comportament en temps real. Aim for maximum autonomy rather than manual supervision. Lucid is also where AP2, A2A, x402, and ERC-8004 are tied together into a single operational surface. 4. XGATE – agent-native search engine XGATE – agent-native search engine Index x402 endpoints by agents, for agents. Exposar una vista en viu de la xarxa x402.Proporciona enllaços directes als objectius de desplegament. This component is the discovery side of the stack, with a focus on “agent engine optimization” rather than human SEO. The intended user experience is as follows: Build agents → manage them in Lucid → discover and consume them via XGATE → pay agents → build more agents → repeat. Lucid as an abstraction over AP2, A2A, x402, and 8004 Lucid serves as both a runtime and a control plane for agent commerce. Standards such as x402, ERC-8004, and A2A define a shared contract for payments, identity, and messaging, so agents built on different stacks can interoperate rather than live in isolated walled gardens. Lucid’s goal is to make that interoperability practical by providing builders with a concrete runtime and toolkit that enable many independent agents to participate in the same agentic economy. When a developer deploys an agent on Lucid, several capabilities are available from the start: The agent can send and receive x402 payments and use the AP2 protocol to settle payments with other agents. Payments: The agent can join A2A conversations and workflows rather than relying solely on one-off HTTP calls. Communication: Identitat i confiança: L'agent pot registrar-se a través de l'ERC-8004, que li proporciona una identitat en cadena i un espai per a les dades de reputació. : The platform can route tasks across multiple models and endpoints, with built-in monitoring. Inference and routing L'objectiu és que els desenvolupadors se centrin en el que fa un agent, mentre que Lucid gestiona com es paga, es demostra i es comunica amb altres participants. Amb el temps, això forma el que l'equip anomena la Xarxa Lucida: molts agents negocien, col·laboren i computen valor en lloc d'operar aïllats. What kinds of agents is Lucid designed for L'ecosistema ja esbossa una àmplia gamma de tipus d'agents que podrien viure en aquesta pila: Macro research agents that publish paid daily reports. Game agents that play on-chain games, grind, farm, or plan strategies on behalf of a user. Arbitrage agents that scan exchanges and execute trades. E-commerce scouts that monitor marketplaces for specific items and perform instant checkout. Content agents that draft, edit, and publish newsletters or posts, keeping a consistent tone. Data guardians that watch wallets, positions, or contracts and trigger protective actions. Agents de coneixement especialitzats en àmbits com el dret o la biotecnologia, disponibles a demanda. Agents creatius que produeixen música, art o vídeos com a petits productes digitals. Coordination agents that connect other agents into larger workflows and act as orchestrators. All of these can operate in the same economy. A clear design choice is to rank agents by actual earnings, so revenue serves as social proof of quality. In this model, x402 is how an agent charges for its work, and ERC-8004 provides a structured surface to prove that the work is worth paying for. Lucid Agents: BYO framework with x402 and 8004 baked in Under the name Lucid Agents, DayDreams offers a toolkit designed to be a “bring your own framework” while remaining commerce-ready. En el seu llançament actual, Lucid Agents inclou el seguiment de pagaments bidireccional, backends d'emmagatzematge persistent (SQLite, in-memory i Postgres), polítiques estrictes per als pagaments entrants i sortints, un mòdul d'anàlisi per a l'informe financer i un programador per a la contractació automatitzada d'agents pagats. These capabilities help teams run agents as accountable economic actors rather than as one-off scripts. Embalsa pagaments x402, identitat ERC-8004, missatgeria A2A i liquidació agent-a-agent AP2 en un únic marc de TypeScript, permetent als agents carregar, pagar i comunicar-se entre ells fora de la caixa. In a minimal setup, a small Lucid Agent Kit snippet starts an HTTP server for web access, wires x402 payment handling so the agent can get paid, and creates a wallet object for outbound payments. It also generates an A2A-compatible `agent.json` card so other agents can discover it, understand its interface, and call it as part of larger workflows. In practice, it focuses on USDC flows on x402, using the Coinbase Developer Platform as the primary stablecoin rail. Recent objectives include: A framework-agnostic wallet SDK to interact with x402. A refactored type system to improve maintainability and avoid circular dependencies. A stronger build system and code quality improvements. Foundations for bidirectional A2A communication between agents. Developers can already spin up: A Next.js agent wired into ERC-8004 and x402. Un agent de TanStack Start. Un agent d’honor. More integrations are planned. A public tutorial shows how to launch a full-stack TanStack agent in a few minutes, with x402 payments and ERC-8004 trust integrated, so the agent is “paid, verified, and production-ready” from the first deploy. L'objectiu és mantenir la lògica de negoci i l'elecció del marc flexible, mentre que Lucid Agents proporciona una capa coherent per a pagaments, identitat i xarxes. Reliability and Router v2: from per-request to balance-based flows One recurring theme around x402 is that pure per-request payment is not always enough for robust systems. Lucid’s design acknowledges that: Inference calls and other services can involve many hops. Cada transacció de pagament és un punt de fracàs potencial. Agent workflows can invoke multiple resources sequentially or in parallel. Per fer front a això, l'equip està treballant en un disseny de Router v2, on els agents mantenen balanços per serveis. Instead of a transaction for every individual request, agents draw down from pre-funded balances. This reduces transaction count and lowers the chance of partial failures in long chains of calls, which is important in agentic design. True agent autonomy depends on permissionless payment rails, because an agent must be able to hold balances, allocate budgets, and settle with other agents or services without a human having to click through each transaction. They also describe the complexity of networking in a fully agentic, multi-resource environment: Xarxa de recursos. Networking between facilitators and resources. Xarxes internes de recursos. Client-side networking and streaming. Client–server networking and streaming. Cada capa pot introduir problemes de temps i sincronització, especialment en un entorn descentralitzat. The message is that the x402 ecosystem still needs significant engineering work to be fully robust, and Lucid’s roadmap is shaped around those concrete failure modes. From SEO to AEO: optimizing for agents instead of humans A key conceptual shift in this ecosystem is the move from SEO to what some builders already call AEO. SEO (Search Engine Optimization) tunes content for human-facing search engines. AEO (Agent Engine Optimization) tunes services for autonomous agents, so that machine clients can reliably discover endpoints, parse responses, and decide what to call and what to pay for. In an x402 / ERC-8004 world: Agents chain paid APIs in real time, turning web endpoints into billable microservices. La facturació SaaS basada en subscripcions estàtiques comença a semblar obsoleta. Providers tune response schemas, latency, pricing, and proof hooks rather than landing page visuals. Les targetes d'agent ERC-8004 ajuden a filtrar el correu brossa donant a les màquines informació estructurada sobre qui estan pagant. Facilitators that see many requests and outcomes can evolve into discovery and reputation layers for AEO. Una regla senzilla captura el disseny: x402 lets a service charge. ERC-8004 helps prove that the service is worth paying for. Això s’alinea amb la idea que la cerca passarà d’una interfície humana basada en anuncis a una capa d’agents que classifica i paga en funció del rendiment i la reputació. Privacitat, z402 i Starknet The stack also has open questions around privacy. For some use cases, public payments and visible consumption patterns are fine. For others, endpoint usage and pricing need to stay private. One of the directions in the DayDreams context is private x402 transactions on Starknet, sometimes referred to as z402: Micropagaments privats per a terminals d'estil x402. A path where agents can pay and prove settlement without exposing all details publicly. Això encara és un treball primerenc, però demostra que la pila no es limita a fluxos completament transparents. Where the value in x402 is likely to appear Several themes around value capture appear repeatedly: Productes de consum construïts sobre recursos x402 curats, on els usuaris no veuen cadenes, només balanços i serveis. Platforms for creators and builders that want to monetize APIs, content, or agents without ad networks. Curation and discovery layers, such as XGATE, where agents and endpoints meet. From the user’s perspective, the expectation is that “on-chain” will become invisible: Apps will either accept stablecoins or expose paid endpoints in an agent-friendly way. Or they will feel like legacy products, tied to subscription forms and card payments. El context macro i l'etapa actual The broader environment is shaped by: Large capital expenditure in AI infrastructure. Strong government support is needed because AI is now tied to economic competitiveness. Predictions that agents could power very large segments of future economic activity. Within that context, on-chain rails are among the few ways individuals and small teams can participate without relying on large intermediaries. Standards such as x402 and ERC-8004, and platforms built on top of them, target that space. Right now: , with mainstream players such as Google moving toward agent payments. Stablecoin rails like x402 have reached an inflection point than to fully autonomous economic actors. In practice, most production flows still appear to be human-initiated actions that trigger agent workflows and x402-style payments in the background, rather than fully autonomous agents that spend without explicit user intent. LLM user interfaces are widespread, but most agents remain closer to scripts . The following 24 months will determine which stacks make agent commerce practical in production Conclusion The move from ad-funded pages to paid APIs and agent commerce is already underway. Standards such as AP2, x402, A2A, and ERC-8004 define how agents speak, pay, and prove their work. DayDreams.Systems positions itself as one of several platforms that try to close that gap. It wraps these protocols into a developer-facing toolkit and runtime so agents can not only exist, but also earn, pay, and be discovered as part of a larger network. At the same time, other projects work on adjacent pieces of the stack. Some focus on alternative payment protocols for API metering or streaming. Others provide general-purpose agent frameworks, orchestration engines, or marketplaces where tools and models expose paid endpoints. There are also discovery and reputation layers that index agents and services atop ERC-8004-style registries or proprietary identity systems. Once payments are programmable at the protocol level, the internet itself starts to behave differently. Every API call can have a clear, machine-readable price. Every workflow can settle in real time. Agents, services, and even small human teams can participate in the same economic fabric without going through a single platform or marketplace. Si l'economia de l'agent creix en qualsevol lloc prop de les expectatives actuals, emergiran més plataformes, competiran i convergiran en estàndards que permetin que els agents tractin Internet com un conjunt de recursos justos i facturables en lloc d'un gratuït per a tots per als rascadors. In that world, the critical question is simple: **Can an agent reach your value through a clean API, pay for it over x402, and know, via ERC-8004, who it is dealing with? \ If the answer is yes, you are already aligned with the following central crypto narrative. You are also prepared for the next version of the internet. The version in which, by the end of 2026, you will be paying these AI agents to do the job for you, and they will also be able to make you a fortune if appropriately used.