TypeScript
import { ParagraphAPI } from "@paragraph-com/sdk" const api = new ParagraphAPI() const results = await api.discover.searchCoins({ q: "$WRITER" })
[ { "coin": { "coinId": "<string>", "ticker": "<string>", "contractAddress": "<string>", "blogId": "<string>" }, "blog": { "blogId": "<string>", "name": "<string>", "slug": "<string>", "logoUrl": "<string>" }, "activeSubscriberCount": 123 } ]
Search for writer coins by ticker, contract address, or publication name. Returns results ranked by relevance and subscriber count.
Search query string
Coin search results
The matched coin
Show child attributes
The associated publication
Number of active subscribers to this publication