Open FrancisPouliot opened 4 years ago
Expected user experience outcome is that a client app calls the "pegin" api endpoint and only has to specify an amount. If there are enough funds in the Bitcoin Core wallet which is used to make the pegin, there should be nothing else the client needs to do.
The client can specify a callback URL and receive notifications about the pegin, which would include the Bitcoin txid and the liquidtxid. Client should be notified when the pegin is completed.
An automated function: pegin
Calling this function will do this:
Ideally this would also save the peginaddress alongside the mainchain txid and the sidechain txid
getpeginaddresses
returns all pegin addresses created with