Starter KitGasless

Digital marketplace,
zero gas fees.

A complete starter kit showing how to build a marketplace with Facinet gasless API and x402 USDC payments. Clone, customize, ship.

How it works

Gasless Transactions

Users interact with smart contracts without paying gas. Facinet facilitators cover the cost via API key.

x402 USDC Payments

Buyers pay in USDC stablecoins. No volatile tokens, no bridge fees. HTTP 402 payment standard.

Multi-Chain Support

Works across Avalanche, Ethereum, Base, Polygon, Arbitrum, OP, and Monad testnets.

Gasless API Demo

Execute smart contract calls — your users pay zero gas

gasless-action.ts
import { useSignMessage } from 'wagmi'

// 1. User signs a message (FREE — wallet popup)
const signature = await signMessageAsync({
  message: 'Authorize gasless action...',
})

// 2. Send to Facinet — facilitator pays gas
const res = await fetch('/api/gasless', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    network: 'avalanche-fuji',
    contractAddress: '0xYourContract',
    functionName: 'yourFunction',
    abi: contractABI,
    functionArgs: [arg1, arg2],
    meta: { signature, userAddress },
  }),
})

const { txHash } = await res.json()
// Done! User signed, facilitator paid gas.

Gasless On-Chain Write

sign → facilitator pays gas → done

1. User signs message in wallet (free)
2. Facinet facilitator submits tx & pays gas
3. On-chain write confirmed — user paid $0 gas

You'll sign this message, then a facilitator writes it on-chain (paying gas for you)

connect wallet to try the demo

Marketplace

Buy digital products with USDC — x402 payment protocol

template
GASLESS

SaaS Landing Page

Production-ready Next.js landing page with auth, billing, and dashboard.

0x742d...3e4F142 sold
5USDC
Sign only — facilitator pays gas via x402
api
GASLESS

Sentiment Analysis API

1000 calls to a fine-tuned NLP model for text sentiment analysis.

0x8B3a...9c1D89 sold
10USDC
Sign only — facilitator pays gas via x402
dataset
GASLESS

Web3 Wallet Dataset

50K labeled wallet addresses with DeFi activity classification.

0x1F4e...7b2A56 sold
15USDC
Sign only — facilitator pays gas via x402
model
GASLESS

NFT Price Predictor

ML model weights for predicting floor prices of top collections.

0xdE3f...4a8C34 sold
25USDC
Sign only — facilitator pays gas via x402
template
GASLESS

DeFi Dashboard Kit

React components for portfolio tracking, swap UI, and yield display.

0x5C9b...2d1E203 sold
8USDC
Sign only — facilitator pays gas via x402
api
GASLESS

Smart Contract Auditor

Automated audit reports for Solidity contracts. Per-scan pricing.

0xaB7c...6f3D67 sold
20USDC
Sign only — facilitator pays gas via x402

Quick Integration

1. Gasless Contract Call
// POST /api/gasless (server-side proxy)
const res = await fetch('/api/gasless', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    network: 'avalanche-fuji',
    contractAddress: '0x...',
    functionName: 'mint',
    abi: [...],
    functionArgs: [to, tokenId],
  }),
})
const { txHash } = await res.json()
2. x402 USDC Payment
// User signs a USDC transfer via wagmi
import { useWriteContract } from 'wagmi'
import { ERC20_ABI, formatUsdc } from '@/lib/facinet'

const { writeContractAsync } = useWriteContract()

const txHash = await writeContractAsync({
  address: USDC_ADDRESS,
  abi: ERC20_ABI,
  functionName: 'transfer',
  args: [recipient, formatUsdc(10)], // 10 USDC
})