Count and classify invoice tags in one paid call — 5 sats
Build a normalized inventory of BOLT11 tags from an invoice. Returns per-tag counts, known/unknown tag coverage, and payload-size totals for quick parser/debugging workflows.
5 sats via L402.
curl -X POST https://maximumsats.com/api/bolt11-tag-inventory \
-H "Content-Type: application/json" \
-d '{"invoice": "lnbc..."}'
{
"ok": true,
"currency": "bc",
"payment_hash": "...",
"total_tags": 4,
"known_tag_count": 3,
"unknown_tag_count": 1,
"tags_by_code": {
"p": { "count": 1, "total_bytes": 32 },
"d": { "count": 1, "total_bytes": 18 },
"x": { "count": 1, "total_bytes": 2 },
"r": { "count": 1, "total_bytes": 51 }
}
}