Loops House




RigBase Payout
Cross-border contractor payroll by an agent that can't overspend.

Agents Open for Business
Links
Team
1 member- RIOwner
RigBase
Overview
Problem. Small studios with contractors in Lagos or Jakarta pay them in one of two ways. They use bank wires, which are slow, cost $25+ in fees and give bad FX. Or they send USD stablecoins the contractor must off-ramp themselves. Automating this with an AI agent normally means handing the agent the treasury key, and one bug or prompt injection can then drain the wallet.
How it works.
- The studio admin wallet is an EOA delegated to Altana's account via EIP-7702. Once, the admin grants the agent a session key limited to 15 USD₮ per week, an allowlist of contracts (USD₮ and the Textile reactor) and a 14-day expiry. The key is registered in Altana's Keystore.
- The agent reads a payroll file (contractor, amount in USD₮, corridor). For each local-currency line it gets a firm quote from Textile FX RFQ v2 (keyless, with a TakerControl EIP-712 proof). It then builds a single intent: approve, swap USD₮→cNGN/IDRX, transfer to the contractor.
- The intent is signed with the session key and sent through the Altana relay. The wallet enforces the spend limit on-chain. If the agent tries to spend more, the relay's simulation of the on-chain policy rejects it, and nothing is broadcast.
- Every transaction we build carries the ERC-8021 attribution tag
celo_f41eab517821. Direct txs carry it at the tail; relayed calls carry it inside the intent. The agent has an ERC-8004 identity (agentId 10076), andverifyTxchecks the tags. - A read-only live dashboard (GitHub Pages) reads Celo mainnet from your browser. It shows balances, the session's on-chain cap and spend (
spendInfos), payout history with tag checks, contractors and the agent's identity.
Results on mainnet.
- 1.50 USD₮ → 2,161.60 cNGN to a Lagos contractor in one relayed intent.
- 1.00 USD₮ and 0.10 USD₮ USD₮-corridor payouts.
- A 16 USD₮ payout refused by the on-chain cap.
- Treasury top-up of 300 CELO → 17.12 USD₮ via Textile.
Track 4: Altana Agent Wallets.
- Uses
@altananetwork/sdk1.1.0 end to end: EIP-7702 delegation toaccountProxy,grantSessionwith a per-token weekly spend limit, an allowlist and an expiry, session-signed intents throughrelay.altana.network, and live readout ofspendInfos(keyHash)from the wallet. - The core claim is that the agent never holds the treasury key. Its authority is bounded on-chain, and an over-cap payout is refused. This is demonstrated on mainnet.
- Lesson documented: the wallet's first tx must go through the relay, otherwise the 7702 auth nonce goes stale. We added a tagged self-delegation fix command.
Track 1: Stablecoin Corridors (Textile FX).
- Real USD₮→cNGN corridor payout on mainnet using Textile RFQ v2 firm quotes. The swap and the transfer to the contractor happen atomically in one intent.
- The USD₮→IDRX (Jakarta) corridor uses the same code path. It is not yet run on mainnet.
- Textile also funded the treasury: 300 CELO → USD₮.
- Before signing, the firm quote is checked: it must be bound to our wallet as taker and must not expire before broadcast. Otherwise the payout is skipped.
Stack. TypeScript/Node 20, viem, @altananetwork/sdk, @celo/attribution-tags (ERC-8021), Textile FX RFQ v2, ERC-8004 Identity Registry, and a static HTML/JS dashboard on GitHub Pages using JSON-RPC via forno.celo.org. Keys are loaded at runtime from files outside the repo, and a secret scan runs before every push.