specs icon indicating copy to clipboard operation
specs copied to clipboard

Consensus P2P RPC API

Open emhane opened this issue 8 months ago • 1 comments

Add specs for the op-node p2p RPC API https://github.com/ethereum-optimism/optimism/blob/6cf1026b784090fa60666933c198c24a4b9810b1/op-service/apis/p2p.go#L14-L72 Check out the implementation to see if docs are available for each given API method to copy. In case of missing docs, try write the specs for the method so it describes what the Go code is doing, if unclear it's ok to leave that method description as a todo comment.

rust impl: https://github.com/op-rs/kona/blob/de7df1145f5fd914cc70974b6f78267740a89378/crates/node/rpc/src/jsonrpsee.rs#L57-L127 https://github.com/op-rs/kona/blob/de7df1145f5fd914cc70974b6f78267740a89378/crates/node/rpc/src/net.rs#L72-L221 go impl: https://github.com/ethereum-optimism/optimism/blob/6cf1026b784090fa60666933c198c24a4b9810b1/op-node/p2p/rpc_server.go#L72-L380

emhane avatar Apr 23 '25 10:04 emhane

would like to work on this!

rose2221 avatar Jun 03 '25 20:06 rose2221