
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
@moonpay/moonpay-node
Advanced tools
The MoonPay NodeJS SDK allows you to easily use MoonPay server-side functions.
A node package for MoonPay server-side functions
Set up the MoonPay
class with your secret key.
Note: ⚠️ NEVER use your secret key in client side code. ⚠️
You will probably want to load the test key from an environment variable.
const moonPay = new MoonPay('sk_test_...');
Use the moonPay
instance to access our functions.
MoonPay URL utilities are namespaced under the .url
property.
If you include the walletAddress
or walletAddresses
query param, you'll need to sign the URL.
const signature = moonPay.url.generateSignature(
'https://buy.moonpay.com/?apiKey=pk_test_123&walletAddress=...',
);
Or, return the signed URL, using the returnFullURL
option.
const signedURL = moonPay.url.generateSignature(
'https://buy.moonpay.com/?apiKey=pk_test_123&walletAddress=...',
{ returnFullURL: true },
);
Or, you can verify that a URL is correctly signed.
const isSignatureValid = moonPay.url.isSignatureValid(
'[...]/?apiKey=pk_test_123&signature=someSignature',
);
You can also have us generate the full, signed URL, based on some input parameters.
const params = {
apiKey: 'pk_test_123',
baseCurrencyCode: 'GBP',
};
const url = moonPay.url.generate({ flow: 'buy', params });
FAQs
The MoonPay NodeJS SDK allows you to easily use MoonPay server-side functions.
We found that @moonpay/moonpay-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.