JSON RPC API docs updates (#32747)

This commit is contained in:
Joe C 2023-08-14 21:24:27 -06:00 committed by GitHub
parent 21c6ac61ac
commit de4eee15c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ Returns a list of confirmed blocks starting at the given slot
start_slot, as <code>u64</code> integer
</Parameter>
<Parameter type={"u64"} optional={true}>
<Parameter type={"u64"} required={true}>
limit, as <code>u64</code> integer (must be no more than 500,000 blocks higher
than the <code>start_slot</code>)
</Parameter>

View File

@ -34,7 +34,7 @@ NEW: This method is only available in solana-core v1.9 or newer. Please use
When the node has a snapshot, this returns a JSON object with the following fields:
- `full: <u64>` - Highest full snapshot slot
- `incremental: <u64|undefined>` - Highest incremental snapshot slot _based on_ `full`
- `incremental: <u64|null>` - Highest incremental snapshot slot _based on_ `full`
</CodeParams>

View File

@ -25,7 +25,7 @@ retains statuses for all active slots plus `MAX_RECENT_BLOCKHASHES` rooted slots
### Parameters:
<Parameter type={"array"} optional={true}>
<Parameter type={"array"} required={true}>
An array of transaction signatures to confirm, as base-58 encoded strings (up
to a maximum of 256)
</Parameter>

View File

@ -25,8 +25,8 @@ Returns the current Solana version running on the node
The result field will be a JSON object with the following fields:
- `solana-core` - software version of solana-core
- `feature-set` - unique identifier of the current software's feature set
- `solana-core` - software version of solana-core as a `string`
- `feature-set` - unique identifier of the current software's feature set as a `u32`
</CodeParams>
@ -43,7 +43,7 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
### Response:
```json
{ "jsonrpc": "2.0", "result": { "solana-core": "1.15.0" }, "id": 1 }
{ "jsonrpc": "2.0", "result": { "feature-set": 2891131721, "solana-core": "1.16.7" }, "id": 1 }
```
</CodeSnippets>