mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-17 22:14:24 +01:00
Multi-asset send/receive (#645)
* Multi-asset send/receive * Apply suggestions from code review Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com> * Log the prepare asset_id --------- Co-authored-by: Daniel Granhão <32176319+danielgranhao@users.noreply.github.com>
This commit is contained in:
5
packages/react-native/example/App.js
vendored
5
packages/react-native/example/App.js
vendored
@@ -18,6 +18,7 @@ import {
|
||||
removeEventListener,
|
||||
prepareReceivePayment,
|
||||
prepareSendPayment,
|
||||
ReceiveAmountVariant,
|
||||
receivePayment,
|
||||
sendPayment,
|
||||
PaymentMethod
|
||||
@@ -84,8 +85,8 @@ const App = () => {
|
||||
addLine("addEventListener", listenerId)
|
||||
|
||||
/* Receive lightning payment */
|
||||
|
||||
let prepareReceiveRes = await prepareReceivePayment({ payerAmountSat: 1000, paymentMethod: PaymentMethod.LIGHTNING })
|
||||
let amount = { type: ReceiveAmountVariant.BITCOIN, payerAmountSat: 1000 }
|
||||
let prepareReceiveRes = await prepareReceivePayment({ amount, paymentMethod: PaymentMethod.LIGHTNING })
|
||||
addLine("prepareReceivePayment", JSON.stringify(prepareReceiveRes))
|
||||
// Get the fees required for this payment
|
||||
addLine("Payment fees", `${prepareReceiveRes.feesSat}`)
|
||||
|
||||
Reference in New Issue
Block a user