FLO-appStore/apps/Aterna-Love/florincoin-explorer/api/txmp.php
sairajzero bf43539e3d update
2018-08-19 22:06:29 +05:30

23 lines
530 B
PHP
Executable File

#!/usr/bin/php
<?
// TODO: organize these fucking functions into DB/RPC buckets
// make an include file for interface shit... prettyprint etc
include(__DIR__ . '/../setup/setup.php');
include(__DIR__ . '/../class/florin_rpc.php');
$r = new florin_RPC_client($setup["FLORIND"], 5, $rpc_setup);
$t = new txmp($r, $dbh);
class txmp {
function __construct($r, $dbh) {
$this->rpc = $r;
$this->dbh = $dbh;
}
public function getFullTXMPList() {
$r = $this->dbh->query("select * from txmp");
return $r->fetchAll();
}
}
?>