Crates.io | lotus_rs |
lib.rs | lotus_rs |
version | 0.1.0 |
source | src |
created_at | 2023-01-26 17:26:14.314648 |
updated_at | 2023-01-26 17:26:14.314648 |
description | Filecoin lotus JSON-RPC API wrapper |
homepage | |
repository | |
max_upload_size | |
id | 768703 |
size | 29,005 |
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))