Skip to content

Commit

Permalink
feat: make all rpc curl requests silent (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty authored Nov 23, 2024
1 parent 8114422 commit 430c80d
Show file tree
Hide file tree
Showing 64 changed files with 67 additions and 66 deletions.
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getConfirmedBlock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The result field will be an object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getConfirmedBlock",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getConfirmedBlocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ block, inclusive. Max range allowed is 500,000 slots.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc": "2.0","id":1,"method":"getConfirmedBlocks","params":[5, 10]}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getConfirmedBlocksWithLimit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ starting at `start_slot` for up to `limit` blocks, inclusive.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getConfirmedBlocksWithLimit",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getConfirmedSignaturesForAddress2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getConfirmedTransaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Encoding format for Account data
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getFeeCalculatorForBlockhash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The result will be an RpcResponse JSON object with `value` equal to:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getFeeRateGovernor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getFeeRateGovernor"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getFees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{ "jsonrpc":"2.0", "id": 1, "method":"getFees"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getRecentBlockhash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ FeeCalculator JSON object.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getRecentBlockhash"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getSnapshotSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Returns the highest slot that the node has a snapshot for
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getSnapshotSlot"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/deprecated/getStakeActivation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The result will be a JSON object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getAccountInfo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ The result will be an RpcResponse JSON object with `value` equal to:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBalance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ balance
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getBalance",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ The result field will be an object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0","id":1,
"method":"getBlock",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlockCommitment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The result field will be a JSON object containing:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getBlockCommitment",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlockHeight.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Configuration object containing the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0","id":1,
"method":"getBlockHeight"
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlockProduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ The result will be an RpcResponse JSON object with `value` equal to:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getBlockProduction"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlockTime.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Returns the estimated production time of a block.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0", "id":1,
"method": "getBlockTime",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ block, inclusive. Max range allowed is 500,000 slots.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getBlocks",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getBlocksWithLimit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ starting at `start_slot` for up to `limit` blocks, inclusive.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id":1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getClusterNodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getClusterNodes"
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getEpochInfo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The result field will be an object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getEpochSchedule.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The result field will be an object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0","id":1,
"method":"getEpochSchedule"
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getFeeForMessage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Configuration object containing the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"id":1,
"jsonrpc":"2.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getFirstAvailableBlock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ledger
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0","id":1,
"method":"getFirstAvailableBlock"
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getGenesisHash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Returns the genesis hash
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getHealth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ of the error response are **UNSTABLE** and may change in the future
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getHealth"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getHighestSnapshotSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1,"method":"getHighestSnapshotSlot"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getIdentity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The result field will be a JSON object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getIdentity"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getInflationGovernor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The result field will be a JSON object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getInflationGovernor"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getInflationRate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The result field will be a JSON object with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getInflationRate"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getInflationReward.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The result field will be a JSON array with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getLargestAccounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The result will be an RpcResponse JSON object with `value` equal to an array of
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getLargestAccounts"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getLatestBlockhash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object including:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"id":1,
"jsonrpc":"2.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getLeaderSchedule.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Returns a result with one of the two following values:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getMaxRetransmitSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get the max slot seen from retransmit stage.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getMaxRetransmitSlot"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getMaxShredInsertSlot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get the max slot seen from after shred insert.
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getMaxShredInsertSlot"}
'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getMinimumBalanceForRentExemption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Configuration object containing the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0", "id": 1,
"method": "getMinimumBalanceForRentExemption",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getMultipleAccounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The result will be a JSON object with `value` equal to an array of:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getProgramAccounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ The resultant response array will contain:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
5 changes: 3 additions & 2 deletions docs/rpc/http/getRecentPerformanceSamples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ An array of `RpcPerfSample<object>` with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0", "id":1,
"method": "getRecentPerformanceSamples",
"params": [4]}
"params": [4]
}
'
```

Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getRecentPrioritizationFees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ An array of `RpcPrioritizationFee<object>` with the following fields:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0", "id":1,
"method": "getRecentPrioritizationFees",
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getSignatureStatuses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ An array of `RpcResponse<object>` consisting of either:
### Code sample

```shell
curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -d '
curl https://api.devnet.solana.com -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
Expand Down
Loading

0 comments on commit 430c80d

Please sign in to comment.