Examples for using the Lotus RPC API with js-lotus-client
.
npm install
npm start
By default, running this project will get and print out the chain head.
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!