public static function getBlock($block) { self::$clientd = new jsonRPCClient("http://" . WALLET_RPC_USER . ":" . WALLET_RPC_PASS . "@" . WALLET_RPC_SERVER . ":" . WALLET_RPC_PORT . ""); $block_hash = self::$clientd->getblockhash((int) $block); $block_data = self::$clientd->getblock($block_hash); return $block_data; }