Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.11 KB

File metadata and controls

54 lines (41 loc) · 1.11 KB

Bitsika BinanceSdk

A Laravel Package to connect with Bitsika's Binance wrapper

Installation

PHP 7.4+ and Composer are required.

Add this to your composer.json

"repositories": {
    "dev-package": {
        "type": "vcs",
        "url": "git@github.com:bitsika/binance-sdk.git"
    }
},

To install the package bash:

composer require bitsika/binance-sdk:dev-master

Configuration

You can publish the configuration file using this command:

php artisan vendor:publish --provider="Bitsika\BinanceSdk\BinanceServiceProvider"

A configuration-file named binance-sdk.php with will be placed in your config directory

Methods

Here are some of the methods available

  • Wallet Creation

    • createWallet()
    • createWalletAndEncrypt()
  • Retrieve Wallet

    • getAccountFromPrivateKey()
    • getAccountFromKeystore()
  • Wallet Balance

    • getBalance()
    • getTokenBalance()
  • Transfer

    • transferBNB()
    • transferToken()
    • transferBNBFromKeystore()
    • transferTokenFromKeystore()
  • Transaction

    • getTransactionReceipt()