Fix code to expect dict instead of array,

fix async issue in findPubKeyRemoteHelper