Code Monkey home page Code Monkey logo

eztz's Introduction

eztz - Javascript API library for Tezos

Build Status codecov

This library is compatible with the Tezos blockchain, implementing communication with the JSON RPC API and providing key generation, signing, verification, and contract interaction. Try our Live demo - it's eztz!

You can checkout our Documentation, or follow installation below.

By default, eztz will connect to https://tezrpc.me - a network of community supplied Tezos nodes. You can switch this to use your own local node, or a node of your choosing, via eztz.node.setProvider(url).

Installation

In browser, just include eztz.js and you're good to go.

NPM plugin in development

Building

Rebuild bundle using the following code (requires webpack):

npm run-script build

Usage

Include the eztz.js file and use the eztz object directly:

<script src="./eztz.js"></script>
<script>
    eztz.rpc.getBalance("tz1LSAycAVcNdYnXCy18bwVksXci8gUC2YpA").then(function(res){
        alert("Your balance is " + res);
    }).catch(function(e){
        console.log(e);
    });
</script>

Future Development

Our current goals are:

  • Fine tune library
  • Add additional tests

Contribute

Please feel free to contribute - I will merge any pull requests as soon as I've gone through the changes.

Author

By Stephen Andrews, and produly developed at Cryptonomic!

Support Us

Please consider donating to help me develop this and other Tezos related tools, I currently rely on the kindness of others.

Bitcoin: 1KSiyfgs5XwTZjaLpmCTHxonsyXMx383P1

Credits

https://github.com/bitcoinjs/bs58check (for base58check encode/decode)
https://github.com/jedisct1/libsodium.js (for all crypto related functions)
https://github.com/bitcoinjs/bip39 (for mnemonic code)
https://github.com/crypto-browserify/pbkdf2 (for passphrase hashing)
https://github.com/feross/buffer (for browser buffer)

License

MIT

eztz's People

Contributors

stephenandrews avatar opspch avatar renovatorruler avatar corymonroe avatar

Watchers

Frank Kwok avatar James Cloos 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.