Add API for getting address from secret.