LNPay Docs
Search…
Transfers Between Wallets
This section describes how to transfer sats between wallets within LNPay
post
https://api.lnpay.co/
v1/wallet/:wallet_key/transfer
PostWalletTransfer
cURL
Node.js
Python
JavaScript
curl -u sak_XXXXXXX: \
-H "Content-Type: application/json" \
-X POST \
-d '{"dest_wallet_id":"wal_XXXX","num_satoshis":1,"memo":"Test transfer"}' \
https://api.lnpay.co/v1/wallet/wal_XXXXX/transfer
const lnpay = LNPay({
secretKey: 'sak_XXXXX',
walletAccessKey: 'wal_XXXXX',
});
const transfer = await lnpay.transfer({
dest_wallet_id: 'wal_XXXXX',
num_satoshis: 1,
memo: 'Transfer Memo',
lnPayParams: {
order_id: '100',
},
});
lnpay_py.initialize('pak_XXXX')
from lnpay_py.wallet import LNPayWallet
my_wallet = LNPayWallet('wal_XXX')
transfer_params = {
'dest_wallet_id': 'w_XXX',
'num_satoshis': 1,
'memo': 'Transfer Memo'
}
transfer_result = my_wallet.internal_transfer(transfer_params)
print(transfer_result)
LNPay.Initialize('pak_XXXXX');
let myWallet = new LNPayWallet('waka_XXXXX');
let transferParams = {"dest_wallet_id":"wal_xxxxx","num_satoshis":22,"memo":"Transfer Memo"};
myWallet.internalTransfer(transferParams,
function(result) {
console.log(result);
}
);
Copy link