Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
JSON RPC API docs updates (#32747)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Aug 15, 2023
1 parent 21c6ac6 commit de4eee1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/api/methods/_getBlocksWithLimit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/methods/_getHighestSnapshotSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/methods/_getSignatureStatuses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions docs/src/api/methods/_getVersion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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>
Expand Down

0 comments on commit de4eee1

Please sign in to comment.