putty
MCPOnchain

Onchain

Simulate a transaction before anyone signs it, and read what happened to a signing request.

The Onchain category is the value-moving story, and it is two tools long. The category is deliberately not part of Blockchain: Blockchain is a read-only view of a chain anyone can query, and this is about a transaction belonging to the caller and a signature only the caller can give. Different trust story, so a different category.

The two tools

simulate_transaction runs eth_call — and a trace where the RPC supports one — against the chain's own RPC, and reports whether the transaction would succeed. It never signs and never sends, so it is safe to run against a mainnet endpoint. It returns either success with the balance changes and the emitted events, or a failure carrying the node's own revert reason.

tx_request_status reads one signing request by id. Call it after any value-moving tool: that tool returns a TxRequest with a status of pending and a summary of what the transaction would do, and this is how you learn whether the user signed, whether it confirmed onchain, or whether it reverted.

It works for both caller flavours — a dashboard user posting a Privy access token, or a non-dashboard caller presenting an sk- key.

Why a request, not a send

A signing request is a record the user approves, not a call the server makes. The two-step shape — a tool returns a TxRequest, the user signs, a second call reads what happened — is the same shape the Social category uses before a post goes out. Nothing in this category can move a value on its own.

On this page