Skip to main content
@mdpsdk/on-ramp is the official SDK for integrating the ON RAMP API into Node.js and TypeScript applications. It provides a typed client for authentication, quotes, payins, payouts, queries, fees, webhooks, and wallets.

View @mdpsdk/on-ramp on npm

Review the published version, version history, and package README.

Requirements

  • Node.js 18 or later.
  • Partner credentials for login.
  • A valid API key for client initialization.
Use the SDK from your backend. Do not expose the API key, credentials, or JWT in code that runs in the browser.

Installation

Initialization

Authentication

Log in with the partner credentials. The client stores the returned JWT and automatically adds it to subsequent requests.
If you already have an active JWT, set it directly:

Available Modules

Quotes

The enums exported by the SDK reduce errors when sending currency pairs and transaction types.

QR Payin

For conversion funding, include the asset and deposit address data:

Bank Payout

You can then retrieve the status using the transaction identifier or external reference:

Wallets

Error Handling

HTTP errors preserve the Axios response, allowing you to inspect the status code and API response payload.

TypeScript

The package includes TypeScript declarations and exports the request, response, error, pagination, enum, and entity types used by the client.
Keep the package current with npm install @mdpsdk/on-ramp@latest to receive the latest types and operations.