New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

address-so/address-php-sdk

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

address-so/address-php-sdk

ADDRESS PHP SDK

Source
Packagist
Version
v1.1.1
Version published
Total downloads
65
Maintainers
0
Created
Source

address-php-sdk

PHP library for ADDRESS API integration. Full ADDRESS API features documentation can be found here.

1. Prerequisites

  • PHP 7.2 or later

2. Installation

The ADDRESS PHP SDK can be installed using Composer by running the following command:

composer require address-so/address-php-sdk

3. Initialization

Create AddressApiClient object using the following code:

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

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

4. Request sample

Example of sending funds from wallet

$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);

Keywords

address

FAQs

Package last updated on 14 Aug 2020

Related posts