LNPay Docs
Search…
Create Wallet
post
https://api.lnpay.co/
v1/wallet
PostCreateWallet
cURL
Node.js
Python
1
curl -u sak_XXXXXXX: \
2
-H "Content-Type: application/json" \
3
-X POST \
4
-d '{"user_label":"Tester API Wallet"}' \
5
https://api.lnpay.co/v1/wallet
Copied!
1
const lnpay = LNPay({
2
secretKey: 'sak_XXXXX'
3
});
4
5
const wallet = await lnpay.createWallet({
6
user_label: 'My Wallet',
7
});
Copied!
1
lnpay_py.initialize('sak_XXXXX')
2
3
wallet_params = {
4
'user_label': 'My wallet'
5
}
6
new_wallet = lnpay_py.create_wallet(wallet_params)
Copied!
The access keys generated will NOT be available via the API again! You must save and store them
Last modified 3mo ago
Copy link