ShelterSplit Rail · MIT · no dependencies

Any game can add a shelter button.

One script tag gives players a "Give to the shelter" button and a live meter read straight from Arc mainnet. The gift goes from the player's wallet to the shelter's wallet, and the contracts pass it on in the same transaction. Where a gift router and a relay are set up, the player signs once and pays no gas; the relay never holds the gift.

Try it

Pink Paw (Rožinė pėdutė) logo
Pink Paw (Rožinė pėdutė)Showcase shelter on the rail

Needs a browser wallet on Arc mainnet with a little USDC. One transaction; USDC also pays the network fee.

How a gasless gift moves

  1. The player signs once. One USDC ReceiveWithAuthorization (EIP-3009). No gas, no approve, no transaction from their wallet.
  2. A relay submits it. It pays the gas but cannot change the amount, the memo or the payee: the nonce is bound to the router and the memo.
  3. The DonateRouter pays the shelter. It pulls the USDC and splits it through ShelterSplit to the shelter wallet in the same transaction.
  • The router has no owner and keeps no balance.
  • It reverts if any part of a gift would reach the split's treasury.
  • Every payout is a public event; the “Shelters received” total in the Try it panel reads them live.
<script src="https://tokentails.com/rail/widget.js"
  data-chain="5042"
  data-split="0x457c89e10a6e66633eda5bf82fd086febb5db147"
  data-shelter="Pink Paw"
  data-amount="10000000000000000"></script>
<!-- gasless, where a DonateRouter and a relay exist:
  data-mode="gasless" data-router="0x937f13ce28294011567615330dbcb859a06a0bba" data-usdc="0x3600000000000000000000000000000000000000" data-relay="https://<your relay>/shelter/relay" -->

For AI agents: standard x402

The Token Tails cat-card endpoint answers 402 Payment Required with the standard x402 exact scheme. Its payTo is the shelter's wallet: the agent signs one USDC transferWithAuthorization, a facilitator settles it and pays the gas, and the agent gets a shelter-cat card back.

Works with the rail's SDK in one call: payAndFetch(url, { maxAmountBase: 10000n, provider }). Standard x402 clients such as x402-fetch read the same offer. x402 on Arc mainnet is the next step on our roadmap.

Gifts go to Pink Paw's wallet on Arc mainnet. The contracts are non-custodial: no one in between holds the gift. Every payout is public on explorer.arc.io.