* Add a flag to simulateTransaction to use most recent blockhash (cherry picked from commit96cef5260c
) * rename flag (cherry picked from commite14f3eb529
) * sigVerify conflicts with replace, add tests (cherry picked from commit660d37aadf
) Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
@@ -3231,9 +3231,11 @@ Simulate sending a transaction
|
||||
|
||||
- `<string>` - Transaction, as an encoded string. The transaction must have a valid blockhash, but is not required to be signed.
|
||||
- `<object>` - (optional) Configuration object containing the following field:
|
||||
- `sigVerify: <bool>` - if true the transaction signatures will be verified (default: false)
|
||||
- `sigVerify: <bool>` - if true the transaction signatures will be verified (default: false, conflicts with `replaceRecentBlockhash`)
|
||||
- `commitment: <string>` - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) level to simulate the transaction at (default: `"finalized"`).
|
||||
- `encoding: <string>` - (optional) Encoding used for the transaction data. Either `"base58"` (*slow*, **DEPRECATED**), or `"base64"`. (default: `"base58"`).
|
||||
- `replaceRecentBlockhash: <bool>` - (optional) if true the transaction recent blockhash will be replaced with the most recent blockhash.
|
||||
(default: false, conflicts with `sigVerify`)
|
||||
|
||||
#### Results:
|
||||
|
||||
|
Reference in New Issue
Block a user