feat: add GROUNDTRUTH action provider (memecoin creator/coin records, known-bad flag) - #1518
Open
groundtruth-now wants to merge 1 commit into
Open
groundtruth-now wants to merge 1 commit into
groundtruth-now wants to merge 1 commit into
Conversation
Three actions over the GROUNDTRUTH API: creator record, coin record and known-bad creator flag for memecoin launches on Solana and Robinhood Chain. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🟡 Heimdall Review Status
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a GROUNDTRUTH action provider. GROUNDTRUTH records the outcomes of memecoin launches on Solana (pump.fun) and Robinhood Chain, and the track record of the wallets that launch them. It gives an agent three things to check before it buys a newly launched token:
get_creator_recordGET /v1/flagget_coin_recordGET /v1/recordget_known_bad_flagGET /api/flagapiKey(orGROUNDTRUTH_API_KEY), sent asx-api-key. Without a key, a small free per-IP allowance applies. After that the API answers402with an x402 challenge, and the action returns a clear message pointing to the existingx402action provider rather than failing silently.known_bad: nullmeans "not in the published set", and a fresh coin has "no outcome yet".fetch, a JSON string on success, and an error string on failure.scripts/generate-action-provider, registered inaction-providers/index.ts, with a changeset.Tests
Unit tests (
groundtruthActionProvider.test.ts, 8 passing) cover:0x…→ Robinhood Chain, base58 → Solana)pnpm run lint,formatandtsc --noEmitare clean.Live check of the endpoints the provider calls:
🤖 Generated with Claude Code