Gateway API
Enable the API by passing the gatewayApi
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.gatewayApi })
Lotus source: github.com/filecoin-project/lotus/api/api_gateway.go