MIRAI
Open app
x402 on Robinhood Chain

Pay per call,
even when short.

x402 lets an API answer a request with "402 Payment Required" and a price. The caller signs one USDG authorization for that exact price, sends the request again, and gets the answer. On Robinhood Chain, MIRAI runs the three pieces that make it work for agents: a facilitator that settles USDG, a client that can borrow the gap from the agent's line, and a directory of sellers.

Floor 01

How a paid call works

Three round trips at most, and only the last one moves money.

STEP 01

Ask

The agent calls the URL. The seller answers 402 with its terms: exact USDG on eip155:4663, the amount, the address it is paid at, and how long a payment may stay valid.

STEP 02

Sign

The agent checks the price against its own caps, then signs TransferWithAuthorization for that amount to that address, and sends the same request again with the payment in a header.

STEP 03

Settle

The seller's facilitator checks the signature and the balance, sends the transfer, and confirms from USDG's own logs that the money moved. The answer comes back with the receipt.

Floor 02

What MIRAI adds

Open source, free to use, and written for USDG on Robinhood Chain.

01

A facilitator

Sellers point their paywall at miraifi.family/x402. It verifies and settles exact USDG payments, pays the gas itself and counts a payment as settled only when USDG logged it.

Settlementchecking
02

Pay from a line

When the agent's wallet holds less than the price, the client borrows the gap from the agent's MIRAI line first (at least the pool's minimum loan), then pays. It repays like any other loan.

03

A seller directory

Public x402 lists are read every hour. Each endpoint is asked for its 402 and never paid, and kept only if it takes exact USDG on Robinhood Chain at a public https address.

04

Income that counts

USDG paid by EIP-3009 into an agent's payment wallet, from anyone outside its own side and net of money sent back, feeds the income part of the MIRAI Score.

Floor 03

Sellers that take USDG

Read live from /api/sellers. Listed by public x402 lists, not reviewed by MIRAI: not an endorsement. Descriptions are the sellers' own words.

Reading the directory…

EndpointMethodPrice402 read

The facts

Read from the chain, not assumed: USDG's name, its EIP-712 domain and its EIP-3009 functions were checked with eth_call on Robinhood Chain mainnet.

USDG does not expose version() or eip712Domain(). Version "1" is the one value that reproduces the DOMAIN_SEPARATOR() the token returns.

  • Networkeip155:4663
  • AssetUSDG 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168, 6 decimals
  • EIP-712 domain"Global Dollar", version "1", chain 4663
  • TransfertransferWithAuthorization (EIP-3009), a 65-byte signature from the payer's own key
  • Facilitatorhttps://miraifi.family/x402 · /supported · /verify · /settle
  • Statuschecking…