Skip to content

Conversation

@zdql
Copy link
Contributor

@zdql zdql commented Oct 28, 2025

This PR adds the ability to track x402 transactions in the echo control plane, and the ability to set markup on transactions that pass through echo.

Echo apps can now pass x-echo-app-id when requesting LLM resources with x402. This will allow them to charge a mark-up to the end user. They can claim this payout via Echo, in the creator earnings screen. Currently we support mark-up only, not referrals for x402.

Adding a few fields + enums to the transactions and payouts table in order to support these features, as well as the tracking of funds from the server wallet into their respective places.

All payouts are now managed through echo-control, there is no fund-repo events happening in the router (and as a result, none are happening in the hot path). The only transfer that occurs in echo-data is the refund events that occur during finalization or otherwise.

Resources are still delivered at cost - this can be done in a later PR once the Echo markup system is stable.

A follow-on PR can include wallet identification for requesting users.

env var updates to control:

Coinbase CDP (5 variables)
CDP_API_KEY_ID
CDP_API_KEY_SECRET
CDP_WALLET_SECRET
WALLET_OWNER
BASE_RPC_URL
Crypto Addresses (3 variables)
USDC_ADDRESS
ETH_ADDRESS
ECHO_PAYOUTS_ADDRESS
Merit (2 variables)
MERIT_CONTRACT_ADDRESS
MERIT_REPO_ID

@railway-app
Copy link

railway-app bot commented Oct 28, 2025

🚅 Deployed to the echo-pr-627 environment in echo

Service Status Web Updated (UTC)
echo ◻️ Removed (View Logs) Web Oct 30, 2025 at 2:20 pm

@vercel
Copy link
Contributor

vercel bot commented Oct 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
assistant-ui-template Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-control Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-next-boilerplate Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-next-image Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-next-sdk-example Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-video-template Ready Ready Preview Comment Oct 29, 2025 11:29pm
echo-vite-sdk-example Ready Ready Preview Comment Oct 29, 2025 11:29pm
next-chat-template Ready Ready Preview Comment Oct 29, 2025 11:29pm
react-boilerplate Ready Ready Preview Comment Oct 29, 2025 11:29pm
react-chat Ready Ready Preview Comment Oct 29, 2025 11:29pm
react-image Ready Ready Preview Comment Oct 29, 2025 11:29pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
component-registry Skipped Skipped Oct 29, 2025 11:29pm

@railway-app railway-app bot temporarily deployed to echo (echo / echo-pr-627) October 28, 2025 02:03 Destroyed
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.

2 participants