Skip to content

Commit

Permalink
chore: add docs for simulation config parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Sep 1, 2022
1 parent 7a37847 commit 4dfed44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web3.js/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,18 @@ export type TransactionReturnData = {
};

export type SimulateTransactionConfig = {
/** Optional parameter used to enable signature verification before simulation */
sigVerify?: boolean;
/** Optional parameter used to replace the simulated transaction's recent blockhash with the latest blockhash */
replaceRecentBlockhash?: boolean;
/** Optional parameter used to set the commitment level when selecting the latest block */
commitment?: Commitment;
/** Optional parameter used to specify a list of account addresses to return post simulation state for */
accounts?: {
encoding: 'base64';
addresses: string[];
};
/** Optional parameter used to specify the minimum block slot that can be used for simulation */
minContextSlot?: number;
};

Expand Down

0 comments on commit 4dfed44

Please sign in to comment.