BlockIo / block_io-php

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

Class 'BitWasp\Bitcoin\Network\NetworkFactory' not found #49

Closed McOldHer closed 2 years ago

McOldHer commented 2 years ago

I am using Laravel getting the following error log on use of the used create_and_sign_transaction request Laravel.log

BitWasp\Bitcoin\Network\NetworkFactory' not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'BitWasp\Bitcoin\Network\NetworkFactory' not found . . .

0 C:\xampp2\htdocs\blockio\core\app\Http\Lib\BlockIo.php(197): App\Lib\BlockIo->getNetwork('DOGE')

1 C:\xampp2\htdocs\blockio\core\app\Http\Controllers\PaymentController.php(91): App\Lib\BlockIo->create_and_sign_transaction(Object(stdClass))

2 [internal function]: App\Http\Controllers\PaymentController->withdrawPost(Object(Illuminate\Http\Request))

3 C:\xampp2\htdocs\blockio\core\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)

Also my Controller $apiKey = $method->val1; $version = 2; $pin = $method->val2; $block_io = new BlockIo($apiKey, $pin, $version); $convert = $block_io->prepare_transaction(array('amounts' => $request->amount, 'from_addresses' =>$method->wallet, 'to_addresses' => $account->wallet)); $create_and_sign_transaction_response = $block_io->create_and_sign_transaction($convert); $submit_transaction_response = $block_io->submit_transaction(array('transaction_data' => $create_and_sign_transaction_response));

Is there an alternative solution to this problem?