Worker API
Enable the API by passing the workerApi
schema to LotusRPC
e.g.
import { LotusRPC } from '@filecoin-shipyard/lotus-client-rpc'
import { mainnet } from '@filecoin-shipyard/lotus-client-schema'
import { NodejsProvider } from '@filecoin-shipyard/lotus-client-provider-nodejs'
const provider = new NodejsProvider('<PROVIDER_URL>')
const client = new LotusRPC(provider, { schema: mainnet.workerApi })
Lotus source: github.com/filecoin-project/lotus/api/api_worker.go