{"uid":"cap__uQAboChsfP_1weeDw5TD","slug":"x402-experiments-gas-price-alert-subscription-b1ab15f5","name":"x402-experiments Gas Price Alert Subscription","description":"Alerting: register a one-shot webhook that fires when Ethereum gas price crosses your threshold — the server pushes to you when it happens, instead of you polling for it.","url":"https://lab.paidapis.net/api/alerts/subscribe","method":"POST","headers":{},"bodySchema":{"type":"object","required":["condition","webhookUrl","thresholdGwei"],"properties":{"condition":{"enum":["above","below"],"type":"string","description":"Either \"above\" or \"below\"."},"webhookUrl":{"type":"string","description":"Public http(s) URL to POST to when the alert fires."},"thresholdGwei":{"type":"number","description":"Gas price threshold in Gwei."}}},"responseSchema":{"type":"object","properties":{"status":{"enum":["active","fired","delivery-failed"],"type":"string"},"alertId":{"type":"string"},"firedAt":{"type":["string","null"]},"condition":{"enum":["above","below"],"type":"string"},"createdAt":{"type":"string"},"webhookUrl":{"type":"string"},"thresholdGwei":{"type":"number"},"gasPriceGweiAtTrigger":{"type":["number","null"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__nAfgRdmmhqnzxi2QWY1U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Registers a webhook-based gas price alert that fires when Ethereum gas prices cross a specified Gwei threshold","exampleAgentPrompt":"Set up a gas price alert for me — notify my endpoint at https://myapp.example.com/gas-hook when gas goes above 80 Gwei.","exampleUseCases":[{"title":"DeFi trade trigger on low gas","prompt":"Register a webhook alert to https://mybot.example.com/trade-hook that fires when gas drops below 20 Gwei so I can time my swap cheaply."},{"title":"NFT mint gas spike protection","prompt":"Set up an alert for my endpoint https://nftapp.example.com/mint-pause that triggers if gas goes above 120 Gwei — I want to pause minting automatically."},{"title":"Developer gas cost dashboard","prompt":"Subscribe https://dashboard.myproject.io/gas-events to get notified whenever gas rises above 60 Gwei so I can update my users in real time."}],"resultDescription":"Returns a JSON object with a unique alertId, current status ('active', 'fired', or 'delivery-failed'), the registered webhookUrl, thresholdGwei, condition, createdAt timestamp, and — once fired — firedAt and gasPriceGweiAtTrigger values.","failureModes":["Missing required fields (condition, webhookUrl, thresholdGwei) returns a 400 validation error","Invalid webhookUrl format (non-http/https) may cause alert registration failure or delivery-failed status","Payment failure or insufficient USDC balance causes 402 response before alert is created","Webhook delivery failure results in status 'delivery-failed' if the target URL is unreachable when alert fires","Threshold never crossed means alert remains in 'active' state indefinitely"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-alert webhook subscription for Ethereum gas price monitoring, especially in an x402-based micropayment architecture. It's ideal for blockchain automation workflows where you want to trigger actions (mints, swaps, pauses) based on real-time gas conditions without polling. Prefer this over general monitoring services if you're already using the x402 payment protocol on Base mainnet USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:30.751Z","isFirstParty":false}