{"uid":"cap_B-9HRxOU6-bJI85XMMPeZ","slug":"pub-sub-topic-publish-onchain-trading-intelligence-platform-4cc01dd8","name":"Pub/Sub Topic Publish — Onchain & Trading Intelligence Platform","description":"Pub/sub: publish a message to a topic. Send { topic, token, data }.","url":"https://x402-services-production.up.railway.app/api/pubsub/publish","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data","token","topic"],"properties":{"data":{"type":"object","description":"Message payload"},"token":{"type":"string","description":"Your secret token"},"topic":{"type":"string","description":"Topic name"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v2uUxyXhv21Ddw11p5pEq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Publishes a message payload to a named pub/sub topic using a secret token for authentication, as part of the onchain and trading intelligence platform.","exampleAgentPrompt":"Publish the payload [{'event':'new_token','address':'0xabc...'}] to the topic 'solana-launches' using my secret token 'tok_xyz123' on the trading intelligence pub/sub service.","exampleUseCases":[{"title":"Broadcast new pump.fun launch alert","prompt":"Push this new token launch event — [{\"mint\":\"So11...abc\",\"name\":\"PepeSOL\",\"launched_at\":\"2025-01-15T10:00:00Z\"}] — to the 'pumpfun-launches' topic using my secret token 'tok_abc987' so my subscribers get notified immediately."},{"title":"Notify subscribers of funding-rate spike","prompt":"Send the payload [{\"pair\":\"BTC-PERP\",\"funding_rate\":0.042,\"exchange\":\"Hyperliquid\"}] to the topic 'funding-alerts' using secret token 'tok_def456' to alert my perps-monitoring subscribers."},{"title":"Relay OFAC sanctions screening result","prompt":"Publish [{\"wallet\":\"0xdeadbeef...\",\"sanctioned\":true,\"screened_at\":\"2025-01-15T12:00:00Z\"}] to the topic 'compliance-flags' with my secret token 'tok_ghi789' so my risk-management pipeline picks it up."}],"resultDescription":"A confirmation response indicating whether the message was successfully published to the specified topic, typically including a delivery acknowledgement or status flag.","failureModes":["Invalid or missing secret token returns authentication error","Topic does not exist or is malformed returns not-found error","Malformed data array payload returns validation error","Network timeout or Railway infrastructure downtime returns 503","Rate limiting or quota exceeded returns 429"],"whenToPreferThis":"Choose this endpoint when you need to push event data or payloads to named pub/sub topics within the onchain and trading intelligence platform ecosystem, particularly when coordinating between multiple subscribers or pipeline stages that consume trading signals, compliance events, or onchain intelligence data. Prefer this over direct API polling when you want fan-out delivery to multiple consumers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:54:47.545Z","isFirstParty":false}