Padrio / php-electrum-api

💰PHP wrapper for Electrum JSONRPC-API
GNU General Public License v3.0
30 stars 24 forks source link

How to change transaction commission? #20

Open kbgod opened 4 years ago

ximidas commented 3 years ago

When you are using PayTo methods you can provide fee and feerate params which are handles by daemon.

Usage example:

$payTo = new \Electrum\Request\Method\Payment\PayTo($client);
$payTo->setDestination($destination);
$payTo->setAmount($amount);
$hex = $payTo->execute(['fee' => 'fee value', 'feerate' => 'feerate value']);