LNPay Docs
Search
K

Create Wallet

post
https://<yourdomain>/
v1/wallet
PostCreateWallet
cURL
Node.js
Python
curl -u sak_XXXXXXX: \
-H "Content-Type: application/json" \
-X POST \
-d '{"user_label":"Tester API Wallet"}' \
https://<yourdomain>/v1/wallet
const lnpay = LNPay({
secretKey: 'sak_XXXXX'
});
const wallet = await lnpay.createWallet({
user_label: 'My Wallet',
});
lnpay_py.initialize('sak_XXXXX')
wallet_params = {
'user_label': 'My wallet'
}
new_wallet = lnpay_py.create_wallet(wallet_params)
The access keys generated will NOT be available via the API again! You must save and store them