Example #1
0
 /**
  * @param $string
  * @param Math $math
  * @return Block
  */
 public static function fromHex($string, Math $math = null)
 {
     $serializer = new HexBlockSerializer($math ?: Bitcoin::getMath(), new HexBlockHeaderSerializer(), new TransactionSerializer());
     return $serializer->parse($string);
 }