LNPay Docs
Search…
Keysend
Initiate a keysend payment from your wallet to a destination pubkey
post
https://api.lnpay.co
/v1/wallet/:wallet_key/keysend
PostWalletKeysend Synchronous
post
https://api.lnpay.co
/v1/wallet/:wallet_key/keysend
PostWalletKeysend Asynchronous
cURL
Node.js
curl -u sak_XXXXXXX: \
-H "Content-Type: application/json" \
-X POST \
-d '{"dest_pubkey":"033868c219bdb51a33560d854d500fe7d3898a1ad9e05dd89d0007e11313588500","num_satoshis":2}' \
https://api.lnpay.co/v1/wallet/waka_XXXXXXX/keysend
# Note we are using the "admin" access_key as denoted by "wa_"
const lnpay = LNPay({
secretKey: 'sak_XXXXX',
walletAccessKey: 'wal_XXXXX',
});
const keysend = await lnpay.keysend({
passTru: {
order_id: '100',
},
dest_pubkey: '033868c219bdb51a3...',
num_satoshis: 1,
});
Copy link
On this page
post
PostWalletKeysend Synchronous
post
PostWalletKeysend Asynchronous