@filecoin-shipyard/lotus-client-rpc

Lotus JS Client RPC Library

Usage no npm install needed!

<script type="module">
  import filecoinShipyardLotusClientRpc from 'https://cdn.skypack.dev/@filecoin-shipyard/lotus-client-rpc';
</script>

README

Lotus JS Client - RPC query module

This library supplies a low-level interface for making calls to the Lotus JSON-RPC API.

See filecoin-shipyard/js-lotus-client for examples that show how to use this provider.

Re-generating TypeScript definitions

TypeScript definitions are generated by go-tsgen in https://github.com/filecoin-shipyard/js-lotus-client-schema. It links directly to Lotus. Updating the version of Lotus in its go.mod should generate updated TypeScript definitions.

There is an npm script here that can build and run the latest version locally if you have Go installed:

npm run build:ts

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.