* RPC: Check encoded transaction size before decoding (cherry picked from commit7f67d36777
) * RPC: Support base64 encoded transactions Defaults to base58 (cherry picked from commite35889542b
) Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@@ -1440,10 +1440,11 @@ Before submitting, the following preflight checks are performed:
|
||||
|
||||
#### Parameters:
|
||||
|
||||
- `<string>` - fully-signed Transaction, as base-58 encoded string
|
||||
- `<string>` - fully-signed Transaction, as encoded string
|
||||
- `<object>` - (optional) Configuration object containing the following field:
|
||||
- `skipPreflight: <bool>` - if true, skip the preflight transaction checks (default: false)
|
||||
- `preflightCommitment: <string>` - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) level to use for preflight (default: `"max"`).
|
||||
- `encoding: <string>` - (optional) Encoding used for the transaction data. Either `"base58"` (*slow*, **DEPRECATED**), or `"base64"`. (default: `"base58"`).
|
||||
|
||||
#### Results:
|
||||
|
||||
@@ -1465,10 +1466,11 @@ Simulate sending a transaction
|
||||
|
||||
#### Parameters:
|
||||
|
||||
- `<string>` - Transaction, as base-58 encoded string. The transaction must have a valid blockhash, but is not required to be signed.
|
||||
- `<string>` - Transaction, as an encoded string. The transaction must have a valid blockhash, but is not required to be signed.
|
||||
- `<object>` - (optional) Configuration object containing the following field:
|
||||
- `sigVerify: <bool>` - if true the transaction signatures will be verified (default: false)
|
||||
- `commitment: <string>` - (optional) [Commitment](jsonrpc-api.md#configuring-state-commitment) level to simulate the transaction at (default: `"max"`).
|
||||
- `encoding: <string>` - (optional) Encoding used for the transaction data. Either `"base58"` (*slow*, **DEPRECATED**), or `"base64"`. (default: `"base58"`).
|
||||
|
||||
#### Results:
|
||||
|
||||
|
Reference in New Issue
Block a user