0friction

Gasless cross-chain AI compute via 0G — pay with USDC, no bridging required

0friction

Created At

Open Agents

Project Description

0friction is a TypeScript SDK + solver backend that lets any EVM app use 0G Compute without forcing users to hold 0G tokens, bridge assets, or interact with 0G Chain directly. Users pay with USDC on Base via gasless EIP-2612 permit signatures. The solver fronts 0G cost, executes inference on 0G network, and settles USDC on the user's home chain. This turns 0G Compute into a drop-in developer primitive for agents and apps

How it's Made

Built with: (1) @0friction/sdk - TypeScript SDK providing quote/intent/build/submit APIs, (2) Backend solver - Express server that verifies signatures, calls 0G Compute via @0gfoundation/0g-compute-ts-sdk, settles USDC via permit+transferFrom, (3) Frontend - Next.js chat UI using wagmi for wallet interaction, (4) IntentRegistry contract deployed on 0G Galileo for on-chain audit trail. The hacky part: we use gasless EIP-2612 permits so users never pay gas for signing - the solver handles settlement asynchronously. This required careful signature verification and idempotent job state machine to ensure reliability

background image mobile

Join the mailing list

Get the latest news and updates

0friction | ETHGlobal