2017 © Pedro Peláez
 

library prospect

image

chainfailure/prospect

  • Wednesday, March 21, 2018
  • by chainfailure
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Prospect

This project is still in early development, shit will break, shit will change., (*1)

A PHP library for interaction with various cryptocurrencies., (*2)

Who is this for?

Everyone seeking to query specific information from a cryptocurrency's blockchain., (*3)

What can it do?

Currency Code Fetch transactions Fetch addresses
Viacoin via :white_check_mark: :white_check_mark:
Bitcoin btc :white_check_mark: :white_check_mark:
Litecoin ltc :white_check_mark: :white_check_mark:
Dash dash :white_check_mark: :white_check_mark:

Fine, show me some code

How to fetch a Viacoin transaction:, (*4)

use Prospect\Currency;

$viacoin = Currency::get('via');
$transaction = $viacoin->getTransaction(
    '9c57869fd7e131c0d9ddfe3ba7f62669bc6b01851323709aa96b9d7a9719dc05'
);
echo 'In: '.$transaction->getValueIn()."\n";
echo 'Out: '.$transaction->getValueOut()."\n";
echo 'Fee: '.$transaction->getFee()."\n";

How to fetch a Litecoin address's transactions and balance:, (*5)

use Prospect\Currency;

$litecoin = Currency::get('ltc');
$address = $litecoin->getAddress(
    'LbAw4wCLj9VAKxV4aeyRTygFdUxT1LiudY'
);
echo 'Balance: '.$address->getBalance()."\n";
echo 'Received: '.$address->getTotalReceived()."\n";
echo 'Sent: '.$address->getTotalSent()."\n";
echo 'Unconfirmed: '.$address->getUnconfirmedBalance()."\n";

Now get off my lawn., (*6)

The Versions

21/03 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires

by Avatar chainfailure