Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jogiter/web3.js-examples


https://github.com/jogiter/web3.js-examples

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# web3.js official demos

[https://docs.web3js.org/](https://docs.web3js.org/)

## project init

```sh
# init typescript
npx tsc --init

# install ts-node globally
# https://stackoverflow.com/questions/62096269/cant-run-my-node-js-typescript-project-typeerror-err-unknown-file-extension
# https://bobbyhadz.com/blog/typescript-unknown-file-extension-error
npm install ts-node --global

# execute .ts file
ts-node ./examples/provider.ts
```

## install web3.js

Install web3.js using npm:

```sh
npm install [email protected]
```