Libbitcoin for Core people

I don’t see how checking if an input exists could be done without chain context.

It is fetching the previous outputs of the inputs.