biloa

USDC between HyperCore and Elysium, in one swap.

An AI agent asks the listed LPs for a price, takes the best, and the swap settles on both chains or on neither, with no bridge wait and no custodian in between.

Leaving Elysium should not take a day.

Elysium is an Arbitrum Orbit chain that settles to HyperEVM, so leaving it through the canonical bridges means waiting out a challenge period of about a day. Faster third-party routes add an operator to trust. An agent that trades on HyperCore and acts on Elysium needs its USDC on the right side without either.

  • Canonical bridgesAbout a day out of ElysiumThe challenge period has to pass before the funds arrive
  • Third-party routesDepends on the routeAn operator or custodian sits between the two sides
  • BiloaWithin minutesNo custodian: BiloaLock on Elysium and a 2-of-2 account on HyperCore hold the funds until the swap settles or refunds

One secret closes both sides.

A swap to Elysium, step by step. Claiming on one chain reveals the secret that claims the other, so neither side can finish alone.

  1. 1Escrow on HyperCoreThe agent funds a fresh escrow and makes it a 2-of-2 account with the LP. The LP has already signed a refund that only works later.
  2. 2Pre-signed payoutThe agent signs the escrow's payout to the LP in a form that only becomes valid with the swap's secret.
  3. 3Lock on ElysiumThe LP checks those signatures and locks USDC for the agent in BiloaLock under the same secret point.
  4. 4ClaimThe agent claims the lock, and the claim puts the secret on chain.
  5. 5PayoutThe LP completes the payout signature with that secret and takes the escrow.

If either side stops, an unclaimed lock refunds after its deadline and the escrow returns through the refund signed at the start. A party that is owed funds has to be online, or run resumeSwaps, within the claim window of a few minutes. HyperCore's 1 USDC account fee and gas are not returned. The other direction mirrors these steps with the LP's secret. The full protocol

The latest swaps in BiloaLock.

Every swap and LP record in the app

Read from BiloaLock on Elysium mainnet

Reading BiloaLock…

Reading BiloaLock on Elysium…

For agents

Set up the HyperCore account once with toStandardPerp, then one call finds the best LP and runs the swap. Every step is written to a journal first, and resumeSwaps finishes or refunds anything a crash left open.

npm install @biloa/sdk viem
import { MAINNET, swapBest } from "@biloa/sdk";
import { parseUnits } from "viem";

// taker: HyperCore key, Elysium wallet and public clients, clock and journal; see the SDK README
const out = await swapBest(
  taker,
  {
    dir: "toElysium",
    token: MAINNET.usdc,
    usdc: "10",
    minNet: parseUnits("9.95", 6),
  },
  { registry: MAINNET.registry },
);
What a swap costs
A 3 bps protocol fee, the LP's spread and HyperCore's 1 USDC fee for the new escrow account (1.01 USDC in swaps to HyperCore)
Swap size
Up to 1,000 USDC per swap; each LP sets its range, and biloa-lp starts at 10 to 200 USDC
The agent guide

For LPs

Anyone can quote swaps and earn the spread. An LP needs a Linux server with root access, a Cloudflare Tunnel, an Elysium RPC and, with the default settings, at least 35 USDC on HyperCore; the LP guide lists everything. Setup creates the LP wallet, moves your share to Elysium and lists you in BiloaRegistry, asking before each step that moves funds.

sudo npm install -g @biloa/lp
sudo biloa-lp setup
Your spread
You set it; biloa-lp starts at 20 bps
Swaps at once
Up to four, each funded before the taker pays
Your record
BiloaLock counts only locks you signed yourself
The LP guide

Two contracts, no owner.

BiloaLock and BiloaRegistry cannot be paused or upgraded. BiloaLock keeps a fixed 3 bps fee from each claim's payout and caps a swap at 1,000 USDC. Both are verified on the Elysium explorer. They have not had a third-party audit yet; to report a vulnerability, use the private report in the repository's Security tab.