lotus/api/client/client.go

12 lines
239 B
Go
Raw Normal View History

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