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).
In browser, just include eztz.js and you're good to go.
NPM plugin in development
Rebuild bundle using the following code (requires webpack):
npm run-script build
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>
Our current goals are:
- Fine tune library
- Add additional tests
Please feel free to contribute - I will merge any pull requests as soon as I've gone through the changes.
By Stephen Andrews, and produly developed at Cryptonomic!
Please consider donating to help me develop this and other Tezos related tools, I currently rely on the kindness of others.
Bitcoin: 1KSiyfgs5XwTZjaLpmCTHxonsyXMx383P1
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)
MIT