-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16ed267
commit b8c3af2
Showing
33 changed files
with
564 additions
and
254 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
services/reference/_partials/_eth_getblockreceipts-description.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Returns all transaction receipts for a given block, the amount of gas used, and any event logs that might have been produced by a smart contract during the transaction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Replace `YOUR-API-KEY` with an API key from your [Infura dashboard](https://infura.io/dashboard). |
11 changes: 11 additions & 0 deletions
11
services/reference/_partials/_eth_getblockreceipts-parameters.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
`blockNumber`:[_Required_] Hexadecimal or decimal integer representing a block number, or one of | ||
the string tags: | ||
- `latest` | ||
- `earliest` | ||
- `pending` | ||
- `finalized` | ||
- `safe` | ||
|
||
:::note | ||
`pending` returns the same data as `latest`. | ||
::: |
22 changes: 22 additions & 0 deletions
22
services/reference/_partials/_eth_getblockreceipts-request.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="cURL"> | ||
|
||
```bash | ||
curl https://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}' | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="WSS"> | ||
|
||
```bash | ||
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
63 changes: 63 additions & 0 deletions
63
services/reference/_partials/_eth_getblockreceipts-response.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="JSON"> | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": [ | ||
{ | ||
"blockHash": "0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182", | ||
"blockNumber": "0x6f55", | ||
"contractAddress": null, | ||
"cumulativeGasUsed": "0x18c36", | ||
"from": "0x22896bfc68814bfd855b1a167255ee497006e730", | ||
"gasUsed": "0x18c36", | ||
"effectiveGasPrice": "0x9502f907", | ||
"logs": [ | ||
{ | ||
"address": "0xfd584430cafa2f451b4e2ebcf3986a21fff04350", | ||
"topics": [ | ||
"0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", | ||
"0x4be29e0e4eb91f98f709d98803cba271592782e293b84a625e025cbb40197ba8", | ||
"0x000000000000000000000000835281a2563db4ebf1b626172e085dc406bfc7d2", | ||
"0x00000000000000000000000022896bfc68814bfd855b1a167255ee497006e730" | ||
], | ||
"data": "0x", | ||
"blockNumber": "0x6f55", | ||
"transactionHash": "0x4a481e4649da999d92db0585c36cba94c18a33747e95dc235330e6c737c6f975", | ||
"transactionIndex": "0x0", | ||
"blockHash": "0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182", | ||
"logIndex": "0x0", | ||
"removed": false | ||
} | ||
], | ||
"logsBloom": "0x00000004000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000080020000000000000200010000000000000000000001000000800000000000000000000000000000000000000000000000000000100100000000000000000000008000000000000000000000000000000002000000000000000000000", | ||
"status": "0x1", | ||
"to": "0xfd584430cafa2f451b4e2ebcf3986a21fff04350", | ||
"transactionHash": "0x4a481e4649da999d92db0585c36cba94c18a33747e95dc235330e6c737c6f975", | ||
"transactionIndex": "0x0", | ||
"type": "0x0" | ||
}, | ||
{ | ||
"blockHash": "0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182", | ||
"blockNumber": "0x6f55", | ||
"contractAddress": null, | ||
"cumulativeGasUsed": "0x1de3e", | ||
"from": "0x712e3a792c974b3e3dbe41229ad4290791c75a82", | ||
"gasUsed": "0x5208", | ||
"effectiveGasPrice": "0x9502f907", | ||
"logs": [], | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"status": "0x1", | ||
"to": "0xd42e2b1c14d02f1df5369a9827cb8e6f3f75f338", | ||
"transactionHash": "0xefb83b4e3f1c317e8da0f8e2fbb2fe964f34ee184466032aeecac79f20eacaf6", | ||
"transactionIndex": "0x1", | ||
"type": "0x2" | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`result`: _object_ Block object or `null` when there is no corresponding block. |
22 changes: 22 additions & 0 deletions
22
services/reference/arbitrum/json-rpc-methods/_eth_getblockreceipts-request.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="cURL"> | ||
|
||
```bash | ||
curl https://arbitrum-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}' | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="WSS"> | ||
|
||
```bash | ||
wscat -c wss://arbitrum-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
40 changes: 40 additions & 0 deletions
40
services/reference/arbitrum/json-rpc-methods/eth_getblockreceipts.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "eth_getBlockReceipts" | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
import Description from "/docs/api/networks/_partials/_eth_getblockreceipts-description.mdx"; | ||
|
||
<Description /> | ||
|
||
## Parameters | ||
|
||
import Params from "/docs/api/networks/_partials/_eth_getblockreceipts-parameters.mdx"; | ||
|
||
<Params /> | ||
|
||
## Returns | ||
|
||
import Returns from "/docs/api/networks/_partials/_eth_getblockreceipts-returns.mdx"; | ||
|
||
<Returns /> | ||
|
||
## Example | ||
|
||
import Example from "/docs/api/networks/_partials/_eth_getblockreceipts-example.mdx"; | ||
|
||
<Example /> | ||
|
||
### Request | ||
|
||
import Request from "./_eth_getblockreceipts-request.mdx"; | ||
|
||
<Request /> | ||
|
||
### Response | ||
|
||
import Response from "/docs/api/networks/_partials/_eth_getblockreceipts-response.mdx"; | ||
|
||
<Response /> |
22 changes: 22 additions & 0 deletions
22
...reference/avalanche-c-chain/json-rpc-methods/_eth_getblockreceipts-requests.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="cURL"> | ||
|
||
```bash | ||
curl https:///avalanche-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}' | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="WSS"> | ||
|
||
```bash | ||
wscat -c wss:///avalanche-mainnet.infura.io/ws/v3/YOUR-API-KEY -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
40 changes: 40 additions & 0 deletions
40
services/reference/avalanche-c-chain/json-rpc-methods/eth_getblockreceipts.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "eth_getBlockReceipts" | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
import Description from "/docs/api/networks/_partials/_eth_getblockreceipts-description.mdx"; | ||
|
||
<Description /> | ||
|
||
## Parameters | ||
|
||
import Params from "/docs/api/networks/_partials/_eth_getblockreceipts-parameters.mdx"; | ||
|
||
<Params /> | ||
|
||
## Returns | ||
|
||
import Returns from "/docs/api/networks/_partials/_eth_getblockreceipts-returns.mdx"; | ||
|
||
<Returns /> | ||
|
||
## Example | ||
|
||
import Example from "/docs/api/networks/_partials/_eth_getblockreceipts-example.mdx"; | ||
|
||
<Example /> | ||
|
||
### Request | ||
|
||
import Request from "./_eth_getblockreceipts-request.mdx"; | ||
|
||
<Request /> | ||
|
||
### Response | ||
|
||
import Response from "/docs/api/networks/_partials/_eth_getblockreceipts-response.mdx"; | ||
|
||
<Response /> |
15 changes: 0 additions & 15 deletions
15
...s/reference/base/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
services/reference/base/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...reference/base/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
services/reference/base/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
services/reference/base/json-rpc-methods/filter-methods/eth_newblockfilter.mdx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.