lotus/api/client/client.go
Łukasz Magiera 9299ba5fa6 Fix imports
2019-07-08 14:46:30 +02:00

14 lines
291 B
Go

package client
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/lib/jsonrpc"
)
// NewRPC creates a new http jsonrpc client.
func NewRPC(addr string) api.API {
var res api.Struct
jsonrpc.NewClient(addr, "Filecoin", &res.Internal)
return &res
}