PRODUCT / INTENT COMPOSER

Trade with limits

SOLANA / SUPPORTED METIS ROUTES

Set the most you are willing to spend and the least you want to receive before your wallet signs a supported trade.

INTENT WORKBENCH

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.

SIGNING AUTHORITY not connected The wallet authority is included in the canonical Intent V1 intent.
01 · Assets & amount02 · Review conditions03 · Wallet confirmation04 · Check result
YOUR TRADESOLANA MAINNET
Natural token units. Network fees and account rent are separate.
Editing the minimum invalidates the old review. It is never lowered automatically.
Advanced details
Input Mint
Output Mint
Raw input units
Raw minimum output
Expiry slot
Guard Program ID
Route program

This is the original h/monhook Guard, operated by its retained upgrade authority. The browser checks network, loader, authority and deployed bytes before preparing a signature.

Choose assets and request a read-only quote.

TRADE PREVIEWREAD-ONLY

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.

QuoteReviewConfirm
Technical manifest and original response
{}
EXTERNAL EXECUTION DEPENDENCY

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
Inspect canonical release configuration →
ATOMICITY

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.

EXECUTION RESULTS

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
ATOMIC PATH

Precondition → route → postcondition → receipt.

PRE

Verify signer, expiry, route identity and custom policy input.

EXECUTE

Invoke the selected market or router through ordered CPI accounts.

POST

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.

SIGNED FIELDS

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.

AUTHORITY Who may execute

The wallet identity whose approval authorizes the protected route.

ROUTE PROGRAM Where it may go

The selected program address prevents silent substitution of the execution venue.

MAX INPUT Spend ceiling

Measured from the source account balance delta after route execution.

MIN OUTPUT Receive floor

Measured from the destination account balance delta after execution.

EXPIRY SLOT When it becomes invalid

Prevents a stale quote or route from being executed later.

POLICY HOOK Additional rules

Extends the base constraints through the open HHK1 interface.

FAILURE SEMANTICS

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
FAQ / INTENTS

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.

open the deployed Guard