Hi guys
i'm have problem on setting fee transfer BTC, the code develop in PHP RPC, i've using commands agrument fee "settxfee" amount 0.0002 BTC then use "sendfrom" to transfer 0.00200000 BTC and then after execute i got fee result as 0.00009273 BTC , it's possible settxfee is not working correctly, please suggest me how to resolve this issue.
PHP code test
require_once('easybitcoin.php');
$bitcoin = new Bitcoin('bitcoinrpc','xxxxxxxxxxxxxxxxxx','localhost','8332');
$bitcoin->settxfee(0.00020000);
$result[0] = $bitcoin->getinfo();
$result[1] = $bitcoin->sendfrom('kernel','bbbbbbbbbbbbbbbbbbbbbb',0.00200000);
$bitcoin->dump($result);
Bitcoin getinfo
Array
(
[0] => Array
(
[result] => Array
(
[version] => 130100
[protocolversion] => 70014
[walletversion] => 60000
[balance] => 0.00417854
[blocks] => 446297
[timeoffset] => -6
[connections] => 8
[proxy] =>
[difficulty] => 317688400354.03
[testnet] =>
[keypoololdest] => 1467389630
[keypoolsize] => 101
[paytxfee] => 0.0002
[relayfee] => 0.0002
[errors] =>
)
[error] =>
[id] => 2
[status] => 200
[method] => getinfo
)
)
Transaction https://blockchain.info/tx/fb89d133495d88592e6c2a34501574f297c4c9ae71f65feb8fda1e92403fdb0d
