Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/eth/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,33 @@
name: Block number
schema:
$ref: '#/components/schemas/uint'
- name: eth_checkMethodSupport
summary: Returns an object with data about supported methods
params:
- name: Method names
required: false
schema:
type: array
items :
$ref: '#/components/schemas/methodName'
result:
name: Method support object
schema:
type: object
patternProperties:
'^(eth_|debug_|engine_).*$': boolean
additionalProperties: false
examples:
- name: eth_checkMethodSupport example
params:
- name: Method names
value:
- 'eth_getBalance'
- 'eth_blockNumber'
- 'eth_sendTransaction'
result:
name: Method support object
value:
eth_getBalance: true
eth_blockNumber: true
eth_sendTransaction: false
4 changes: 4 additions & 0 deletions src/schemas/base-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ bytes65:
title: 65 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{130}$
methodName:
title: Name of a ETH JSON-RPC method
type: string
pattern: ^(eth_|debug_|engine_).*$
ratio:
title: normalized ratio
type: number
Expand Down