- Fix critical fee calculation bug: Now gets exact melt quote before creating invoice - Improve spent token detection: Only marks as spent with clear indicators - Add spent field to decode endpoint response (always boolean) - Add informative root endpoint with API documentation - Update documentation examples to use cashuB format - Install bolt11 library for proper Lightning invoice verification - Enhanced error handling and logging throughout This fixes the issue where users lost sats due to fee estimation errors and ensures accurate token spendability detection.
54 lines
1.2 KiB
JSON
54 lines
1.2 KiB
JSON
{
|
|
"name": "cashu-redeem-api",
|
|
"version": "1.0.0",
|
|
"description": "Redeem ecash (Cashu tokens) to Lightning Address using cashu-ts library and LNURLp",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"dev": "nodemon server.js",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix"
|
|
},
|
|
"keywords": [
|
|
"cashu",
|
|
"lightning",
|
|
"bitcoin",
|
|
"ecash",
|
|
"api",
|
|
"lnurl",
|
|
"lnurlp",
|
|
"mint",
|
|
"satoshi"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@cashu/cashu-ts": "^1.1.0",
|
|
"axios": "^1.7.7",
|
|
"bolt11": "^1.4.1",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"swagger-jsdoc": "^6.2.8",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"uuid": "^10.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"eslint": "^9.9.1",
|
|
"nodemon": "^3.1.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=8.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/yourusername/cashu-redeem-api.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/yourusername/cashu-redeem-api/issues"
|
|
},
|
|
"homepage": "https://github.com/yourusername/cashu-redeem-api#readme"
|
|
}
|