A Laravel Package to connect with Bitsika's Binance wrapper
PHP 7.4+ and Composer are required.
Add this to your composer.json
"repositories": {
"dev-package": {
"type": "vcs",
"url": "[email protected]:bitsika/binance-sdk.git"
}
},
To install the package bash:
composer require bitsika/binance-sdk:dev-master
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
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()