From 1442a659c07ef91bafbf67832ba33ab604cf4071 Mon Sep 17 00:00:00 2001 From: Joan E <153745173+joaniefromtheblock@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:25:17 +0000 Subject: [PATCH] update spacing --- services/reference/blast/quickstart.md | 3 +- services/reference/bnb-smart-chain/index.md | 2 +- .../_eth_accounts-request.mdx | 8 ++--- .../_eth_blocknumber-request.mdx | 10 +++--- .../json-rpc-methods/_eth_call-request.mdx | 19 ++++++----- .../json-rpc-methods/_eth_chainid-request.mdx | 8 ++--- .../_eth_estimategas-request.mdx | 19 ++++++----- .../_eth_gasprice-request.mdx | 19 ++++++----- .../_eth_getbalance-request.mdx | 19 ++++++----- .../_eth_getblockbyhash-request.mdx | 19 ++++++----- .../_eth_getblockbynumber-request.mdx | 19 ++++++----- .../_eth_getblockreceipts-request.mdx | 10 +++--- ...getblocktransactioncountbyhash-request.mdx | 19 ++++++----- ...tblocktransactioncountbynumber-request.mdx | 19 ++++++----- .../json-rpc-methods/_eth_getcode-request.mdx | 19 ++++++----- .../json-rpc-methods/_eth_getlogs-request.mdx | 19 ++++++----- .../_eth_getproof-request.mdx | 19 ++++++----- .../_eth_getstorageat-request.mdx | 19 ++++++----- ...transactionbyblockhashandindex-request.mdx | 19 ++++++----- ...ansactionbyblocknumberandindex-request.mdx | 19 ++++++----- .../_eth_gettransactionbyhash-request.mdx | 19 ++++++----- .../_eth_gettransactioncount-request.mdx | 19 ++++++----- .../_eth_gettransactionreceipt-request.mdx | 19 ++++++----- ...th_getunclebyblockhashandindex-request.mdx | 19 ++++++----- ..._getunclebyblocknumberandindex-request.mdx | 19 ++++++----- .../_eth_getunclecountbyblockhash-request.mdx | 19 ++++++----- ...eth_getunclecountbyblocknumber-request.mdx | 19 ++++++----- .../_eth_maxpriorityfeepergas-request.mdx | 19 ++++++----- .../_eth_protocolversion-request.mdx | 19 ++++++----- .../_eth_sendrawtransaction-request.mdx | 19 ++++++----- .../_eth_submitwork-request.mdx | 19 ++++++----- .../json-rpc-methods/_eth_syncing-request.mdx | 19 ++++++----- .../_net_listening-request.mdx | 19 ++++++----- .../_net_peercount-request.mdx | 19 ++++++----- .../json-rpc-methods/_net_version-request.mdx | 19 ++++++----- .../_web3_clientversion-request.mdx | 19 ++++++----- .../_eth_getfilterchanges-request.mdx | 10 +++--- .../_eth_getfilterlogs-request.mdx | 8 ++--- .../_eth_newblockfilter-request.mdx | 8 ++--- .../filter-methods/_eth_newfilter-request.mdx | 8 ++--- ...th_newpendingtransactionfilter-request.mdx | 12 +++---- .../_eth_uninstallfilter-request.mdx | 7 ++-- .../bnb-smart-chain/json-rpc-methods/index.md | 3 +- .../_eth_subscribe-request.mdx | 4 +-- .../reference/bnb-smart-chain/quickstart.md | 32 +++++++++---------- 45 files changed, 325 insertions(+), 378 deletions(-) diff --git a/services/reference/blast/quickstart.md b/services/reference/blast/quickstart.md index 7859f43bb96..308715becb2 100644 --- a/services/reference/blast/quickstart.md +++ b/services/reference/blast/quickstart.md @@ -187,8 +187,7 @@ In these examples, you'll use [NPM](https://docs.npmjs.com/downloading-and-insta ## Next steps -Now that you have successfully made a call to the Blast network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: +Now that you have successfully made a call to the Blast network, you can explore more functionalities and APIs. Here are some suggestions: - **Explore other Blast APIs**: Infura supports a wide range of APIs. You can find more information in the [JSON-RPC API method documentation](json-rpc-methods/index.md). diff --git a/services/reference/bnb-smart-chain/index.md b/services/reference/bnb-smart-chain/index.md index 457328a4851..6a1aeb8d47a 100644 --- a/services/reference/bnb-smart-chain/index.md +++ b/services/reference/bnb-smart-chain/index.md @@ -22,7 +22,7 @@ to API calls to methods such as [`eth_getStorageAt`](./json-rpc-methods/eth_gets ::: -BSC is a self-sovereign blockchain with elected validators running a Proof of Staked +BBNB Smart Chain is a self-sovereign blockchain with elected validators running a Proof of Staked Authority (PoSA) consensus protocol. It is EVM-compatible and supports existing Ethereum tooling. :::info See also diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx index c35ff06d856..f5761ee027a 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx @@ -6,9 +6,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' ``` @@ -19,6 +19,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", " ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx index 2c748d3fd89..9dadf21a5c2 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx @@ -6,19 +6,17 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' ``` ```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":1}' +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx index fd9ffdb3b12..78a56c38470 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx index 2591f0b0381..46b56406fdc 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx @@ -6,9 +6,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' ``` @@ -19,6 +19,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", " ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx index 646ffc86365..797b16b5b73 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx index 84b57d3e5e0..348926f73fb 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_gasPrice", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_gasPrice", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_gasPrice", "params": [], "id":1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx index c875157c122..19d13d12514 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx index 5b57d0a9b55..c67ae8e6f33 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id":1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx index 248ef904354..82af1d63b1c 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx index b0ac4e0c0a4..7a9ffcc4bfe 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx @@ -6,19 +6,17 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' ``` ```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id":1}' +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx index d849e28e868..b1edeabb843 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx index 83590580c34..f81de3cd152 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx index 44018f96e39..b2d499e898d 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx index caf63e2be90..b93224df3f5 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx index da7d156cdf3..24c87de4572 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getProof","id": 1,"params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0","method": "eth_getProof","id": 1,"params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx index eaf6c263ac2..933f6c5566a 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx index eaad2bcc7b1..0c1d73c1af6 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx index 27de5869ce4..ccd4d9b57fd 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx index d41682dc2bb..a85c9467b9d 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx index 0649dfea747..b99dc610cd6 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx index 344e606ddf1..e63bedb3073 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx index ed4b608000f..370077f62e2 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx index e6f643f164f..1cd5263663b 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx index e736878fc36..d7a3d88230c 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx index 79f6a2e0d6b..7d542e72424 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx index 0f5fa2ee625..a5bee7642e6 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/d23391e03c6d40738530a1b4b679e66e -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/d23391e03c6d40738530a1b4b679e66e -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx index b0366b72270..14c5716612e 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx index 70e94a37267..b2c6757e652 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx index 9273fb3ce99..d8c8f421de7 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx index ce0d6b20b0b..80dad26f348 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "method":"eth_syncing", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0", "method":"eth_syncing", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx index f57b8a0bf98..d6967bc69c4 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx index afc20710027..dbd714b19f0 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx index bec8845396e..717c66f9f1d 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx index f65b58db844..6d1616ca811 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx @@ -4,20 +4,19 @@ import TabItem from "@theme/TabItem" - ```bash - curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id":1}' - ``` +```bash +curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' +``` - ```bash - wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id":1}' - ``` +```bash +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' +``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx index ac4b5e61b64..958c04cc2bb 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx @@ -7,9 +7,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getFilterChanges", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method":"eth_getFilterChanges", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' ``` @@ -20,6 +20,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", " ``` - - - + \ No newline at end of file diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx index ad2055e86aa..88c54872049 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx @@ -7,9 +7,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' ``` @@ -20,6 +20,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", " ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx index a9ebfa2722b..ab2354d5d2a 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx @@ -7,9 +7,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params":[], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params":[], "id":1}' ``` @@ -20,6 +20,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", " ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx index b1838cc91ce..8b0656079e8 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx @@ -7,9 +7,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc" :"2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc" : "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id":1}' ``` @@ -20,6 +20,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc" :"2.0", " ``` - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx index d1d1542f6aa..643d6c1374a 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx @@ -2,23 +2,21 @@ import Tabs from "@theme/Tabs" import TabItem from "@theme/TabItem" - - + ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc" :"2.0", "method":"newPendingTransactionFilter", "params": [], "id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "newPendingTransactionFilter", "params": [], "id": 1}' ``` ```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc" :"2.0", "method":"newPendingTransactionFilter", "params": [], "id":1}' +wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method":"newPendingTransactionFilter", "params": [], "id": 1}' ``` - \ No newline at end of file diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx index 48dbb59404c..1e7e9abeb55 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx @@ -7,9 +7,9 @@ import TabItem from "@theme/TabItem" ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}' ``` @@ -20,5 +20,4 @@ wscat -c wss://bsc-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0","me ``` - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/index.md b/services/reference/bnb-smart-chain/json-rpc-methods/index.md index b225fe491b3..5dabdba3cae 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/index.md +++ b/services/reference/bnb-smart-chain/json-rpc-methods/index.md @@ -7,7 +7,6 @@ BSC service. Archive requests are not currently supported. :::info -- WebSockets are also supported on the BSC network and can be used to set up bidirectional - stateful [subscriptions](../../ethereum/json-rpc-methods/subscription-methods/index.md). +WebSockets are also supported on the BSC network and can be used to set up bidirectional stateful [subscriptions](../../ethereum/json-rpc-methods/subscription-methods/index.md). ::: diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx index 53d0a61e712..0760ab8d844 100644 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx @@ -12,7 +12,7 @@ wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", ```bash -wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' +wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' ``` @@ -20,7 +20,7 @@ wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0", ```bash -wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc":"2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' +wscat -c wss://linea-sepolia.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' ``` diff --git a/services/reference/bnb-smart-chain/quickstart.md b/services/reference/bnb-smart-chain/quickstart.md index 22bdf446f44..b928536bf98 100644 --- a/services/reference/bnb-smart-chain/quickstart.md +++ b/services/reference/bnb-smart-chain/quickstart.md @@ -25,14 +25,14 @@ Run the following command in your terminal. Replace `YOUR-API-KEY` with your act ```bash curl https://bsc-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + -X POST \ + -H "Content-Type: application/json" \ + -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' ``` ### Node (JavaScript) -In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. +In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. #### Node Fetch @@ -47,7 +47,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal Replace `YOUR-API-KEY` with your actual Infura API key. ```javascript title="index.js" - import fetch from 'node-fetch'; + import fetch from "node-fetch"; fetch("https://bsc-mainnet.infura.io/v3/YOUR-API-KEY", { method: "POST", @@ -91,11 +91,11 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal Replace `YOUR-API-KEY` with your actual Infura API key. ```javascript title="index.js" - const axios = require('axios'); + const axios = require("axios"); - axios.post('https://bsc-mainnet.infura.io/v3/YOUR-API-KEY', { - jsonrpc: '2.0', - method: 'eth_blockNumber', + axios.post("https://bsc-mainnet.infura.io/v3/YOUR-API-KEY", { + jsonrpc: "2.0", + method: "eth_blockNumber", params: [], id: 1 }) @@ -126,9 +126,9 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal Replace `YOUR-API-KEY` with your actual Infura API key. ```javascript title="index.js" - const ethers = require('ethers'); + const ethers = require("ethers"); - const provider = new ethers.providers.JsonRpcProvider('https://bsc-mainnet.infura.io/v3/YOUR-API-KEY'); + const provider = new ethers.providers.JsonRpcProvider("https://bsc-mainnet.infura.io/v3/YOUR-API-KEY"); provider.getBlockNumber() .then(blockNumber => { @@ -161,7 +161,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal import requests import json - url = 'https://bsc-mainnet.infura.io/v3/YOUR-API-KEY' + url = "https://bsc-mainnet.infura.io/v3/YOUR-API-KEY" payload = { "jsonrpc": "2.0", @@ -170,7 +170,7 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal "id": 1 } - headers = {'content-type': 'application/json'} + headers = {"content-type": "application/json"} response = requests.post(url, data=json.dumps(payload), headers=headers).json() @@ -183,10 +183,9 @@ In these examples,you'll use [npm](https://docs.npmjs.com/downloading-and-instal python index.py ``` -## Next Steps +## Next steps -Now that you have successfully made a call to the BNB Smart Chain network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: +Now that you have successfully made a call to the BNB Smart Chain network, you can explore more functionalities and APIs. Here are some suggestions: - **Explore other BNB Smart Chain APIs**: Infura supports a wide range of APIs. You can find more information in the [JSON-RPC API method documentation](./json-rpc-methods/). @@ -197,4 +196,3 @@ by Infura. Here are some suggestions: Remember, the Infura community is here to help. If you have any questions or run into any issues, check out the [Infura community](https://community.infura.io/) for help and answers to common questions. -