added function to query rippled api in case a ledger is not in the local rippled db