Skip to content

Verify a wallet-approved payment through both MCP tools - #6

Merged
Mabolla merged 1 commit into
mainfrom
feat/mcp-live-check
Oct 1, 2026
Merged

Mabolla merged 1 commit into
mainfrom
feat/mcp-live-check

Conversation

@Mabolla

@Mabolla Mabolla commented Oct 1, 2026

Copy link
Copy Markdown
Owner

The existing browser form creates its own order via the REST API, so it cannot prove the new MCP prepare → wallet payment → MCP receipt flow. Add /agents/check, a Turkish page that calls both MCP tools using the official SDK and keeps the exact original signed order through a user-approved 0.01 USDC self-transfer.

The page validates the entire unsigned transaction, checks the selected account and Base network, rejects unsupported smart accounts, checks balances, and simulates gas before requesting wallet approval. It stores the order before wallet approval and the transaction hash before receipt verification. Reloads recover the original attempt and do not start another payment. A rejected wallet request can be retried; an ambiguous wallet response requires recovering its existing transaction hash.

The final result includes the receipt, transaction and Builder Code without exporting the order token. Mainnet gas is real and explicitly disclosed. No transaction has been submitted by this change, and a fresh positive mainnet MCP receipt remains pending the user's wallet action. Also correct the prior unsupported README claim that a Dashboard URL edit was a confirmed required step.

Validation: 27 tests passed, lint passed, production Next build passed. Tests cover the original token through both tools, exact returned calldata, persistence before submission, mismatched wallet/network/account type/balances, altered payment data, duplicate submission prevention and mismatched receipts. Local browser automation was unavailable because Chromium is not installed; live UI inspection follows deployment.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
base-receipt Ready Ready Preview Oct 1, 2026 6:46pm UTC

@Mabolla
Mabolla merged commit f4ebf3e into main Oct 1, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2a4f8227 Deployed Oct 1, 2026 by vercel[bot]
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