Skip to content

Examples for using the Lotus RPC API with `js-lotus-client`.

License

Notifications You must be signed in to change notification settings

alanshaw/js-lotus-client-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-lotus-client examples

Examples for using the Lotus RPC API with js-lotus-client.

Install

npm install

Usage

npm start

By default, running this project will get and print out the chain head.

Changing the example

Open up index.ts and find the line:

    /** REPLACE NEXT LINE WITH EXAMPLE FUNCTION CALL **/
    await chainHeadEx()

...and replace chainHeadEx with a different example.

🙏 Please send a PR with more examples!

About

Examples for using the Lotus RPC API with `js-lotus-client`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages