Kit
Type aliases

SimulateTransactionApi

SimulateTransactionApi = object

Methods

simulateTransaction()

Call Signature

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config?): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
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

simulateTransaction(base58EncodedWireTransaction, config?): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithReplacementBlockhash>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithReplacementBlockhash>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base58EncodedWireTransaction, config?): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
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

simulateTransaction(base58EncodedWireTransaction, config?): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase>

Parameters
ParameterType
base58EncodedWireTransactionBase58EncodedBytes
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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData> & SimulateTransactionApiResponseWithInnerInstructions>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedData>>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData> & SimulateTransactionApiResponseWithInnerInstructions>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithBase64EncodedZStdCompressedData>>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData> & SimulateTransactionApiResponseWithInnerInstructions>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithAccounts<AccountInfoBase & AccountInfoWithJsonData>>

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
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ accounts: { addresses: 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase & SimulateTransactionApiResponseWithInnerInstructions>

Simulate sending a transaction, and obtain the list of inner instructions run, if any.

Parameters
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA 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

simulateTransaction(base64EncodedWireTransaction, config): SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase>

Simulate sending a transaction.

Parameters
ParameterTypeDescription
base64EncodedWireTransactionBase64EncodedWireTransactionA fully signed transaction in wire format, as a base-64 encoded string. Use getBase64EncodedWireTransaction to obtain this.
configReadonly<{ replaceRecentBlockhash?: boolean; sigVerify?: false; }> | Readonly<{ replaceRecentBlockhash?: false; sigVerify: true; }> & Readonly<{ commitment?: Commitment; innerInstructions?: boolean; minContextSlot?: Slot; }> & object-
Returns

SolanaRpcResponse<Readonly<{ accounts: null; }> & SimulateTransactionApiResponseBase>

See

https://solana.com/docs/rpc/http/simulatetransaction