Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/umbracle/eth-jsonrpc-server

Ethereum JSON-RPC server stub implementation
https://github.com/umbracle/eth-jsonrpc-server

Last synced: about 1 month ago
JSON representation

Ethereum JSON-RPC server stub implementation

Awesome Lists containing this project

README

        

# Eth-jsonrpc-server

## Usage

```
package main

import (
ethjsonrpc "github.com/umbracle/eth-jsonrpc-server"
"github.com/umbracle/eth-jsonrpc-server/jsonrpc"
)

func main() {
// Create the jsonrpc server
srv := jsonrpc.NewServer(
jsonrpc.WithBindAddr("0.0.0.0:8545"),
jsonrpc.WithIPC("ipc.path"),
)

// bind the ethereum endpoints
srv.Register(ethjsonrpc.NewEth(&backend{}))
}

type backend struct {
// ...
}
```