diff --git a/src/eth/client.yaml b/src/eth/client.yaml index 0af6f83a2..528efb97b 100644 --- a/src/eth/client.yaml +++ b/src/eth/client.yaml @@ -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 \ No newline at end of file diff --git a/src/schemas/base-types.yaml b/src/schemas/base-types.yaml index f598ae1ae..ce477a28d 100644 --- a/src/schemas/base-types.yaml +++ b/src/schemas/base-types.yaml @@ -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