1.0.5 • Published 8 months ago

@oneramp/sdk v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

ONERAMP SDK

OneRamp is a utility package that helps facilitate token offramps and oneramps in various blockchain networks. It provides a set of tools to interact with blockchain tokens in a more accessible and abstracted way, providing a simple interface to approve, offramp and keep track of transactions.

Installation

To use OneRamp in your project, you will need to install it via npm:

npm i @oneramp/sdk

or

yarn add @oneramp/sdk

Usage

Import the OneRamp class from the package and create a new instance by providing the necessary parameters:

import { OneRamp } from "@oneramp/sdk";

const oneramp = new OneRamp(
network, // Network type - "bscTestnet" | "bsc" | "celo" | "alfajores" | "mumbai"
  pubKey,  // Public key
  secretKey, // Secret key
  provider, // (Optional) ethers.provider
  signer // (Optional) Signer
);

You can then use the offramp method to deposit a specific amount of a token to a specific the oneramp address:

oneramp.offramp(tokenAddress, amount, phoneNumber)

Documentation

Browse the documentation online:

Getting Started Full API Documentation

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago