<?php

// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');

// Check if the API is activated
$api->isActive();

// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);

// Output JSON format
$data = array(
	// coin info
	'currency' 				=> $config[currency],
	'coinname'				=> $config[gettingstarted][coinname],
	// coin algorithm info
	'cointarget' 			=> $config[cointarget],
	'coindiffchangetarget' 	=> $config[coindiffchangetarget],
	'algorithm' 			=> $config[algorithm],
	// stratum
	'stratumport'			=> $config[gettingstarted][stratumport],
	// payments
	'payout_system' 		=> $config[payout_system],
	'min_ap_threshold' 		=> $config[ap_threshold][min],
	'max_ap_threshold' 		=> $config[ap_threshold][max],
	'txfee' 				=> $config[txfee],
	'fees'					=> $config[fees],
);

echo $api->get_json($data);

// Supress master template
$supress_master = 1;
?>

<?php

// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');

// Check if the API is activated
$api->isActive();

// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);

// Output JSON format
$data = array(
	// coin info
	'currency' 				=> $config[currency],
	'coinname'				=> $config[gettingstarted][coinname],
	// coin algorithm info
	'cointarget' 			=> $config[cointarget],
	'coindiffchangetarget' 	=> $config[coindiffchangetarget],
	'algorithm' 			=> $config[algorithm],
	// stratum
	'stratumport'			=> $config[gettingstarted][stratumport],
	// payments
	'payout_system' 		=> $config[payout_system],
	'confirmations' => $config['confirmations'],
	'min_ap_threshold' 		=> $config[ap_threshold][min],
	'max_ap_threshold' 		=> $config[ap_threshold][max],
	// backwards compatibility for old API calls
	'txfee' => $config['txfee_manual'],
	'txfee_manual' => $config['txfee_manual'],
	'txfee_auto' => $config['txfee_auto'],
	'fees'					=> $config[fees]
);

echo $api->get_json($data);

// Supress master template
$supress_master = 1;
?>

Fix txfee API call with added support for old API calls [ADD] txfee_auto to API Calls [ADD] txfee_manual to API Calls [ADD] confirmations to API Calls
[BUG] Fix txfee API call with added support for old API calls
[ADD] txfee_auto to API Calls
[ADD] txfee_manual to API Calls
[ADD] confirmations to API Calls
