Create Wallet

post
PostCreateWallet

https://lnpay.co/v1/wallet
Create a new wallet and corresponding access keys
Request
Response
Request
Body Parameters
user_label
required
string
An internal identifier for this wallet
Response
200: OK
Wallet Created
{
"id": "wal_czDztN5eJ4r5sJ",
"created_at": 1582461859,
"updated_at": 1582461859,
"user_label": "My Postman Collection Wallet",
"balance": 0,
"statusType": {
"type": "wallet",
"name": "active",
"display_name": "Active"
},
"access_keys": {
"Wallet Admin": [
"waka_kqvaiFFl4Tjq4rgAXlwsu6"
],
"Wallet Invoice": [
"waki_Q2XHBIfEAN33mLlwdYvusN6Q"
],
"Wallet Read": [
"wakr_wIdkxqZqkRJd6MhWlsoH1yi"
]
}
}
curl
JavaScript
Python
curl
$ curl -u pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp: \
-H "Content-Type: application/json" \
-X POST \
-d '{"user_label":"Tester API Wallet"}' \
https://lnpay.co/v1/wallet
JavaScript
LNPay.Initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp');
let walletParams = {"user_label":"My wallet"};
LNPay.createWallet(walletParams,
function(result) {
console.log(result);
}
);
Python
lnpay_py.initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp')
wallet_params = {
'user_label': 'My wallet'
}
new_wallet = lnpay_py.create_wallet(wallet_params)
print(new_wallet)

The access keys generated will NOT be available via the API again! You must save and store them