preview_solana_send
Fetch a fresh Solana blockhash and compute the Ledger message hash to pin the transaction, enabling user approval before broadcast.
Instructions
Solana-only: finalize a prepared Solana tx for signing by fetching a FRESH recent blockhash, serializing the message bytes, and computing the base58(sha256(...)) Message Hash the Ledger Solana app will display on blind-sign. MUST be called between prepare_solana_* and send_transaction — Solana blockhashes expire after ~150 blocks (~60s), and the prepare → user-approve → broadcast path on a live Ledger routinely runs longer than that. Splitting the blockhash pin off prepare lets the user see-and-match the hash seconds before tapping Approve, with the full ~60s window available for the broadcast. Returns the pinned UnsignedSolanaTx (messageBase64 + ledger Message Hash) plus the CHECKS PERFORMED agent-task block the agent must auto-run. Re-callable on the same handle: re-calling overwrites the prior pin with a newer blockhash (useful if the user pauses between preview and send). send_transaction will throw a clear error if called without a prior preview_solana_send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | Opaque handle returned by prepare_solana_native_send / prepare_solana_spl_send. preview_solana_send fetches a fresh Solana blockhash, serializes the message bytes, computes the base58(sha256(...)) Message Hash the Ledger Solana app will display on blind-sign, and pins the handle so send_transaction can consume it. MUST be called between prepare_solana_* and send_transaction — the pair is separated because a Solana blockhash is only valid ~60s and prepare→user-approve routinely blows that window. Re-callable on the same handle to re-pin with a newer blockhash if the user pauses. |