PHP code example of address-so / address-php-sdk

1. Go to this page and download the library: Download address-so/address-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

address-so / address-php-sdk example snippets


$label = 'btc';
$api_key = 'your_api_key';
$secret_token = 'your_secret_token';

$address = new \AddressSo\AddressApiClient($label, $api_key, $secret_token);

$label = 'btc';
$api_key = 'your_api_key';
$secret_token = 'your_secret_token';

$address = new \AddressSo\AddressApiClient($label, $api_key, $secret_token);

$wallet_id = 1;
$amount = 0.1;
$recipient = 'bitcoin_address';
$payment_password = 'your_payment_password';

$address->sendFromWallet($wallet_id, $amount, $recipient, $payment_password);