Keysend
Initiate a keysend payment from your wallet to a destination pubkey
PostWalletKeysend Synchronous
POST
https://<yourdomain>/v1/wallet/:wallet_key/keysend
Path Parameters
Name | Type | Description |
---|---|---|
wallet_key | string | wal_ for server side waka_ for client side |
Request Body
Name | Type | Description |
---|---|---|
fee_limit_msat | integer | max fee e.g. 1000 (1 sat) LNPay default is 5% of payment amount |
passThru | object | data to pass along with this invoice for webhooks (e.g. ticketId, etc) |
dest_pubkey | string | Pubkey of destination node |
num_satoshis | integer | satoshis |
custom_records | object | key:value pairs for the onion. ex. {"7629169":{"app_name":"Podcast Player"}} |
PostWalletKeysend Asynchronous
POST
https://<yourdomain>/v1/wallet/:wallet_key/keysend
Path Parameters
Name | Type | Description |
---|---|---|
wallet_key | string | wal_ for server side waka_ for client side |
Headers
Name | Type | Description |
---|---|---|
X-LNPAY-ASYNC | boolean | If set to 1, the keysend request will be asynchronously processed. An immediate response will returned |
Request Body
Name | Type | Description |
---|---|---|
fee_limit_msat | integer | max fee e.g. 1000 (1 sat) LNPay default is 5% of payment amount |
passThru | object | data to pass along with this invoice for webhooks (e.g. ticketId, etc) |
dest_pubkey | string | Pubkey of destination node |
num_satoshis | integer | satoshis |
custom_records | object | key:value pairs for the onion. ex. {"7629169":{"app_name":"Podcast Player"}} |
Last updated