public function sendAmount($fromAccount, $toAddress, $amount, $flag = 1, $message) { $bitcoin = new Bitcoin('http://' . BITCOIN_WALLET_SERVER . ':' . BITCOIN_WALLET_PORT, BITCOIN_WALLET_USERNAME, BITCOIN_WALLET_PASSWORD); $sendAmount = $bitcoin->sendfrom($fromAccount, $toAddress, $amount, $flag, $message); return compact('sendAmount'); }