JSON RPC API docs updates (#32747)
This commit is contained in:
parent
21c6ac61ac
commit
de4eee15c8
|
@ -24,7 +24,7 @@ Returns a list of confirmed blocks starting at the given slot
|
||||||
start_slot, as <code>u64</code> integer
|
start_slot, as <code>u64</code> integer
|
||||||
</Parameter>
|
</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
|
limit, as <code>u64</code> integer (must be no more than 500,000 blocks higher
|
||||||
than the <code>start_slot</code>)
|
than the <code>start_slot</code>)
|
||||||
</Parameter>
|
</Parameter>
|
||||||
|
|
|
@ -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:
|
When the node has a snapshot, this returns a JSON object with the following fields:
|
||||||
|
|
||||||
- `full: <u64>` - Highest full snapshot slot
|
- `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>
|
</CodeParams>
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ retains statuses for all active slots plus `MAX_RECENT_BLOCKHASHES` rooted slots
|
||||||
|
|
||||||
### Parameters:
|
### Parameters:
|
||||||
|
|
||||||
<Parameter type={"array"} optional={true}>
|
<Parameter type={"array"} required={true}>
|
||||||
An array of transaction signatures to confirm, as base-58 encoded strings (up
|
An array of transaction signatures to confirm, as base-58 encoded strings (up
|
||||||
to a maximum of 256)
|
to a maximum of 256)
|
||||||
</Parameter>
|
</Parameter>
|
||||||
|
|
|
@ -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:
|
The result field will be a JSON object with the following fields:
|
||||||
|
|
||||||
- `solana-core` - software version of solana-core
|
- `solana-core` - software version of solana-core as a `string`
|
||||||
- `feature-set` - unique identifier of the current software's feature set
|
- `feature-set` - unique identifier of the current software's feature set as a `u32`
|
||||||
|
|
||||||
</CodeParams>
|
</CodeParams>
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
|
||||||
### Response:
|
### Response:
|
||||||
|
|
||||||
```json
|
```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>
|
</CodeSnippets>
|
||||||
|
|
Loading…
Reference in New Issue