JSON-RPC Overview
This API is still a WIP, with more methods being added continuously.
Need a specific method? Let us know on
Github or Filecoin Slack
(#fil-forest-help
) 🙏
Overview
The RPC interface is the primary mechanism for interacting with Forest.
As there is presently no cross-client specification, the Lotus V0 and V1 APIs are the reference for Forest's implementation.
An FIP to establish a canonical RPC API specification for general use has been proposed.
Connecting To A Node
By default, Forest exposes the RPC API on localhost:2345
. See CLI docs for configuration options.
Authentication
Access control is implemented for certain methods. Levels of access include:
- Read
- Write
- Admin
Authentication is performed via JWT Tokens. When starting Forest use --save-token <FILE>
to store an Admin
token,
otherwise the token will be printed in the logs during startup. With this token you can call the methods AuthNew
to generate additional tokens as needed.