Skip to content
Tezos JS Library
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cli basic cli functionality Nov 14, 2017
dist Update eztz.min.js Aug 8, 2019
examples Improving for 004 Jun 22, 2019
src Update main.js Aug 8, 2019
test Updates and changes to tests Jun 28, 2018
.editorconfig add tests Apr 23, 2018
.gitignore Update .gitignore Nov 25, 2018
.travis.yml fixing travis yml Nov 14, 2017
ISSUE_TEMPLATE.md Create ISSUE_TEMPLATE.md Nov 14, 2017
LICENSE Add license Nov 14, 2017
PROTO_003_FEES.md Create PROTO_003_FEES.md Nov 28, 2018
PROTO_004_FEES.md Update PROTO_004_FEES.md Jun 22, 2019
README.md Update README.md Sep 29, 2018
example_node.js Updates Nov 26, 2018
index.js Make compatible with node.js Sep 15, 2018
main.spec.js Updating tests Nov 14, 2017
package-lock.json Working on op parser Nov 25, 2018
package.json
webpack.config.js cleanup Nov 14, 2017
yarn.lock Webpack integration Oct 24, 2017

README.md

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. eztz.js is used by numerous projects, including TezBox and Bakechain.

You can checkout our Documentation, or follow installation below.

By default, eztz will connect to https://rpc.tezrpc.me - public Tezos infrastructure provided by TezTech. 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 dist/eztz.min.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.min.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:

  • Add support for additional RPC endpoints (e.g. voting)
  • Hardware wallet support
  • Support for additional cryto curves
  • 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

Originally developed by Stephen Andrews, eztz.js is now owned by TezTech.

Support Us

Development is now funded by a generous grant from the Tezos Foundation. Donations are also welcone.

Bitcoin: 1KSiyfgs5XwTZjaLpmCTHxonsyXMx383P1 Tezos: tz1cLDXASgh48ntYmLqM3cqPEXmUtpJVVPma

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

You can’t perform that action at this time.