Skip to content

Commit

Permalink
RPC simulateTransaction endpoint now returns program log output (sola…
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored Jun 6, 2020
1 parent 6d24aa2 commit a42a6a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apps/jsonrpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,10 @@ Simulate sending a transaction
#### Results:
An RpcResponse containing a TransactionStatus object
The result will be an RpcResponse JSON object with `value` set to a JSON object with the following fields:
* `err: <object | null>` - Error if transaction failed, null if transaction succeeded. [TransactionError definitions](https://github.com/solana-labs/solana/blob/master/sdk/src/transaction.rs#L14)
* `logs: <array | null>` - Array of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure)
#### Example:
Expand Down

0 comments on commit a42a6a4

Please sign in to comment.