Full Node API

Enable the API by passing the fullNode 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.fullNode })

Lotus source: github.com/filecoin-project/lotus/api/api_full.go

API Reference