Fixup RPC docs (backport #21858) (#21864)

* Remove old notes referring to EOL versions

(cherry picked from commit eebaf89874)

* Add notes about new v1.9 rpc apis

(cherry picked from commit fd212fd2a4)

Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2021-12-14 02:46:44 +00:00
committed by GitHub
parent 0376045c7d
commit 6c329e2fd3

View File

@ -363,9 +363,6 @@ Result:
### getBlock ### getBlock
**NEW: This method is only available in solana-core v1.7 or newer. Please use
[getConfirmedBlock](jsonrpc-api.md#getconfirmedblock) for solana-core v1.6**
Returns identity and transaction information about a confirmed block in the ledger Returns identity and transaction information about a confirmed block in the ledger
#### Parameters: #### Parameters:
@ -768,9 +765,6 @@ Result:
### getBlocks ### getBlocks
**NEW: This method is only available in solana-core v1.7 or newer. Please use
[getConfirmedBlocks](jsonrpc-api.md#getconfirmedblocks) for solana-core v1.6**
Returns a list of confirmed blocks between two slots Returns a list of confirmed blocks between two slots
#### Parameters: #### Parameters:
@ -802,9 +796,6 @@ Result:
### getBlocksWithLimit ### getBlocksWithLimit
**NEW: This method is only available in solana-core v1.7 or newer. Please use
[getConfirmedBlocksWithLimit](jsonrpc-api.md#getconfirmedblockswithlimit) for solana-core v1.6**
Returns a list of confirmed blocks starting at the given slot Returns a list of confirmed blocks starting at the given slot
#### Parameters: #### Parameters:
@ -999,7 +990,7 @@ Result:
### getFeeForMessage ### getFeeForMessage
**NEW: This method is only available in solana-core v1.9 or newer. Please use **NEW: This method is only available in solana-core v1.9 or newer. Please use
[getFees](jsonrpc-api.md#getfees) for solana-core v1.7/v1.8** [getFees](jsonrpc-api.md#getfees) for solana-core v1.8**
Get the fee the network will charge for a particular Message Get the fee the network will charge for a particular Message
@ -1156,7 +1147,7 @@ Unhealthy Result (if additional information is available)
### getHighestSnapshotSlot ### getHighestSnapshotSlot
**NEW: This method is only available in solana-core v1.9 or newer. Please use **NEW: This method is only available in solana-core v1.9 or newer. Please use
[getSnapshotSlot](jsonrpc-api.md#getsnapshotslot) for solana-core v1.7/v1.8** [getSnapshotSlot](jsonrpc-api.md#getsnapshotslot) for solana-core v1.8**
Returns the highest slot information that the node has snapshots for. Returns the highest slot information that the node has snapshots for.
@ -1464,6 +1455,9 @@ Result:
### getLatestBlockhash ### getLatestBlockhash
**NEW: This method is only available in solana-core v1.9 or newer. Please use
[getRecentBlockhash](jsonrpc-api.md#getrecentblockhash) for solana-core v1.8**
Returns the latest blockhash Returns the latest blockhash
#### Parameters: #### Parameters:
@ -1976,9 +1970,6 @@ Result:
### getSignaturesForAddress ### getSignaturesForAddress
**NEW: This method is only available in solana-core v1.7 or newer. Please use
[getConfirmedSignaturesForAddress2](jsonrpc-api.md#getconfirmedsignaturesforaddress2) for solana-core v1.6**
Returns confirmed signatures for transactions involving an Returns confirmed signatures for transactions involving an
address backwards in time from the provided signature or most recent confirmed block address backwards in time from the provided signature or most recent confirmed block
@ -2727,9 +2718,6 @@ Result:
### getTransaction ### getTransaction
**NEW: This method is only available in solana-core v1.7 or newer. Please use
[getConfirmedTransaction](jsonrpc-api.md#getconfirmedtransaction) for solana-core v1.6**
Returns transaction details for a confirmed transaction Returns transaction details for a confirmed transaction
#### Parameters: #### Parameters:
@ -3074,6 +3062,9 @@ Result:
### isBlockhashValid ### isBlockhashValid
**NEW: This method is only available in solana-core v1.9 or newer. Please use
[getFeeCalculatorForBlockhash](jsonrpc-api.md#getfeecalculatorforblockhash) for solana-core v1.8**
Returns whether a blockhash is still valid or not Returns whether a blockhash is still valid or not
#### Parameters: #### Parameters: