realtime_sendRawTransaction
realtime_sendRawTransaction — submit a transaction and receive the receipt in a single call without polling.
Last updated
realtime_sendRawTransaction — submit a transaction and receive the receipt in a single call without polling.
Last updated
curl -sS https://mainnet.megaeth.com/rpc \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"realtime_sendRawTransaction","params":["0x<hex-encoded-signed-tx>"]}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"transactionHash": "0xf98a6b5de84ee59666d0ff3d8c361f308c3a22fc0bb94466810777d60a3ed7a7",
"blockNumber": "0x10",
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"to": "0xa7b8c275b3dde39e69a5c0ffd9f34f974364941a",
"gasUsed": "0x5208",
"status": "0x1",
"logs": [],
"contractAddress": null
}
}{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "realtime transaction expired"
}
}