Create Gig with X402 Payment
X402 Payment Flow
Authentication
Endpoint
Input Parameters
{
chain: "base", // Currently only Base network supported
token_address: string, // ERC20 token contract address (only USDC supported)
amount: number, // Reward amount in tokens (e.g., 11) - commission is added on top
start_time: string, // ISO datetime (e.g., "2025-10-01T15:00:00Z")
duration: "1day" | "3days", // Only 1day and 3days supported for X402
gig_type: "mention" | "like" | "recast" | "boost" | "custom_bounty" | "follow" | "hold_erc20" | "buy_erc20",
platform?: "farcaster" | "x" | "onchain", // Optional - defaults to "farcaster"
url?: string, // Required for like, recast, boost, follow tasks
how_to_earn?: string, // Required for custom_bounty, optional for others
earning_criteria?: string, // Optional - will use default if not provided
keyword?: string, // Optional - for mention gigs (defaults to token symbol)
token_contract?: string, // Required for hold_erc20 and buy_erc20 gigs
token_amount_needed?: number, // Required for hold_erc20 and buy_erc20 gigs
verifier?: string // Optional - custom verifier for the gig
}Examples
Custom Bounty Gig
Follow Gig
Hold ERC20 Token Gig
Buyer Example Script
Success Response (200)
X402 Payment Response (402)
Errors
400: Validation Errors
404: Resource Not Found
500: Server Error
Important Notes
Supported Token
X402 Integration
Commission Structure
Gig Types
Platform Support
URL Format Requirements
Duration Options
Last updated