IDRX Payout Agent - Live Demo

An agent that receives USD₸, converts it to IDRX (Indonesian rupiah stablecoin) on Textile FX, and pays the IDRX out to a named recipient - all on Celo mainnet (chain 42220), with an ERC-8021 attribution tag on every transaction and an ERC-8004 on-chain identity.

Built for the Celo “Agents Open for Business” hackathon (Loops House), track Stablecoin Corridors. Submission deadline: 7 Dec 2026, 09:00 GMT (16:00 WIB).

GitHub repo · ERC-8004 registration.json · Work wallet on CeloScan

Live on-chain status

Read live from Celo mainnet via public RPC. No wallet connection, no signature, nothing is sent.

ItemLive value
Latest blockLoading…
ERC-8004 agent ID10131 - owner: Loading…
Registry 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 · token 10131 on CeloScan
Work wallet CELOLoading…
Work wallet USD₸Loading…
Work wallet IDRXLoading…
Recipient IDRX
0xAC9B…1aF8 (outside the team)
Loading…

Payout status - DONE

The full $1.00 payout run is done: on 27 Nov 2026 at 21:37 WIB the agent paid 1.00 USD₸ on Textile FX and delivered 18,439.70 IDRX to the named recipient (0xAC9B…1aF8, outside the team). Firm quote rfq_8MOq_ogcAwK_gQMy: pay 1.00 USD₸, buy 1,843,970 atomic IDRX. The recipient balance in the live table above reads 18,439.70 IDRX. Everything below is already proven live on mainnet:

WhatLive proof
Funding swap: 14 CELO → 0.711710 USD₸ (Ubeswap V2)Tx 0xa3f7fcb6… (block 83889289), 27 Nov 2026, after a user top-up of 13 + 3 CELO
Approve USD₸ to Textile reactortx 0xdc628523…, block 83889424, success, gas 53,953
Textile swap: 1.00 USD₸ → 18,439.70 IDRXtx 0x6413cd83…, block 83889434, success, gas 196,493
Transfer 18,439.70 IDRX to recipienttx 0xf9f01ba3…, block 83889462, success
ERC-8004 registration (agent ID 10131)tx 0x4fc5e5e4…, block 83720943, 25 Nov 2026
CELO → USD₸ swap #1: 2 CELO → 0.103105 USD₸tx 0x5e298f01… (Ubeswap V2), 25 Nov 2026
CELO → USD₸ swap #2: 4.25 CELO → 0.213413 USD₸tx 0xb75ff647… (Ubeswap V2), block 83721910, 25 Nov 2026
Textile RFQ floor $1.00 proven liveFirm request for 0.10 USD₸ rejected HTTP 400: “sellAmount is below the RFQ minimum (1000000 atomic units)”. Preview of the same size passes (preview does not enforce the floor).
Unit testsnpm test - 23 passed / 0 failed (offline, no key)

How it works

  1. Check USD₸ / CELO / IDRX balances (public RPC read).
  2. Preview a Textile RFQ quote for USD₸ → IDRX (free, no key, no signature).
  3. Request a firm quote - keyless, with a free EIP-712 “Textile Taker Control” proof.
  4. Approve USD₸ to the Textile reactor (once, only the shortfall).
  5. Submit the swap - broadcasts transactions.swap exactly as returned.
  6. Transfer all IDRX received to the named recipient.
  7. Write an evidence JSON file with the quote, tx hashes, blocks, amounts, and fees.

Every transaction carries the ERC-8021 attribution suffix for code celo_41b8d909dcde (plus the Loops House code celo_e94fe5d67772 when set).

Try it yourself

git clone https://github.com/belski21-growl/idrx-payout-agent.git
cd idrx-payout-agent
npm install
npm test                                   # unit tests (offline, no key)
node agent/idrx-payout-agent.mjs --dry-run # preview quote + plan, sends nothing

A live payout run needs a funded work wallet (≥ $1.00 USD₸, the Textile floor) and the key via env var only - see the README. No live run is triggered from this page.

Contracts: USD₸ 0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e · IDRX 0x18Bc5bcC660cf2B9cE3cd51a404aFe1a0cBD3C22 · Textile LimitOrderReactor 0xa9AA0a64769cBed4d3B1Ceb4Df01CdE915C235b3