@@ -9,6 +9,11 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | interface BlocktrailSDKInterface { |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param string $apiSecret |
|
| 14 | + * |
|
| 15 | + * @return void |
|
| 16 | + */ |
|
| 12 | 17 | public function __construct($apiKey, $apiSecret, $network = 'BTC', $testnet = false, $apiVersion = 'v1', $apiEndpoint = null); |
| 13 | 18 | |
| 14 | 19 | /** |
@@ -17,6 +22,7 @@ discard block |
||
| 17 | 22 | * @param bool $debug |
| 18 | 23 | * |
| 19 | 24 | * @codeCoverageIgnore |
| 25 | + * @return void |
|
| 20 | 26 | */ |
| 21 | 27 | public function setCurlDebugging($debug = true); |
| 22 | 28 | |
@@ -26,6 +32,7 @@ discard block |
||
| 26 | 32 | * @param bool $verboseErrors |
| 27 | 33 | * |
| 28 | 34 | * @codeCoverageIgnore |
| 35 | + * @return void |
|
| 29 | 36 | */ |
| 30 | 37 | public function setVerboseErrors($verboseErrors = true); |
| 31 | 38 | |
@@ -35,6 +42,7 @@ discard block |
||
| 35 | 42 | * @param bool $value |
| 36 | 43 | * |
| 37 | 44 | * @codeCoverageIgnore |
| 45 | + * @return void |
|
| 38 | 46 | */ |
| 39 | 47 | public function setCurlDefaultOption($key, $value); |
| 40 | 48 | |
@@ -330,7 +338,7 @@ discard block |
||
| 330 | 338 | * |
| 331 | 339 | * @param string $identifier the wallet identifier to be upgraded |
| 332 | 340 | * @param int $keyIndex the new account to use |
| 333 | - * @param array $primaryPublicKey BIP32 extended public key - [key, path] |
|
| 341 | + * @param string[] $primaryPublicKey BIP32 extended public key - [key, path] |
|
| 334 | 342 | * @return mixed |
| 335 | 343 | */ |
| 336 | 344 | public function upgradeKeyIndex($identifier, $keyIndex, $primaryPublicKey); |
@@ -434,7 +442,7 @@ discard block |
||
| 434 | 442 | * |
| 435 | 443 | * @param string $identifier the identifier of the wallet |
| 436 | 444 | * @param string|array $rawTransaction raw hex of the transaction (should be partially signed) |
| 437 | - * @param array $paths list of the paths that were used for the UTXO |
|
| 445 | + * @param string[] $paths list of the paths that were used for the UTXO |
|
| 438 | 446 | * @param bool $checkFee let the server verify the fee after signing |
| 439 | 447 | * @param null $twoFactorToken |
| 440 | 448 | * @return string the complete raw transaction |
@@ -506,22 +514,22 @@ discard block |
||
| 506 | 514 | /** |
| 507 | 515 | * lock a specific unspent output |
| 508 | 516 | * |
| 509 | - * @param $identifier |
|
| 517 | + * @param string $identifier |
|
| 510 | 518 | * @param $txHash |
| 511 | 519 | * @param $txIdx |
| 512 | 520 | * @param int $ttl |
| 513 | 521 | * @return |
| 514 | - */ |
|
| 522 | + boolean |
|
| 515 | 523 | public function lockWalletUTXO($identifier, $txHash, $txIdx, $ttl = 3); |
| 516 | 524 | |
| 517 | 525 | /** |
| 518 | 526 | * unlock a specific unspent output |
| 519 | 527 | * |
| 520 | - * @param $identifier |
|
| 528 | + * @param string $identifier |
|
| 521 | 529 | * @param $txHash |
| 522 | 530 | * @param $txIdx |
| 523 | 531 | * @return |
| 524 | - */ |
|
| 532 | + boolean |
|
| 525 | 533 | public function unlockWalletUTXO($identifier, $txHash, $txIdx); |
| 526 | 534 | |
| 527 | 535 | /** |