for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* Package: PHP Bitaps API
*
* (c) Eldar Gazaliev <[email protected]>
* Link: <https://github.com/MyZik>
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace Bitaps\WalletAPI\Request;
class WalletStateRequest implements RequestInterface
{
/**
* Wallet ID
* @var string
public string $walletId;
* Nonce used for HMAC signature
* @var float|null
public ?float $nonce;
* HMAC signature
* @var string|null
public ?string $signature;
* @param string $walletId
* @param float|null $nonce
* @param string|null $signature
public function __construct(string $walletId, float $nonce = null, string $signature = null)
$this->walletId = $walletId;
$this->nonce = $nonce;
$this->signature = $signature;
}
* @return array
public function getHeaders(): array
return [
'Access-Nonce' => $this->nonce,
'Access-Signature' => $this->signature
];
* @return string
public function getPathParams(): string
return sprintf('/wallet/state/%s', $this->walletId);
public function getBody(): array
return [];