Skip to content

Instantly share code, notes, and snippets.

View crcrcr999's full-sized avatar
🏠
Working from home

JustTony crcrcr999

🏠
Working from home
View GitHub Profile
@crcrcr999
crcrcr999 / coinId.php
Last active July 1, 2021 11:08
XCH(chia) getCoinId by PHP
<?php
function hexToStr($hex){
$string='';
for ($i=0; $i < strlen($hex)-1; $i+=2){
$string .= chr(hexdec($hex[$i].$hex[$i+1]));
}
return $string;
}
function getCoinId($parent_coin_info,$puzzle_hash,$amount){