Modelo de Programação

Transaction Simulation

The broader developer workflow of dry-running a Solana transaction before broadcast to inspect logs, catch runtime failures, estimate compute usage, and verify account assumptions. Transaction simulation can happen through the simulateTransaction RPC method, preflight checks inside sendTransaction, or specialized bundle and bot pipelines that repeatedly simulate against fresh state before deciding to submit.

IDtransaction-simulation

Leitura rápida

Comece pela explicação mais curta e útil antes de aprofundar.

The broader developer workflow of dry-running a Solana transaction before broadcast to inspect logs, catch runtime failures, estimate compute usage, and verify account assumptions. Transaction simulation can happen through the simulateTransaction RPC method, preflight checks inside sendTransaction, or specialized bundle and bot pipelines that repeatedly simulate against fresh state before deciding to submit.

Modelo mental

Use primeiro a analogia curta para raciocinar melhor sobre o termo quando ele aparecer em código, docs ou prompts.

Pense nisso como uma das peças centrais que seu programa lê, escreve ou invoca durante a execução.

Contexto técnico

Coloque o termo dentro da camada de Solana em que ele vive para raciocinar melhor sobre ele.

Accounts, instruções, PDAs, transações e fluxo de execução.

Por que builders ligam para isso

Transforme o termo de vocabulário em algo operacional para produto e engenharia.

Este termo destrava conceitos adjacentes rapidamente, então funciona melhor quando você o trata como um ponto de conexão, não como definição isolada.

Handoff para IA

Handoff para IA

Use este bloco compacto quando quiser dar contexto aterrado para um agente ou assistente sem despejar a página inteira.

Transaction Simulation (transaction-simulation)
Categoria: Modelo de Programação
Definição: The broader developer workflow of dry-running a Solana transaction before broadcast to inspect logs, catch runtime failures, estimate compute usage, and verify account assumptions. Transaction simulation can happen through the simulateTransaction RPC method, preflight checks inside sendTransaction, or specialized bundle and bot pipelines that repeatedly simulate against fresh state before deciding to submit.
Relacionados: Simulate Transaction, Preflight Check, Bundle Simulation
Glossary Copilot

Faça perguntas de Solana com contexto aterrado sem sair do glossário.

Use contexto do glossário, relações entre termos, modelos mentais e builder paths para receber respostas estruturadas em vez de output genérico.

Explicar este código

Opcional: cole código Anchor, Solana ou Rust para o Copilot mapear primitivas de volta para termos do glossário.

Faça uma pergunta aterrada no glossário

Faça uma pergunta aterrada no glossário

O Copilot vai responder usando o termo atual, conceitos relacionados, modelos mentais e o grafo ao redor do glossário.

Grafo conceitual

Veja o termo como parte de uma rede, não como uma definição sem saída.

Esses ramos mostram quais conceitos esse termo toca diretamente e o que existe uma camada além deles.

Ramo

Simulate Transaction

The simulateTransaction RPC method that dry-runs a transaction against a specified bank state without submitting it to the network or consuming fees. Simulation returns the execution result including logs, compute units consumed, return data, and any error. Developers use simulation to estimate CU usage, debug program errors, and verify transaction correctness before sending. Simulation does not require valid signatures.

Ramo

Preflight Check

An RPC-level simulation that runs a transaction against the current bank state before forwarding it to the leader for actual execution. Preflight checks catch common errors (insufficient funds, invalid blockhash, CU overrun, program errors) before the transaction is submitted to the cluster. Preflight can be skipped via the skipPreflight option in sendTransaction, which is sometimes used when the simulation state lags behind the leader's state.

Ramo

Bundle Simulation

The process of executing a Jito bundle against the current chain state in a sandboxed environment to verify that all transactions in the bundle succeed and produce the expected outcome before committing real tips and submitting to the Block Engine. Simulation catches issues like stale state, insufficient balances, or failed arbitrage conditions, preventing searchers from paying tips for bundles that would fail on-chain. Jito provides simulateBundle API endpoints for this purpose.

Próximos conceitos para explorar

Continue a cadeia de aprendizado em vez de parar em uma única definição.

Estes são os próximos conceitos que valem abrir se você quiser que este termo faça mais sentido dentro de um workflow real de Solana.

Modelo de Programação

Simulate Transaction

The simulateTransaction RPC method that dry-runs a transaction against a specified bank state without submitting it to the network or consuming fees. Simulation returns the execution result including logs, compute units consumed, return data, and any error. Developers use simulation to estimate CU usage, debug program errors, and verify transaction correctness before sending. Simulation does not require valid signatures.

Modelo de Programação

Preflight Check

An RPC-level simulation that runs a transaction against the current bank state before forwarding it to the leader for actual execution. Preflight checks catch common errors (insufficient funds, invalid blockhash, CU overrun, program errors) before the transaction is submitted to the cluster. Preflight can be skipped via the skipPreflight option in sendTransaction, which is sometimes used when the simulation state lags behind the leader's state.

Rede

Bundle Simulation

The process of executing a Jito bundle against the current chain state in a sandboxed environment to verify that all transactions in the bundle succeed and produce the expected outcome before committing real tips and submitting to the Block Engine. Simulation catches issues like stale state, insufficient balances, or failed arbitrage conditions, preventing searchers from paying tips for bundles that would fail on-chain. Jito provides simulateBundle API endpoints for this purpose.

Modelo de Programação

Transaction Size Limit

The maximum serialized size of a Solana transaction: 1,232 bytes, matching the IPv6 minimum MTU to ensure single-packet transmission. This limit constrains the number of accounts, instructions, and data per transaction. Address lookup tables (v0 transactions) help fit more accounts within this limit.

Comumente confundido com

Termos próximos em vocabulário, sigla ou vizinhança conceitual.

Essas entradas são fáceis de misturar quando você lê rápido, faz prompting em um LLM ou está entrando em uma nova camada de Solana.

Modelo de Programaçãotransaction-id

Transaction ID

The first signature in a transaction, which uniquely identifies it on the network. Since each transaction has a unique combination of signers and a recent blockhash, the first signer's Ed25519 signature over the transaction message serves as a globally unique identifier. Transaction IDs are displayed as Base58-encoded 64-byte strings and used for lookups via getTransaction and getSignatureStatuses.

AliasTXID
Modelo de Programaçãotransaction-mortality

Transaction Mortality

The limited lifespan of a Solana transaction determined by its referenced blockhash. A transaction's blockhash must correspond to a block within the last 150 slots (~60-90 seconds) or the transaction is rejected as expired. This mechanism prevents replay attacks and bounds the time validators must track transaction deduplication. Durable nonces bypass mortality for use cases requiring long-lived transactions.

Modelo de Programaçãotransaction-size

Transaction Size Limit

The maximum serialized size of a Solana transaction: 1,232 bytes, matching the IPv6 minimum MTU to ensure single-packet transmission. This limit constrains the number of accounts, instructions, and data per transaction. Address lookup tables (v0 transactions) help fit more accounts within this limit.

Termos relacionados

Siga os conceitos que realmente dão contexto a este termo.

Entradas de glossário só ficam úteis quando estão conectadas. Esses links são o caminho mais curto para ideias adjacentes.

Modelo de Programaçãosimulate-transaction

Simulate Transaction

The simulateTransaction RPC method that dry-runs a transaction against a specified bank state without submitting it to the network or consuming fees. Simulation returns the execution result including logs, compute units consumed, return data, and any error. Developers use simulation to estimate CU usage, debug program errors, and verify transaction correctness before sending. Simulation does not require valid signatures.

Modelo de Programaçãopreflight-check

Preflight Check

An RPC-level simulation that runs a transaction against the current bank state before forwarding it to the leader for actual execution. Preflight checks catch common errors (insufficient funds, invalid blockhash, CU overrun, program errors) before the transaction is submitted to the cluster. Preflight can be skipped via the skipPreflight option in sendTransaction, which is sometimes used when the simulation state lags behind the leader's state.

Redebundle-simulation

Bundle Simulation

The process of executing a Jito bundle against the current chain state in a sandboxed environment to verify that all transactions in the bundle succeed and produce the expected outcome before committing real tips and submitting to the Block Engine. Simulation catches issues like stale state, insufficient balances, or failed arbitrage conditions, preventing searchers from paying tips for bundles that would fail on-chain. Jito provides simulateBundle API endpoints for this purpose.

Mais na categoria

Permaneça na mesma camada e continue construindo contexto.

Essas entradas vivem ao lado do termo atual e ajudam a página a parecer parte de um grafo maior, não um beco sem saída.

Modelo de Programação

Conta

The fundamental data storage unit on Solana. Every piece of state is stored in an account identified by a 32-byte public key. Accounts hold a lamport balance, an owner program, a data byte array (up to 10MB), and an executable flag. Only the owning program can modify an account's data, but anyone can credit lamports to it.

Modelo de Programação

Programa

Executable code deployed on-chain, equivalent to a smart contract on other blockchains. Programs are stateless—they store no data themselves but read/write data in separate accounts they own. Programs are compiled to SBF bytecode and loaded via the BPF Loader. Every program has a unique Program ID (its account's public key).

Modelo de Programação

Instrução

A single operation within a transaction that invokes a program. An instruction specifies: (1) the program ID to call, (2) an array of account metas (pubkey, is_signer, is_writable), and (3) an opaque data byte array. Programs decode the instruction data to determine which operation to perform.

Modelo de Programação

Transação

An atomic unit of execution containing one or more instructions, a recent blockhash, and one or more signatures. All instructions in a transaction execute sequentially and atomically—if any instruction fails, the entire transaction reverts. Transactions have a 1,232-byte size limit (matching IPv6 MTU) and a default 200,000 CU budget.