bitcoinjs / bolt11

A library for encoding and decoding lightning network payment requests as defined in BOLT #11.
MIT License
92 stars 64 forks source link

where is note(description) field ? #56

Closed sawrubgupta closed 2 years ago

sawrubgupta commented 2 years ago

In bolt11, my invoice contains the description field, but here when I decode using this libarary, I do not have any description field, can you please add one, as description and note are important part of the lightning invoice

junderw commented 2 years ago

description is a tag. Tags are in the tags array. Search for it by tagName.

decodedObject.tags.filter(v => v.tagName === 'description')