#json-rpc #filecoin #api-wrapper #client #lotus

lotus_rs

Filecoin lotus JSON-RPC API wrapper

1 unstable release

0.1.0 Jan 26, 2023

#97 in #filecoin

MIT/Apache

21KB
578 lines

Filecoin Lotus RPC client for rust

Getting Started

Initialize client by setting in env

"LOTUS_API_HOST_URL" "LOTUS_HTTP_CONTENT_TYPE" "LOTUS_API_TOKEN"

      let client = LotusClient::init(LotusConfig::from_env());

or you can pass them as values

  let client = LotusClient::init(LotusConfig::new(host_url, content_type, token))

Dependencies

~17–32MB
~554K SLoC