23 lines
476 B
PHP
23 lines
476 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Mod\Chain\Contracts;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Chain wallet RPC interface.
|
||
|
|
*
|
||
|
|
* $wallet = app(ChainWallet::class);
|
||
|
|
* $balance = $wallet->getBalance();
|
||
|
|
*/
|
||
|
|
interface ChainWallet
|
||
|
|
{
|
||
|
|
public function getAddress(): string;
|
||
|
|
|
||
|
|
public function getBalance(): array;
|
||
|
|
|
||
|
|
public function registerAlias(string $name, string $address, string $comment): array;
|
||
|
|
|
||
|
|
public function updateAlias(string $name, string $address, string $comment): array;
|
||
|
|
}
|