refactor get and decrypt wallet payload