SimulateTransactionApi
Methods
simulateTransaction()
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config? | Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config? | Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithReplacementBlockhash>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, obtain the list of inner instructions run, if any, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, obtain the list of inner instructions run, if any, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, obtain the list of inner instructions run, if any, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, the server will attempt to process it using a parser specific to each account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and replace the transaction's blockhash with the most recent one.
If the listed accounts have data, the server will attempt to process it using a parser specific to each account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, obtain the list of inner instructions run, if any, and replace the transaction's blockhash with the most recent one.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, and replace the transaction's blockhash with the most recent one.
The replacement blockhash and the blockheight until which it is valid will be returned in the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ replaceRecentBlockhash: true; sigVerify?: false; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithReplacementBlockhash>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64" | undefined; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config? | (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> & Readonly<...> |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Parameters
| Parameter | Type |
|---|---|
base58EncodedWireTransaction | Base58EncodedBytes |
config? | (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase>
Deprecated
Set encoding to 'base64' when calling this method
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and obtain the list of inner instructions run, if any.
If the listed accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64" | undefined; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state.
If the listed accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding?: "base64" | undefined; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and obtain the list of inner instructions run, if any.
If the listed accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state.
If the listed accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "base64+zstd"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state, and obtain the list of inner instructions run, if any.
If the listed accounts have data, the server will attempt to process it using a parser specific to each account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, fetch a list of accounts in their post-simulation state.
If the listed accounts have data, the server will attempt to process it using a parser specific to each account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | Readonly<{ accounts: { addresses: readonly Address[]; encoding: "jsonParsed"; }; }> & (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<...>) & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction, and obtain the list of inner instructions run, if any.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | (Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> & Readonly<{ innerInstructions: true; }> & object | - |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions>
See
https://solana.com/docs/rpc/http/simulatetransaction
Call Signature
Simulate sending a transaction.
Parameters
| Parameter | Type | Description |
|---|---|---|
base64EncodedWireTransaction | Base64EncodedWireTransaction | A fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this. |
config | | Readonly<{ replaceRecentBlockhash?: boolean; sigVerify?: false; }> | Readonly<{ replaceRecentBlockhash?: false; sigVerify: true; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object | - |
Returns
SolanaRpcResponse<Readonly<{
accounts: null;
}> & SimulateTransactionApiResponseBase>