<?phpheader('Content-type: application/json;');
$url = "https://api.codesazan.ir/AutoTron/";
$parames = array( 'key' => ' ',// Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron 'type' => 'sendtrx',// Do Not Touch 'type' => ' ',// The Address Of The Send 'backup_key' => ' ',// The backup_key Of The Send 'to' => ' ',// The Address Of The Destination 'amount' => ' ',// Amount Sent);
$query_string = http_build_query($parames);
$ch = curl_init($url . '?' . $query_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if(curl_errno($ch)) { echo 'خطا در ارتباط cURL: ' . curl_error($ch);
exit();
}curl_close($ch);
if($response) { echo $response;
} else { echo 'خطا در دریافت پاسخ از وب سرویس';
}?>
نمونه درخواست python
importrequestsurl = "https://api.codesazan.ir/AutoTron/"params = { 'key' : ' ', # Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron 'type' : 'sendtrx', # Do Not Touch 'address' : ' ', # The Address Of The Send 'backup_key' : ' ', # The backup_key Of The Send 'to' : ' ', # The Address Of The Destination 'amount' : ' ', # Amount Sent};
response = requests.get(url, params=params)ifresponse.status_code == 200:
data = response.json()print(data)else:
print('خطا در دریافت پاسخ از وب سرویس')
نمونه درخواست javascript
constaxios = require('axios');
consturl = "https://api.codesazan.ir/AutoTron/";
constparams = { key: ' ', // Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron type: 'sendtrx', // Do Not Touch address: ' ', // The Address Of The Send backup_key: ' ', // The backup_key Of The Send to: ' ', // The Address Of The Destination amount: ' ', // Amount Sent};
axios.get(url, {params})
.then(response=>{if(response.status === 200){constdata = response.data;
console.log(data);
}else{console.log('خطا در دریافت پاسخ از وب سرویس');
}})
.catch(error=>{console.error('خطای شبکه:',error);
});
چک کردن بالانس ترون
با استفاده از این درخواست، میتوانید موجودی ترون خود را دریافت کنید.
<?phpheader('Content-type: application/json;');
$url = "https://api.codesazan.ir/AutoTron/";
$parames = array( 'key' => ' ',// Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron 'type' => 'sendtoken',// Do Not Touch 'type' => ' ',// The Address Of The Send 'backup_key' => ' ',// The backup_key Of The Send 'to' => ' ',// The Address Of The Destination 'amount' => ' ',// Amount Sent 'id' => ' ',// Id Token Trc10);
$query_string = http_build_query($parames);
$ch = curl_init($url . '?' . $query_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if(curl_errno($ch)) { echo 'خطا در ارتباط cURL: ' . curl_error($ch);
exit();
}curl_close($ch);
if($response) { echo $response;
} else { echo 'خطا در دریافت پاسخ از وب سرویس';
}?>
نمونه درخواست python
importrequestsurl = "https://api.codesazan.ir/AutoTron/"params = { 'key' : ' ', # Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron 'type' : 'sendtoken', # Do Not Touch 'address' : ' ', # The Address Of The Send 'backup_key' : ' ', # The backup_key Of The Send 'to' : ' ', # The Address Of The Destination 'amount' : ' ', # Amount Sent 'id' : ' ', # Id Token Trc10};
response = requests.get(url, params=params)ifresponse.status_code == 200:
data = response.json()print(data)else:
print('خطا در دریافت پاسخ از وب سرویس')
نمونه درخواست javascript
constaxios = require('axios');
consturl = "https://api.codesazan.ir/AutoTron/";
constparams = { key: ' ', // Get from: T.me/CodeSazan_APIManager_Bot?start=Api_AutoTron type: 'sendtoken', // Do Not Touch address: ' ', // The Address Of The Send backup_key: ' ', // The backup_key Of The Send to: ' ', // The Address Of The Destination amount: ' ', // Amount Sent id: ' ', // Id Token Trc10};
axios.get(url, {params})
.then(response=>{if(response.status === 200){constdata = response.data;
console.log(data);
}else{console.log('خطا در دریافت پاسخ از وب سرویس');
}})
.catch(error=>{console.error('خطای شبکه:',error);
});
چک کردن بالانس توکن های trc10
با استفاده از این درخواست، میتوانید موجودی توکن های trc10 خود را دریافت کنید.