btcpayserver / btcpayserver-php-client

PHP implementation for the BTCPayServer cryptographically secure RESTful API
MIT License
29 stars 33 forks source link

Don't work 005_CreatePayout #21

Open lvarash opened 4 years ago

lvarash commented 4 years ago

Hello! Can someone tell me if a BTCPay server can be used for payouts?

NicolasDorier commented 4 years ago

No it can't, can you tell me in a nutshell what is the payout feature? Maybe we can replicate?

lvarash commented 4 years ago

Something like https://bitpay.com/api/?php#rest-api-resources-payouts

It would be great if we could upload private keys to send bitcoins via API

NicolasDorier commented 4 years ago

This would requires btcpayserver to know about the private keys though :/

lvarash commented 4 years ago

Why this is bad? My knowledge of bitcoin is small. If there are other options for sending bitcoins via API, then I would really like to know.

If I want to receive and send bitcoins through a BTPPayServer, then what is the best way to organize this?

And can I access the bitcoind process in docker?

woutersamaey commented 4 years ago

I have created issues before where you would use the API to create transfers, but you’d need to sign them afterwards with a hardware wallet. So this would be a queue that needs approval. Just an idea though, no development has been done yet.

lvarash commented 4 years ago

I'm interesting to use a not hardware wallets

NicolasDorier commented 4 years ago

@woutersamaey yeah this is interesting idea, I could replicate both, Bitpay and blockchain info with this model. I will think about it, I think people would love it.

NicolasDorier commented 4 years ago

@Ivarash it is bad for btcpayserver to have private keys, because I want to sleep well I night knowing for sure that a bug or a security flaw can't drain the money of a user.

lvarash commented 4 years ago

@NicolasDorier ok, I'm understand you, no other ways to send bitcoins via API without hd wallet?

NicolasDorier commented 4 years ago

At the present no.