Verify signer, expiry, route identity and custom policy input.
Trade with limits
Set the most you are willing to spend and the least you want to receive before your wallet signs a supported trade.
Choose your limits before signing.
Start with a quote, then set a spending cap, a minimum amount to receive and an expiry. The currently deployed Guard checks the result of a supported route.
Enter amounts in natural token units. Asset precision is checked on Solana. Quotes work without a wallet; connecting and signing always require your action.
Know the terms before signing.
Your quote will show expected output, the minimum you accept, route and known fees. No wallet is needed to inspect it.
Technical manifest and original response
{}ternhook integrates the original h/monhook Guard; it did not deploy or audit that program. The retained upgrade authority is . Runtime byte verification is required before signing.
Inspect the pinned release
- Program ID
- SHA-256 · deployed ProgramData payload
- Receipt / hook identifiers
- HRC1 / HHK1
If the route spends above the ceiling, receives below the floor, expires, or fails a selected hook, the entire Solana transaction returns an error and does not settle partially.
Check what actually happened.
Records are separated by mainnet wallet. A quote never creates a transaction record.
Connect your wallet explicitly to inspect its saved transaction signatures.
Enter a signature to check its confirmation.
Only confirmed, successful transactions are labeled successful. Fees can still apply to a failed transaction.Explore trade rules and technical details
Precondition → route → postcondition → receipt.
Invoke the selected market or router through ordered CPI accounts.
Reload balances, enforce deltas and return a HRC1 receipt—or revert.
“Pre” means the route has not executed yet. The deployed Guard first checks the signer, expiry, route identity and optional policy. It then calls the selected route inside the same Solana transaction. After the route returns, “post” means the program reloads the real token accounts and measures what left and what arrived.
If the result stays inside the user’s limits, the transaction may commit and HRC1 reports the realized deltas. If it falls outside those limits, the deployed Guard returns an error. Solana’s atomic execution then discards the route’s state changes rather than leaving the user with a partially accepted trade.
What an intent actually commits to.
The on-chain h/monhook intent ID is derived when the executable route is assembled.
These fields answer who approves the trade, which supported route may execute, how much may leave, how much must arrive and when the approval expires. The local preview hash helps compare form revisions; it is not the on-chain intent ID. The review step prepares the selected Metis build and its on-chain commitment; signing uses those retained instructions. The browser does not pass a custom policy hook.
The wallet identity whose approval authorizes the protected route.
The selected program address prevents silent substitution of the execution venue.
Measured from the source account balance delta after route execution.
Measured from the destination account balance delta after execution.
Prevents a stale quote or route from being executed later.
Extends the base constraints through the open HHK1 interface.
Every rejection is explicit.
Failures before execution are the cheapest and easiest to understand: a wrong signer, expired intent or substituted route means the liquidity route never runs. Failures after execution are equally important. They mean the route ran inside the transaction, but the measured result did not satisfy the signed promise.
This distinction is why the table names the checking phase. It gives wallets and support teams a precise reason to show the user instead of a generic “transaction failed” message. A production adapter should map each program error to clear interface language while preserving the underlying error code for developers.
| condition | checked at | result |
|---|---|---|
| authority mismatch | PRE | route not invoked |
| expired slot | PRE | route not invoked |
| route CPI error | EXECUTE | error propagated |
| input exceeds ceiling | POST | full rollback |
| output below floor | POST | full rollback |
| custom policy rejection | PRE / POST | full rollback |
Execution questions.
Does ternhook provide the swap quote?
Jupiter provides the quote and executable route. Disconnected quotes are restricted to Metis estimates. After you connect, a wallet-specific Metis build is reviewed and simulated with the external Guard. The exact prepared instructions are retained through signing. Changed or expired terms require a new quote and review.
Can one intent cross multiple programs?
Yes, when those instructions are represented by the ordered route-account set passed to the wrapper and each invoked program is permitted by the selected policy.
What is the HRC1 receipt?
A compact return payload containing the intent identity and realized balance deltas, designed for wallets and interfaces to consume after successful execution.
Inspect the on-chain enforcement path.
See exactly where preconditions, CPI execution and postconditions run.