Padrio / php-electrum-api

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

Update Amount.php #22

Closed oasin closed 3 years ago

oasin commented 3 years ago

Electrum 4.0.4 Response

{ "URI": "", "address": "", "amount_BTC": "", "amount_sat": "", "confirmations": 0, "expiration":, "is_lightning": false, "message": "", "status": 3, "status_str": "", "timestamp": }

Padrio commented 3 years ago

Thank you for your contribution. Since this is a breaking change to everyone who is using an electrum version older than 4.0.4. Can you maybe add an version aware mapping? If someone has an previous version than the right response mapping should be used.

I'm currently working on a rewrite with unit tests and the api compatibility will be locked to an specified electrum version so everything will be more stable.