Socket
Socket
Sign inDemoInstall

maplerad-node

Package Overview
Dependencies
8
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    maplerad-node

Official Nodejs library for the Maplerad API


Version published
Maintainers
1
Created

Readme

Source

The Maplerad Node Client

The library follows an object-oriented approach and methods are grouped under categories.

There are currently twelve (12) base categories namely:

  • Customer
  • Collections
  • Transfer
  • Bills
  • Wallets
  • Issuing
  • Identity
  • Transactions
  • Counterparty
  • Forex
  • Institutions
  • Misc
Learn more from the docs

Installation

 $  npm install maplerad-node

 or

 $  yarn add maplerad-node

Authorization

A secret key is needed for authorization. It can be gotten from the Maplerad dashboard

Environments

Maplerad provides two environments to ensure a smooth and easy experience.

  • sandbox: for development
  • live: for production

Sandbox

Sandbox is your playground. You can credit your test wallets and use that to test your integrations, no real money will be debited or credited. Ensure to switch to Live when you are ready to launch.

Live

All method calls under Live will be charged and real money will be debited or credited. You are advised to use this when you have fully tested your integrations and are ready to launch your product.

Usage

// import the package
const Maplerad = require("maplerad-node"); // commonjs
// or
import Maplerad from "maplerad-node"; // esm

const SECRET_KEY = process.env.SECRET_KEY;
const ENVIRONMENT = "sandbox";

const client = new Maplerad(SECRET_KEY, ENVIRONMENT);

Get all Customers

// Get all customers
async function getAllCustomers() {
    try {
        const customers = await client.Customers.GetAllCustomers();
        console.log(customers);
    } catch (error) {
        console.error(error);
    }
}

Keywords

FAQs

Last updated on 10 May 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc