Skip to content

georgeio/CoinbaseSDK-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CoinbaseSDK-PHP

CoinbaseCustomSDK - A custom class built to handle coinbase transactions.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Simply download a copy of the class file CoinbaseCustomSDK.php and include it in your php script. instantiate an object of the class CoinbaseCustomSDK e.g :

require_once "PATH_TO_COINBASE_CUSTOM_SDK_ClASS";
$cb_handle = new  CoinbaseCustomSDK('API_KEY', 'SECRET_KEY');

You can now call public methods of the CoinbaseCustomSDK class on the initialized object.

Example

Get Account ID

$cb_handle->getAccountId();

Get Coinbase Server Time

$cb_handle->getServerTime();

Get Accounts Associated To The API Key

$cb_handle->getAccounts();

Create New Address For Receiving Bitcoin/Ethereum Payment

$name = "New Address for Payment";
$cb_handle->createNewAddress($name);

Get transactions associated with an address

$address = "ENTER THE BITCOIN ADDRESS / ADDRESS ID";
$cb_handle->getAddressTransactions($address);

Prerequisites

php >= 5.6, CURL, Coinbase API Key, Coinbase Secret Key

Built With

PHP

Author

George Imoedemhe

Contributing

Fork it! Create your feature branch: git checkout -b my-new-feature Commit your changes: git commit -am 'Add some feature' Push to the branch: git push origin my-new-feature Submit a pull request :D

License

This project is licensed under the GNU Lesser General Public License - see the LICENSE.md file for details

About

CoinbaseCustomSDK - A custom class built to handle coinbase transactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages