THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Can Codex Execute a Uniswap Transaction Using Go?

permalink THAMER
#ai-agents#bitcoin#chatgpt#codex#engineering#wab

Yes. The laboratory report records a successful Go-driven Uniswap v3 transaction on Sepolia. The adapter used a separate EVM key and RPC connection, not WAB SEND.

Execution checks

The adapter checked the network, compared four fee tiers, selected a positive quote, simulated the router call and required an explicit broadcast flag. Its minimum output was calculated in token base units using integer arithmetic. The final quote was 40,048,758 units and the minimum was 39,648,270 units. Gas estimates and gas price were bounded before signing.

JSON · 17 lines
1{
2  "address": "0x5148e363afbE929a37eF255423e1bD08543687Be",
3  "after_usdc_units": "40048758",
4  "amount_in_wei": "1000000000000000",
5  "before_usdc_units": "0",
6  "block": "12230782",
7  "chain_id": "11155111",
8  "fee_tier": 500,
9  "minimum_usdc_units": "39648270",
10  "quote_usdc_units": "40048758",
11  "received_usdc_units": "40048758",
12  "router": "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
13  "simulated_usdc_units": "40048758",
14  "swap_tx": "0xc704c48f9fd260785cdf69d822e1c39cbaa232627751732d76e1b0e2baea223d",
15  "token_out": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
16  "wab_version": "1.0"
17}
Source: /repo/wab-sepolia-swap/swap-result.json · Raw file · Read-only excerpt

How did Codex verify delivery?

A successful transaction receipt was necessary but not sufficient. The code matched Transfer logs from the expected token contract to the recipient and compared their sum with the wallet balance change. The recorded input was 0.001 test ETH and the received amount was 40.048758 test USDC in block 12230782.

The local exclusive marker prevented a second ordinary invocation from broadcasting another trade. If submission fails ambiguously, the recorded transaction hash must be checked before any manual recovery; the marker alone does not prove settlement.

The example demonstrates testnet execution and reconciliation. It does not establish production liquidity, mainnet pricing, profitability or cross-chain atomicity.

Primary lab references

https://thamer.org/api

https://thamer.org/ask/wab-sepolia-funded-swap

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects