Zcash — the privacy first blockchain — available in Amberdata.io

Trevor Clarke
Nov 1 · 3 min read

Blockchains are inherently transparent, with Zcash accounts have an extra ability — Shielded transactions. With this release, Amberdata supports RPC, REST & Websockets, enabling all the features you need without running expensive infrastructure.

Zcash now available in Amberdata.io

As stated by their website “Shielded Zcash transactions are completely private”, a technology made possible by specific zero-knowledge proofs called zk-SNARKs (zero-knowledge succinct non-interactive arguments of knowledge).

“Zero-knowledge” proofs allow one party (the prover) to prove to another (the verifier) that a statement is true, without revealing any information beyond the validity of the statement itself. For example, given the hash of a random number, the prover could convince the verifier that there indeed exists a number with this hash value, without revealing what it is. — Zcash

With shielded transactions comes a few scenarios that are worth noting. There are four cases or types of transactions that can occur:

  • Private to Private — Two z-addresses sending transactions to each other. Both are shielded during this transaction.
  • Deshielding — A z-address sends a transaction to a t-address. “T-address” is the transparent address, with fully transparent balances.
  • Shielding — A T-address sends a transaction to a z-address.
  • Public — Two t-addresses sending a transaction between each other.

Let’s look at some quick examples for Zcash

  1. Get Account Balances
  2. Get Latest Blocks & Transactions
  3. Connect to Zcash RPC

NOTE: While it is possible to do all the above examples in direct requests without a library, it is faster and simple to show code with the SDK.

Important! Get your Free API Key:

Go to Amberdata.io to Get Started.

Get Zcash with a simple configuration

Using the following code, we are able to configure requests for Zcash using a simple namespace variable. This configures the x-amberdata-blockchain-id under the hood, and instantiates all available methods. Click here to edit example →

The portfolio and address data is by far the most valuable information available. This is accessible either with individual address requests, or by passing multiple addresses and getting many balances at once.

Get postman collection for easy API testing

For ongoing development, we’ve created a postman collection that covers all of our features and utilizes simple parameters so you can focus on building. Click here to download the collection directly, or go here for tons of resources:

Go further — Amberdata supports these features for Zcash:

  1. REST — A full API with standardized data sets, across blockchains
  2. WebSockets — Streaming data and updates, realtime from the network
  3. RPC — Connect directly to the node without running the node

amberdata

We provide a platform for monitoring, searching, analyzing, and securing public and private blockchains. This platform allows for operational intelligence for blockchain infrastructure, on-chain decentralized applications, token utilization, and transactions.

Trevor Clarke

Written by

VP of Product - Amberdata.io, Passionate Software Engineer 🤓, Hobbyist in 3D Design & Robotics

amberdata

amberdata

We provide a platform for monitoring, searching, analyzing, and securing public and private blockchains. This platform allows for operational intelligence for blockchain infrastructure, on-chain decentralized applications, token utilization, and transactions.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade