Closed
Description
Currently it seems there is no way to convert a *types.Block
into the canonical JSON form using the go-ethereum
package alone. This is due to the fact that ethapi
resides in an Internal package and cannot be imported.
My understanding is that go-ethereum
is the de-facto standard Go client for Ethereum. Whether that is a strict goal or not, I'm not sure. But Marshaling these common data structures into their canonical JSON forms would be a very useful feature.
System information
Geth version: master/HEAD
OS & Version: Windows/Linux/OSX
Commit hash : db79143
Expected behaviour
go-ethereum should allow downstream modules to marshal blocks and other common types into JSON.
Actual behaviour
ethapi.RPCMarshalBlock
exists in an Internal package and cannot be imported by downstream packages.
Metadata
Metadata
Assignees
Labels
No labels