API Documentation
API LIST :
Example GET with PHP Curl
function http_request($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
//parameter
$address = "0x0000000000000000";
$apikey = "ASDA7ASD78A867ASD68AS7D6";
$network = "BSC";
$URL = "https://v1.apiget.io/balanceCoin
?address=$address
&apikey=$apikey
&network=$network"; //API URL
$result = http_request($URL);
$json = json_decode($result, true);
//echo $result; //json format
//echo $json["error"];// if return error
//echo $json["result"];// if return success
//echo $json["value"]; //return value number
Example POST with PHP Curl
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://v1.apiget.io/balanceCoin',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"address":"0x0000000000000000",
"apikey":"asdasdlnm98978yha2",
"network":"BSC"
}',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;