Skip to content

Commit 3cd2778

Browse files
committed
feat(schema): add eth_getAddressesInBlock
1 parent 9c873c2 commit 3cd2778

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

src/eth/block.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
- name: eth_getAddressesInBlock
2+
summary: Returns the addresses that appear in the block and the index of each transaction they appear in.
3+
params:
4+
- name: Block
5+
required: true
6+
schema:
7+
$ref: '#/components/schemas/BlockNumberOrTag'
8+
result:
9+
name: Addresses in block
10+
schema:
11+
oneOf:
12+
- $ref: '#/components/schemas/notFound'
13+
- $ref: '#/components/schemas/BlockAddresses'
114
- name: eth_getBlockByHash
215
summary: Returns information about a block by hash.
316
params:

src/schemas/address.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
BlockAddresses:
2+
type: object
3+
title: Block addresses
4+
description: Addresses that appear in a single block
5+
required:
6+
- addresses
7+
- blockNumber
8+
additionalProperties: false
9+
properties:
10+
addresses:
11+
title: Block addresses
12+
type: array
13+
$ref: '#/components/schemas/AddressBlockAppearances'
14+
blockNumber:
15+
title: Block number
16+
$ref: '#/components/schemas/uint'
17+
AddressBlockAppearances:
18+
type: object
19+
title: Address appearances in a single block
20+
description: An address that appears in one or more locations in a block
21+
required:
22+
- address
23+
- indices
24+
additionalProperties: false
25+
properties:
26+
address:
27+
title: Address
28+
$ref: '#/components/schemas/address'
29+
indices:
30+
title: Transaction indices
31+
$ref: '#/components/schemas/TransactionIndices'
32+
TransactionIndices:
33+
title: Transaction index list
34+
type: array
35+
description: Indices of transactions an address appears in within a block
36+
items:
37+
$ref: '#/components/schemas/uint64'

tests/eth_getAddressesInBlock/get-addresses-in-block.io

+2
Large diffs are not rendered by default.

wordlist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ randao
5757
src
5858
https
5959
forkchoiceupdatedresponsev
60+

0 commit comments

Comments
 (0)