React-Native-Chainz
A React Native wrapper for the CryptoID Blockchain Explorer API. Uses Fetch so it drops in neatly into any React Native App. In addition to Phore (PHR), it works for any Altcoin for which Chainz has a code.
Installation
Using npm:
npm install react-native-chainz --save
In React Native:
phorechainz // returns the current balance for the provide Phore (PHR) addressphorechainz // returns the current balance for the address provided for the specified Altcoin - using the Chainz code for the Altcoin. More info at https://chainz.cryptoid.infophorechainz // returns a JSON object with the number of known and non-zero addresses (with funds) - for Phore use the code 'phr'phorechainz // returns the number of circulating coins (minus reserve, Prime holdings...)phorechainz // returns the current block height as a plain text stringphorechainz // returns the difficulty as a plain text stringphorechainz // returns the hashrate in GH/s (when supported, blockchain.info API compatible)phorechainz // returns the hashrate in H/s (when supported)phorechainz // returns the hashrate in MH/s (when supported)phorechainz // returns the rich list top 1000 (JSON format)phorechainz // returns the outstanding number of coinsrphorechainz // returns the date and time of the block in which the address was first seen, or a string begining with "ERROR:" otherwise.phorechainz // returns the amount received by the address (sum of vout). For incorrect addresses or addresses never seen on the network, the returned amount is zero. Can be delayed by up to 1 hour.phorechainz // returns the rich list rank for the address.phorechainz // returns the last ten transactions (with at least one confirmation), excluding coinbase and stake transactionsphorechainz // returns summary information about a transaction (confirmations, fees, inputs & output addresses and amounts).