Add preflight checks to sendTransaction RPC method (bp #10338) (#10362)

automerge
This commit is contained in:
mergify[bot]
2020-06-01 22:45:51 -07:00
committed by GitHub
parent a278f745f8
commit e023719c58
13 changed files with 734 additions and 248 deletions

View File

@@ -1156,11 +1156,20 @@ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "m
### sendTransaction
Creates new transaction
Submits a signed transaction to the cluster for processing.
Before submitting, the following preflight checks are performed:
1. The transaction signatures are verified
2. The transaction is simulated against the latest max confirmed bank
and on failure an error will be returned. Preflight checks may be disabled if
desired.
#### Parameters:
* `<string>` - fully-signed Transaction, as base-58 encoded string
* `<object>` - (optional) Configuration object containing the following field:
* `skipPreflight: <bool>` - if true, skip the preflight transaction checks (default: false)
#### Results: