Updated wallet api for extensibility.