PHPackages                             021/crypto-wallets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. 021/crypto-wallets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

021/crypto-wallets
==================

Package for working with crypto wallets

v9.1.0(3y ago)8773MITPHPPHP ^8.1

Since Jan 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/021-projects/crypto-wallets)[ Packagist](https://packagist.org/packages/021/crypto-wallets)[ RSS](/packages/021-crypto-wallets/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (50)Used By (0)

Installation
============

[](#installation)

Run `composer require 021/crypto-wallets`

Add repositories to composer.json

```
"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:021-projects/php-bitcoinrpc.git"
    }
]

```

Requirements
============

[](#requirements)

- PHP 8.1+

Wallet interface
================

[](#wallet-interface)

### \\O21\\CryptoWallets\\Interfaces\\WalletInterface

[](#o21cryptowalletsinterfaceswalletinterface)

`__construct(\O21\CryptoWallets\Interfaces\ConnectConfigInterface $config)`

`isAvailable(): bool` - check is RPC client available

`getBalance(): string` - get wallet balance

`getNewAddress($config = null): string` - get new address

`isValidAddress(string $address): bool` - check is an address is valid

`isOwningAddress(string $address): bool` - checks if an address belongs to a wallet

`getExploreAddressLink(string $address): string` - returns a link to blockchain explorer for the address

```
getRate(
      string $currency = 'USD',
      ?\O21\CryptoWallets\Interfaces\RateProviderInterface $provider = null
): float
// Returns the cryptocurrency exchange rate for the selected currency

```

```
getBestRate(
    string $currency = 'USD',
    int $limit = 60,
    \O21\CryptoWallets\Units\RateInterval $interval = RateInterval::Minutes,
    ?\O21\CryptoWallets\Interfaces\RateProviderInterface $provider = null
): float
// Returns the best cryptocurrency rate for the selected currency for a given period of time

```

```
estimateSendingFee(
    string $to,
    string $value,
    \O21\CryptoWallets\Interfaces\FeeInterface|string $fee
): string
// Estimates the fee amount required to send a transaction

```

```
send(
    string $to,
    string $value,
    \O21\CryptoWallets\Interfaces\FeeInterface|string $fee
): string
// Send funds from a wallet

```

`getTransaction(string $hash): ?\O21\CryptoWallets\Interfaces\TransactionInterface` - returns transaction from a wallet

`getTransactions(int $count = 50, int $skip = 0): \Illuminate\Support\Collection;` - returns transactions from a wallet

`getTransactionsSinceBlock(string $block = ''): \Illuminate\Support\Collection;` - returns transactions from a wallet

`getTransactionsCount(): int` - returns transactions count on a wallet

`getExploreTransactionLink(string $hash): string` - returns a link to blockchain explorer for the address

```
/**
 * @return \Illuminate\Support\Collection
 */
public function getNetworkFees(): Collection;
// Returns the recommended fees for the transaction

```

`getDefaultBestRateLimit(): int` - returns the default value for the period in the `getBestRate` function

`getTypicalTransactionSize(): int` - returns typical transaction size for a wallet

`getSymbol(): string` - returns symbol of a wallet

Also, some wallets have their own unique methods. Explore the interfaces `\O21\CryptoWallets\Interfaces\BitcoindWalletInterface` and `\O21\CryptoWallets\Interfaces\EthereumWalletInterface`

Currently available wallets
---------------------------

[](#currently-available-wallets)

`\O21\CryptoWallets\BitcoinWallet` for bitcoin

`\O21\CryptoWallets\LitecoinWallet` for litecoin

`\O21\CryptoWallets\EthereumWallet` for ethereum

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~30 days

Total

49

Last Release

1144d ago

Major Versions

v5.3.0 → v6.0.02022-05-26

v6.1.1 → v7.0.02022-08-15

v7.0.0 → v8.0.02022-08-16

v8.2.3 → v9.0.02022-09-30

v5.5.2 → v9.1.02022-12-01

PHP version history (4 changes)v2.0.0PHP ^8.0

v4.0.0PHP ^8.1

v1.2.0PHP ^7.4

v1.2.2PHP ^7.4|^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/850e7a3d7b73d4aca00b33bfd13c33b97a8bec35d3b889d50cc0eec3b26eb337?d=identicon)[021-projects](/maintainers/021-projects)

---

Top Contributors

[![021-projects](https://avatars.githubusercontent.com/u/20326979?v=4)](https://github.com/021-projects "021-projects (58 commits)")

---

Tags

addressbitcoinblockchainbtccomfortcryptocryptocurrencycryptowalletethethereumethereum-walletltcphpphp81providerwalletwalletsweb3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/021-crypto-wallets/health.svg)

```
[![Health](https://phpackages.com/badges/021-crypto-wallets/health.svg)](https://phpackages.com/packages/021-crypto-wallets)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
