Giter Site home page Giter Site logo

web3-terminal's Introduction

web3-terminal

I needed a web3 terminal from time to time and it was a pain opening nodejs or python terminal, then connecting to the RPC which needs to be dug up.
Not speaking about ABI's and wallets ๐Ÿคฆโ€โ™‚๏ธ

Sooo... I configured this terminal ๐Ÿ™ƒ

Demo

https://freaker2k7.github.io/web3-terminal/index.html

Details

It's basically a very lightweight Javascript console as it uses eval().
See https://github.com/jcubic/jquery.terminal

โ€ข You get the Big() function to work with big-numbers (See big.js).
โ€ข You get the w3 (web3) & eth (ethers) instances connected right away.
โ€ข You get a wrapper function for interacting with contracts which by default loads the ABI's of ERC20, ERC721, ERC1155, UniswapRouterV2, UniswapFactoryV2, UniswapRouterV3 and UniswapFactoryV3 ๐Ÿ’ช

NOTE: You can do complex operations with the objects you create from the "terminal" in the DevTools of the browser as you're working with global variable ๐Ÿ˜‰

NOTE: If you try to print an object bigger than 16K it'll get truncated. If you really need that long print, run the following command before printing:

static_conf.MODE = 'full'



P.S.: For those of you who are not familiar with python, check out: https://python.org/dev/peps/pep-0020

web3-terminal's People

Contributors

freaker2k7 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.