added part of deterministic wallet to API.