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
1
curl -u sak_XXXXXXX: \
2
-H "Content-Type: application/json" \
3
-X POST \
4
-d '{"dest_wallet_id":"wal_XXXX","num_satoshis":1,"memo":"Test transfer"}' \
5
https://api.lnpay.co/v1/wallet/wal_XXXXX/transfer
Copied!
1
const lnpay = LNPay({
2
secretKey: 'sak_XXXXX',
3
walletAccessKey: 'wal_XXXXX',
4
});
5
6
const transfer = await lnpay.transfer({
7
dest_wallet_id: 'wal_XXXXX',
8
num_satoshis: 1,
9
memo: 'Transfer Memo',
10
lnPayParams: {
11
order_id: '100',
12
},
13
});
Copied!
1
lnpay_py.initialize('pak_XXXX')
2
from lnpay_py.wallet import LNPayWallet
3
4
my_wallet = LNPayWallet('wal_XXX')
5
transfer_params = {
6
'dest_wallet_id': 'w_XXX',
7
'num_satoshis': 1,
8
'memo': 'Transfer Memo'
9
}
10
transfer_result = my_wallet.internal_transfer(transfer_params)
11
print(transfer_result)
Copied!
1
LNPay.Initialize('pak_XXXXX');
2
3
let myWallet = new LNPayWallet('waka_XXXXX');
4
let transferParams = {"dest_wallet_id":"wal_xxxxx","num_satoshis":22,"memo":"Transfer Memo"};
5
myWallet.internalTransfer(transferParams,
6
function(result) {
7
console.log(result);
8
}
9
);
Copied!
Last modified 3mo ago
Copy link