Add flag to to allow for querying the fullnode with an API key (#15351)