<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bazi Aghan</title>
    <description>The latest articles on DEV Community by Bazi Aghan (@bazibaziaghan).</description>
    <link>https://dev.to/bazibaziaghan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285443%2Fc6076220-4719-4ee1-bf93-8c859848df80.jpg</url>
      <title>DEV Community: Bazi Aghan</title>
      <link>https://dev.to/bazibaziaghan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bazibaziaghan"/>
    <language>en</language>
    <item>
      <title>Giving AI agents a Solana wallet without risking the treasury</title>
      <dc:creator>Bazi Aghan</dc:creator>
      <pubDate>Sat, 05 Dec 2026 21:31:44 +0000</pubDate>
      <link>https://dev.to/bazibaziaghan/giving-ai-agents-a-solana-wallet-without-risking-the-treasury-p1h</link>
      <guid>https://dev.to/bazibaziaghan/giving-ai-agents-a-solana-wallet-without-risking-the-treasury-p1h</guid>
      <description>&lt;p&gt;AI agents are getting wallets. They pay for APIs, swap tokens and move funds on their own. That is useful, and it is also a new way to lose money: an agent that can sign a transaction can be talked into signing the wrong one.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;AgentTx Firewall&lt;/strong&gt; to sit between an agent and its wallet, so that nothing gets signed until it has been checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: agents sign what they are told
&lt;/h2&gt;

&lt;p&gt;In a typical setup, the agent builds a transaction and signs it. If the agent misreads an instruction, picks up a malicious prompt from a web page, or simply makes a mistake, the signed transaction goes straight to the chain. By the time anyone notices, the funds are gone.&lt;/p&gt;

&lt;p&gt;The weak point is that the agent is trusted with two jobs at once: deciding &lt;em&gt;what&lt;/em&gt; to do and producing the exact bytes that get signed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The approach: intents in, checked transactions out
&lt;/h2&gt;

&lt;p&gt;AgentTx Firewall splits those jobs apart. The agent no longer submits a signed transaction. It submits an &lt;strong&gt;intent&lt;/strong&gt;: "transfer this amount to this address" or "swap this token for that one."&lt;/p&gt;

&lt;p&gt;The firewall then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Builds&lt;/strong&gt; the transaction from the intent itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decodes&lt;/strong&gt; it, so what will actually happen on chain is visible and checkable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checks it against policy&lt;/strong&gt; before anything is signed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Only a transaction that passes every check gets signed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What gets checked
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Allowlists:&lt;/strong&gt; the destination and the programs involved must be ones you have approved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authority escalation:&lt;/strong&gt; the transaction must not quietly hand control of an account to someone else.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spending limits:&lt;/strong&gt; caps on how much SOL can leave in one go.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slippage:&lt;/strong&gt; swaps must stay within the slippage you allow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Intent match:&lt;/strong&gt; the decoded transaction must do what the intent said, and nothing more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt injection:&lt;/strong&gt; intents that look like they came from injected instructions are flagged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simulation:&lt;/strong&gt; the transaction is simulated over RPC before signing, so failures and surprises show up first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The project is covered by 36 automated tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it ships
&lt;/h2&gt;

&lt;p&gt;It comes as a zero-dependency TypeScript SDK, a CLI and a web inspector, so it can drop into an agent's code, run in a pipeline, or be used by a person to see exactly what a transaction would do. It is built with TypeScript and Node.js on Solana, with Jupiter for swaps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Agents will only be trusted with real money if there is a layer that says no. Policy checks before signing are that layer: the agent stays useful, and the treasury stays safe even when the agent gets something wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live inspector: &lt;a href="https://agenttxfirewall.vercel.app" rel="noopener noreferrer"&gt;https://agenttxfirewall.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source code: &lt;a href="https://github.com/bazibaziaghan/agenttx-firewall" rel="noopener noreferrer"&gt;https://github.com/bazibaziaghan/agenttx-firewall&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm Bazi Aghan, a freelance full-stack and Solana developer in Abuja, Nigeria. I build web apps, storefronts and Solana programs, with a focus on wallet and transaction security. More of my work is at &lt;strong&gt;&lt;a href="https://baziaghan.com" rel="noopener noreferrer"&gt;https://baziaghan.com&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>web3</category>
      <category>security</category>
      <category>typescript</category>
      <category>ai</category>
    </item>
    <item>
      <title>Building OpsDesk: one platform to replace WhatsApp and spreadsheets for service businesses</title>
      <dc:creator>Bazi Aghan</dc:creator>
      <pubDate>Sat, 05 Dec 2026 21:11:12 +0000</pubDate>
      <link>https://dev.to/bazibaziaghan/building-opsdesk-one-platform-to-replace-whatsapp-and-spreadsheets-for-service-businesses-2ena</link>
      <guid>https://dev.to/bazibaziaghan/building-opsdesk-one-platform-to-replace-whatsapp-and-spreadsheets-for-service-businesses-2ena</guid>
      <description>&lt;p&gt;A lot of service businesses still run on WhatsApp threads and spreadsheets. Bookings come in by message, jobs get assigned by phone, technicians go out with notes on paper, and invoices get chased weeks later. Jobs get lost, customers get double-booked, and money comes in slowly.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;OpsDesk&lt;/strong&gt; to put all of that in one place: a white-label operations platform, so each business gets it under its own brand.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;OpsDesk covers the whole life of a job:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Online booking:&lt;/strong&gt; customers book a service themselves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A real-time dispatch board:&lt;/strong&gt; the office sees every job and technician live, and updates appear instantly for everyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An offline technician app:&lt;/strong&gt; technicians use a progressive web app (PWA) that keeps working without a signal, which matters on site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inventory, quotes and invoicing:&lt;/strong&gt; parts, prices and paperwork in the same system as the job.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Paystack payments:&lt;/strong&gt; customers pay online, and the business gets paid faster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Owner analytics:&lt;/strong&gt; the numbers an owner needs to see how the business is doing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A public REST API with signed webhooks:&lt;/strong&gt; so it can connect to the other tools a business already uses.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it's built
&lt;/h2&gt;

&lt;p&gt;OpsDesk is a full-stack TypeScript monorepo, managed with pnpm and Turborepo: about &lt;strong&gt;30,000 lines of TypeScript&lt;/strong&gt;, &lt;strong&gt;24 database models&lt;/strong&gt; and &lt;strong&gt;90 REST endpoints&lt;/strong&gt;. The front end is Next.js 15, the back end is NestJS, and the data lives in PostgreSQL with Redis alongside it.&lt;/p&gt;

&lt;p&gt;A few decisions that matter for a business that depends on it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every business's data stays separate.&lt;/strong&gt; OpsDesk is multi-tenant, meaning many businesses share one system. Tenant isolation is enforced in a single place, a Prisma extension, and backed up in the database itself with composite tenant foreign keys. One business can never see another's data, even by mistake.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Double-booking is impossible, not just unlikely.&lt;/strong&gt; A PostgreSQL EXCLUDE constraint stops two bookings from overlapping at the database level. Even if two customers book the same slot at the same moment, only one booking succeeds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live updates and background work.&lt;/strong&gt; The dispatch board updates in real time over Socket.IO WebSockets. Slower work, like generating PDFs, sending reminders and messages, and delivering webhooks, runs as background jobs on BullMQ and Redis, so the app stays fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tested and ready to deploy
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;346 automated tests&lt;/strong&gt; across 50 files, using Vitest and Supertest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A full end-to-end test&lt;/strong&gt; with Playwright that walks through the whole flow, from booking to payment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Docker Compose deploy script&lt;/strong&gt; that takes a new client from a blank server to a live site on HTTPS, with nightly backups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Continuous integration&lt;/strong&gt; with GitHub Actions, so every change is checked before it ships.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this matters for a business
&lt;/h2&gt;

&lt;p&gt;The point of all this engineering is simple: fewer lost jobs, no double-bookings, technicians who can work anywhere, and invoices that get paid faster. A business owner shouldn't have to think about tenant isolation or database constraints. They should just be able to trust that the system works.&lt;/p&gt;

&lt;h2&gt;
  
  
  See it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live demo: &lt;a href="https://opsdesk-iota.vercel.app" rel="noopener noreferrer"&gt;https://opsdesk-iota.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source code: &lt;a href="https://github.com/bazibaziaghan/opsdesk" rel="noopener noreferrer"&gt;https://github.com/bazibaziaghan/opsdesk&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm Bazi Aghan, a freelance full-stack and Solana developer in Abuja, Nigeria. I build booking systems, online stores, dashboards and custom web apps for businesses and creators. If your business still runs on WhatsApp and spreadsheets, see my work and pricing at &lt;strong&gt;&lt;a href="https://baziaghan.com" rel="noopener noreferrer"&gt;https://baziaghan.com&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>nestjs</category>
      <category>webdev</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
