lotus/api/client/client.go

14 lines
279 B
Go
Raw Normal View History

package client
import (
"github.com/filecoin-project/go-lotus/api"
2019-07-08 11:02:02 +00:00
"github.com/filecoin-project/go-lotus/lib"
)
2019-07-02 17:45:03 +00:00
// NewRPC creates a new http jsonrpc client.
func NewRPC(addr string) api.API {
var res api.Struct
2019-07-08 11:02:02 +00:00
lib.NewClient(addr, "Filecoin", &res.Internal)
return &res
}