Docs Layers

Relay

Live on testnetRuns on OutLayer

A relayer sends a delegate action the member signed, and pays the gas. Its policy refuses any deposit, so only site-paid writes go through. Two hosts speak one protocol: quay relay serve, a Node process, and an OutLayer function with no server.

Commands

Terminal
quay relay create --near 0.5
quay relay serve --port 8788
quay relay deploy
quay relay status

How Harbour Board uses it

  1. The relayer is its own account, relay.harbour-board.testnet. Its balance is the spend limit, and it cannot move the site.
  2. Members joined and posted through both hosts. The live-page post took 6.0 seconds through the OutLayer relay.
  3. The OutLayer host needs a payment key in the page, so anyone who reads the page can spend it. The Board's holds about $0.05 of test USDC, at most $0.01 per call.

Proof on testnet

The relayer accountCmoixGMs…
The relay deployed on OutLayer9rnqpKHJ…
A gasless post from the live page99NtZvYB…

Check it without a key: Open the member's post on the explorer. The signer is the member, and the relayer paid. The view helper is in the repository README, and scripts/judge.sh runs these checks.

What you trust

The relayer holds a key and spends from its own account. It can refuse requests; it cannot move the site. Run quay relay serve yourself and fund it with quay relay create.

Limits

DepositsRefused. A relayed write must be site-paid.
TimeOutLayer relay calls took 5 to 20 seconds

Every flag is in the command reference, generated from quay relay --help.