BlockIo / block_io-php

PHP library for Block.io
MIT License
56 stars 139 forks source link

Fail request When use $block_io->sweep_from_address #36

Closed hamedtorky closed 4 years ago

hamedtorky commented 5 years ago

https://github.com/BlockIo/block_io-php/blob/cf344200c57d9f359567f91775fe615834745262/examples/sweeper.php#L26 Hi,

I used this command sweep_from_address, I have a Private key but when i connect to block_io server it fails my request ,

` from_address = $new_address->data->address; try {

        $sweepToAddress = $block_io->sweep_from_address(array('from_address' => $from_address, 'to_address' => 'xxxxxx', 'private_key' => 'xxxxxx'));

        echo $sweepToAddress->status;  //<<<fail

    } catch (Exception $e) {
        echo $e->getMessage() . "\n";
    }

`