Getting other stablecoins

A brief explanation on minting IDRX to get other tokens.

You can use IDRX to get other stablecoins, such as USDT and USDC. IDRX partners with third-party providers to enable the acquisition of other stablecoins using Indonesian Rupiah. The process involves minting IDRX and swapping it into the desired token on-chain through the partner’s API. Below is the list of supported tokens and partner APIs for each network:

Network
Token
Partner API
Polygon
USDT
BNB Chain
USDT
Lisk
USDT0
Base
USDC

Before doing this, you might want to check the current rate. You can use this api to get the current rates. Here's an example code to get current rates.

  • The balance will be processed and credited to `destinationWalletAddress` max 24 hours after your request is submitted.

  • Minimum transaction for other stablecoins are $2 USD

  • Maximum transaction for other stablecoins are 5,555 USD

  • For transactions more than the maximum limit, please send your request to [email protected] to be processed.

  • The transaction will be automatically canceled if you have not made a payment within 24 hours.

  • IDRX is not responsible if a deposit error occurs due to an incorrect Virtual Account (VA) number or wallet address.

import { createSignature } from "./createSignature";
const axios = require('axios');

const apiKey = "{YOUR API KEY}";
const secret = "{YOUR SECRET}";

async function getRates() {
  const path = "https://idrx.co/api/transaction/rates?idrxAmount=15000";

  const bufferReq = Buffer.from('', 'base64').toString('utf8');
  const timestamp = Math.round((new Date()).getTime()).toString();
  const sig = createSignature('GET', path, bufferReq, timestamp, secret);

  const res = await axios.get(path, {
    headers: {
      'Content-Type': 'application/json',
      'idrx-api-key': apiKey,
      'idrx-api-sig': sig,
      'idrx-api-ts' : timestamp,
    },
  });

  console.log('res.data: ');
  console.log(JSON.stringify(res.data, null, 4));
}

getRates();

After a successful request, you will get a response as follows:

{
    "statusCode": 200,
    "message": "success",
    "data": {
        "price":"0.000062",
        "buyAmount":"0.932311",
        "chainId":137
    }
}

Get Other Stablecoin

You can mint IDRX and get other stablecoins such as USDT and USDC by following this guide. The only thing that you need to change is the requestType parameter set to usdt. Check this page to see the list of other tokens.

To check the status of the transaction, you can use the Transaction History API.

Last updated