You might want to check lnbits to see if there's something in there that already accomplishes part of what you're trying to do.
started with options like that, not suitable, thanks for the suggestion
reply