ethereum-optimism / ethereum-optimism/optimism

the method eth_sendRawTransaction does not exist/is not available

Open
#17,563 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 15h
Merged PRs (30d)
145

Description

I deployed the testnet and the block output was normal. However, when I called rpc (http:127.0.0.1:8545) to send transactions, an error occurred. Other readable interfaces were normal.

**version**:
op-node/v1.13.5
op-geth/v1.101511.1

**config**:

1. env

`
L1_RPC_URL=https://rpc.ankr.com/eth_sepolia/xx

L1_RPC_RATE_LIMIT=10
L1_BEACON_URL=https://ethereum-sepolia-beacon-api.publicnode.com

SEQUENCER_ENABLED=true
SEQUENCER_STOPPED=false

PRIVATE_KEY=xx

P2P_LISTEN_PORT=9222
P2P_ADVERTISE_IP=x.x.x.x
OP_NODE_P2P_NO_DISCOVERY=true
OP_NODE_P2P_PEER_BANNING=false

OP_NODE_RPC_PORT=8547
OP_GETH_HTTP_PORT=8545
OP_GETH_WS_PORT=8546
OP_GETH_AUTH_PORT=8551

JWT_SECRET=./jwt.txt
`

2. op-geth

`#!/bin/bash
source .env

./bin/geth \
--datadir=./op-geth-data \
--http \
--http.addr=0.0.0.0 \
--http.port=$OP_GETH_HTTP_PORT \
--http.vhosts="*" \
--http.corsdomain="*" \
--http.api=eth,net,web3,debug,admin,txpool,engine,miner \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=$OP_GETH_WS_PORT \
--ws.origins="*" \
--ws.api=eth,net,web3,debug,admin,txpool,engine,miner \
--authrpc.addr=0.0.0.0 \
--authrpc.port=$OP_GETH_AUTH_PORT \
--authrpc.vhosts="*" \
--authrpc.jwtsecret=$JWT_SECRET \
--syncmode=full \
--gcmode=archive \
--rollup.disabletxpoolgossip=true \
--rollup.sequencerhttp="http://127.0.0.1:8547"
`

3. op-node

`#!/bin/bash

source .env

./bin/op-node \
--l1=$L1_RPC_URL \
--l1.rpc-rate-limit=$L1_RPC_RATE_LIMIT \
--l1.beacon=$L1_BEACON_URL \
--l2=http://localhost:$OP_GETH_AUTH_PORT \
--l2.jwt-secret=$JWT_SECRET \
--rollup.config=./rollup.json \
--sequencer.enabled=$SEQUENCER_ENABLED \
--sequencer.stopped=$SEQUENCER_STOPPED \
--verifier.l1-confs=4 \
--p2p.listen.ip=0.0.0.0 \
--p2p.listen.tcp=$P2P_LISTEN_PORT \
--p2p.listen.udp=$P2P_LISTEN_PORT \
--p2p.advertise.ip=$P2P_ADVERTISE_IP \
--p2p.advertise.tcp=$P2P_LISTEN_PORT \
--p2p.advertise.udp=$P2P_LISTEN_PORT \
--p2p.sequencer.key=$PRIVATE_KEY \
--p2p.no-discovery=$OP_NODE_P2P_NO_DISCOVERY \
--p2p.ban.peers=$OP_NODE_P2P_PEER_BANNING \
--rpc.addr=0.0.0.0 \
--rpc.port=$OP_NODE_RPC_PORT \
--rpc.enable-admin=true \
--log.level=info \
--log.format=json \
--l1.trustrpc=true
`

**op-geth log**:
the method eth_sendRawTransaction does not exist/is not available

Image

Contributor guide

Open the contributing guide

Research direction

Reproduce the RPC call against op-geth at 127.0.0.1:8545 using the supplied op-node and op-geth commands. Start by checking the configured HTTP API and the op-geth log for eth_sendRawTransaction handling. Done means identifying why the method is unavailable and documenting or correcting the supported transaction endpoint/configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.