Skip to content

Commit 8236b83

Browse files
authored
docs(specs): add realtime_sendRawTransaction method for MegaETH (#1122)
Add the missing realtime_sendRawTransaction endpoint which submits a transaction and returns the receipt in a single call, timing out after 10 seconds. Added as a manual exception (x-bot-ignore) since the Daikon workflow skips non-eth_ prefixed custom methods.
1 parent 7c2d107 commit 8236b83

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

src/openrpc/chains/_components/custom/methods.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,6 +1347,43 @@ components:
13471347
logs: []
13481348
status: "0x1"
13491349

1350+
realtime_sendRawTransaction:
1351+
name: realtime_sendRawTransaction
1352+
summary: Submits a transaction and returns the receipt in a single call.
1353+
description: |
1354+
Submits a signed transaction and returns the transaction receipt without polling. This method combines submission and receipt retrieval into one call, returning the receipt as soon as the transaction is executed in a mini block.
1355+
1356+
If the transaction is not executed within 10 seconds, the method returns a `realtime transaction expired` error.
1357+
params:
1358+
- name: Transaction
1359+
required: true
1360+
description: The signed transaction data, encoded as a hexadecimal string.
1361+
schema:
1362+
$ref: "../evm/base-types.yaml#/components/schemas/bytes"
1363+
result:
1364+
name: Receipt information
1365+
description: The transaction receipt object containing various properties of the transaction receipt.
1366+
schema:
1367+
oneOf:
1368+
- $ref: "../evm/base-types.yaml#/components/schemas/notFound"
1369+
- $ref: "../evm/receipt.yaml#/components/schemas/ReceiptInfo"
1370+
examples:
1371+
- name: realtime_sendRawTransaction example
1372+
params:
1373+
- name: Transaction
1374+
value: "0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"
1375+
result:
1376+
name: Receipt information
1377+
value:
1378+
transactionHash: "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
1379+
blockHash: "0xabcd1234..."
1380+
blockNumber: "0x10d4f"
1381+
cumulativeGasUsed: "0x5208"
1382+
gasUsed: "0x5208"
1383+
contractAddress: null
1384+
logs: []
1385+
status: "0x1"
1386+
13501387
eth_callMany:
13511388
name: eth_callMany
13521389
description: >

src/openrpc/chains/megaeth/megaeth.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ servers:
1111
name: MegaETH Mainnet
1212
- url: https://megaeth-testnet.g.alchemy.com/v2
1313
name: MegaETH Testnet
14+
x-bot-ignore:
15+
- realtime_sendRawTransaction
1416
methods:
1517
- $ref: ../_components/custom/methods.yaml#/components/methods/eth_callMany
1618
- $ref: ../_components/custom/methods.yaml#/components/methods/eth_feeHistory
@@ -51,6 +53,8 @@ methods:
5153
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_newBlockFilter
5254
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_newFilter
5355
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_sendRawTransaction
56+
- $ref: >-
57+
../_components/custom/methods.yaml#/components/methods/realtime_sendRawTransaction
5458
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_submitWork
5559
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_subscribe
5660
- $ref: ../_components/evm/methods.yaml#/components/methods/eth_uninstallFilter

0 commit comments

Comments
 (0)