Skip to content

Faucet: switch to Gateway gRPC ExecutionService + add API key#167

Merged
PurpleTheBest merged 2 commits into
devfrom
claude/faucet-api-key
May 6, 2026
Merged

Faucet: switch to Gateway gRPC ExecutionService + add API key#167
PurpleTheBest merged 2 commits into
devfrom
claude/faucet-api-key

Conversation

@PurpleTheBest
Copy link
Copy Markdown
Contributor

@PurpleTheBest PurpleTheBest commented May 6, 2026

Summary

  • StationAPI's faucet now submits transactions via the Gateway gRPC ExecutionService.SubmitTransaction instead of the AdminAPI's HTTP custom-transaction endpoint
  • Goes through the same gRPC channel as quotes/orders, so the X-Train-API-Key header is attached automatically by ApiKeyClientInterceptor (PR Add scoped API key auth for Gateway gRPC #166)
  • Removes SolverConfig.AdminApiUrl and the solver-admin HttpClient — no longer needed
  • Sets the Plorex apiKey in station-config.json so outgoing gRPC calls authenticate

Notes

  • ExecutionService.SubmitTransaction requires the wallet.execute:<minter> scope (or wallet.execute:*) on the API key
  • ExecutionGrpcService also enforces a testnet/mainnet match via RequireMatchingEnv, so the test key (tsk_test_*) only works against testnet networks — fine for our faucet use case
  • Faucet tokens stay configurable via station-config.json's faucet block; solverNetworkIdentifier is still passed as network_slug to the solver

🤖 Generated with Claude Code

PurpleTheBest and others added 2 commits May 6, 2026 18:29
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The Gateway gRPC API now exposes ExecutionService.SubmitTransaction,
which is the auth-scoped equivalent of AdminAPI's custom-transaction.
StationAPI's FaucetService now goes through the same gRPC channel as
quotes/orders, picking up the X-Train-API-Key header automatically via
ApiKeyClientInterceptor. Drops the AdminApiUrl config field and the
solver-admin HttpClient.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@PurpleTheBest PurpleTheBest changed the title Set Plorex solver API key in station-config.json Faucet: switch to Gateway gRPC ExecutionService + add API key May 6, 2026
@PurpleTheBest PurpleTheBest merged commit 6c9ffd6 into dev May 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant