eth_getBlockReceipts

Returns the receipts of a block by number or hash.

https://api.1inch.com/web3/324
Supported on:
ZKsync

Parameters

Block (required)

Block
* any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
anyOf[0]
string
anyOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
anyOf[2]
string
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/324', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'eth_getBlockReceipts',
    params: ['string'],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Receipts information

Receipts information
any
oneOf[0]
null
oneOf[1]
array
items
object
type
string
transactionHash
* string
transactionIndex
* string
blockHash
* string
blockNumber
* string
from
* string
to
any
oneOf[0]
null
oneOf[1]
string
cumulativeGasUsed
* string
gasUsed
* string
blobGasUsed
string
contractAddress
any
oneOf[0]
string
oneOf[1]
null
logs
* array
items
object
removed
boolean
logIndex
string
transactionIndex
string
transactionHash
* string
blockHash
string
blockNumber
string
address
string
data
string
topics
array
items
string
additionalProperties
none
logsBloom
* string
root
string
status
string
effectiveGasPrice
* string
blobGasPrice
string
additionalProperties
none
JSON
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[
  {
    "blockHash": "0x19514ce955c65e4dd2cd41f435a75a46a08535b8fc16bc660f8092b32590b182",
    "blockNumber": "0x6f55",
    "contractAddress": null,
    "cumulativeGasUsed": "0x18c36",
    "from": "0x22896bfc68814bfd855b1a167255ee497006e730",
    "gasUsed": "0x18c36",
    "blobGasUsed": "0x20000",
    "effectiveGasPrice": "0x9502f907",
    "blobGasPrice": "0x32",
    "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",
    "blobGasUsed": "0x20000",
    "effectiveGasPrice": "0x9502f907",
    "blobGasPrice": "0x32",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "status": "0x1",
    "to": "0xd42e2b1c14d02f1df5369a9827cb8e6f3f75f338",
    "transactionHash": "0xefb83b4e3f1c317e8da0f8e2fbb2fe964f34ee184466032aeecac79f20eacaf6",
    "transactionIndex": "0x1",
    "type": "0x2"
  }
]

Did you find what you need?