Skip to content

Conversation

@serejke
Copy link

@serejke serejke commented Dec 5, 2025

Summary

  • Add 8 missing fields to SimulatedTransactionResponse from Solana RPC spec
  • Add corresponding Superstruct schemas for runtime validation
  • Add tests for the new simulation response fields

New fields:

  • loadedAccountsDataSize - size of loaded accounts data in bytes
  • replacementBlockhash - blockhash when replaceRecentBlockhash is used
  • fee - transaction fee in lamports
  • preBalances / postBalances - SOL balances before/after simulation
  • preTokenBalances / postTokenBalances - SPL token balances
  • loadedAddresses - addresses loaded from address lookup tables

These fields bring simulateTransaction to parity with getTransaction, enabling developers to evaluate transaction effects without guessing from logs.

Ref: anza-xyz/agave#6750

Add fields from Solana RPC spec that were missing from simulateTransaction response:
- loadedAccountsDataSize: size of loaded accounts data in bytes
- replacementBlockhash: blockhash when replaceRecentBlockhash is used
- fee: transaction fee in lamports
- preBalances/postBalances: SOL balances before/after simulation
- preTokenBalances/postTokenBalances: SPL token balances
- loadedAddresses: addresses loaded from address lookup tables

These fields bring simulateTransaction to parity with getTransaction,
enabling developers to evaluate transaction effects without guessing
from logs. Added corresponding Superstruct schemas and tests.

Ref: anza-xyz/agave#6750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant