implement wallet endpoint