Download the PHP package khomerikik/laravel-bitgo-wallet without Composer
On this page you can find all versions of the php package khomerikik/laravel-bitgo-wallet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download khomerikik/laravel-bitgo-wallet
More information about khomerikik/laravel-bitgo-wallet
Files in khomerikik/laravel-bitgo-wallet
Package laravel-bitgo-wallet
Short Description Bitgo blockchain service integration for laravel
License MIT
Homepage https://github.com/KhomerikiK/laravel-bitgo-wallet
Informations about the package laravel-bitgo-wallet
Laravel BitGo Wallet Package
This package is a Laravel wrapper for BitGo's API, allowing developers to interact with cryptocurrency wallets, manage transactions, and handle other wallet-related operations efficiently within Laravel applications.
๐ Overview
The Khomeriki\BitgoWallet
package provides a set of features to:
- Generate, manage, and list wallets
- Fetch and consolidate wallet balances
- Create, send, and monitor transfers
- Add webhooks to track wallet events in real time
Core Features
- Wallet Management: Generate and initialize wallets, manage wallet properties, and retrieve wallet information.
- Transfers: Support for sending multi-recipient transactions and fetching wallet transfers.
- Webhooks: Automated notifications for wallet activities.
- Balance Management: Get spendable amounts, consolidate balances, and monitor wallet details.
Setting Up BitGo Express with Docker
To use the Khomeriki\BitgoWallet
package, BitGo Express needs to be running as a local service. BitGo Express acts as a bridge between your application and the BitGo API, securely managing wallet interactions and signing transactions.
Pulling the BitGo Express Docker Image First, pull the latest BitGo Express image from Docker Hub:
docker pull bitgosdk/express
๐ Installation
-
Install via Composer:
-
Publish the configuration file and set up your BitGo API credentials:
- Update
.env
file with BitGo credentials:
Usage
The following sections provide usage examples for core features of the package.
1. Wallet Initialization & Generation
Initialize a wallet instance for a specific coin:
Generate a new wallet with a label and passphrase:
2. Listing Wallets
Fetch all available wallets with optional parameters:
3. Address Management
Generate a new address within the wallet:
4. Transfers
Creating a Transfer
Create a transfer to multiple recipients:
Fetching Transfers
Retrieve all transfers associated with a wallet:
Get a specific transfer by its ID:
5. Webhook Management
Add a webhook for a wallet with a callback URL to track transaction confirmations:
6. Balance Management
Get Maximum Spendable Balance
Calculate the maximum spendable amount:
Consolidate Wallet Balance
Consolidate wallet UTXOs to optimize the wallet balance:
API Reference
Each of the package methods is designed to directly map to BitGoโs API. Refer to the BitGo API documentation. for more details on the data structure and optional parameters that can be included.
Contributing
- Fork the repository and clone it.
- Set up your local development environment with appropriate BitGo credentials.
- Make your changes and write tests to verify functionality.
- Submit a pull request with a clear description of changes.
๐งช Testing
This package includes test cases to verify core functionality. Run the test suite using:
๐ License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-bitgo-wallet with dependencies
guzzlehttp/guzzle Version >=7.4
illuminate/contracts Version >=9.0
illuminate/support Version >=9.11
spatie/laravel-package-tools Version >=1.9.2
ext-readline Version *