Adjust RPC simulateTransaction endpoint to match v1.2 (#10443)

automerge
This commit is contained in:
mergify[bot]
2020-06-06 21:08:27 -07:00
committed by GitHub
parent 52c20a5c38
commit 09f0624887
4 changed files with 33 additions and 18 deletions

View File

@@ -1198,6 +1198,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: