
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@mailchain/http-helpers-angular
Advanced tools
Mailchain HTTP Helpers - useful for calling the Mailchain API from Angular
This package is an Angular service that helps set httpOptions for headers and queryParams. It is helpful for calls to the Mailchain API.
npm install @mailchain/http-helpers-angular --save
In an Angular service file, eg. my-service.service, add the following:
// import the service
import { HttpHelpersAngularService } from '@mailchain/http-helpers-angular';
// add to constructor
constructor(
private httpHelpersService: HttpHelpersAngularService,
) { }
// add to function, e.g. calling Mailchain api /messages local endpoint:
myFunction() {
const protocol = "ethereum" // change accordingly or use function params
const network = "mainnet" // change accordingly or use function params
const url = "http://127.0.0.1/messages" // change accordingly or use function params
const body = outboundMail
const httpOptions = this.httpHelpersService.getHttpOptions([
['protocol', protocol],
['network', network]
])
return this.http.post(url, body, httpOptions);
}
This library was generated with Angular CLI version 8.2.14.
Run ng generate component component-name --project http-helpers-angular to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project http-helpers-angular.
Note: Don't forget to add
--project http-helpers-angularor else it will be added to the default project in yourangular.jsonfile.
Run ng build http-helpers-angular to build the project. The build artifacts will be stored in the dist/ directory.
After building your library with ng build http-helpers-angular, go to the dist folder cd dist/http-helpers-angular and run npm publish.
Run ng test http-helpers-angular to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
FAQs
Mailchain HTTP Helpers - useful for calling the Mailchain API from Angular
The npm package @mailchain/http-helpers-angular receives a total of 0 weekly downloads. As such, @mailchain/http-helpers-angular popularity was classified as not popular.
We found that @mailchain/http-helpers-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.