1.0.0 • Published 3 years ago

chromaway-postchain-assignment v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Chromia frontend assignments - create npm package

Tech stack

  • Typescript

Technical Notes

  • Build the fetchBlocks and fetchTransactions functions in typescript, then publish it as npm package

Further Improvement

  • Implement unit test and integration test
  • Implement pipeline in the real world scenario

Installing

npm install chromia-postchain-assignment

Example

To get the blocks data from postchain

fetchBlocks().then((res) => {
    console.log(res);
});

To get the transactions data from postchain

fetchTransactions().then((res) => {
    console.log(res);
});
1.0.0

3 years ago