Loops HouseReferRail

NEAR HACKATHON
Team
1 member- DAOwner
Daniel MWihoti
Overview
ReferRail is a referral payment rail on NEAR that pays creators only when they actually drive a sale. Businesses don’t want to pay for posts that might not convert, and creators don’t want to chase invoices after the fact. ReferRail removes both problems with one link. A business publishes an offer with a price, a creator commission and a refund window, either by describing it in one sentence (an assistant drafts the terms) or by importing a product straight from their Shopify store. Creators claim their own referral code, and their commission is locked into the contract, so it can’t be changed after the sale. When a buyer pays through a creator’s link, they see exactly where their money goes before paying. The payment is held in a NEAR smart-contract escrow (NEP-141 tokens via ft_transfer_call). Once the refund window closes, one transaction splits it between the business, the creator and a small service fee. Buyers can be refunded in full before then, and the contract rejects self-referrals. Every offer, sale, commission and refund is public and verifiable on-chain. Creators can also get NEAR Intents estimates for receiving their share on another chain. Live on NEAR testnet at https://referrail-ten.vercel.app with a real Shopify store as the demo, and a Rust contract with tests in the repo.