Search…
πŸ’Έ
Crypto Payouts
Send crypto from Lazerpay to an external wallet using our APIs

Introduction

The amount collected in your Lazerpay account from all the incoming transactions can be withdrawn to an external supported crypto wallet. In order to make crypto payouts, you can use our payouts API endpoint or our official Node JS SDK

Crypto Transfer API

post
https://api.lazerpay.engineering/api/v1/crypto/payouts/initiate
// Example Body
​
{
"amount": 100,
"recipient": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"coin": "USDT",
"blockchain": "Binance Smart Chain"
}

Important things to note

  • The Blockchain field must be "Binance Smart Chain".
  • The coin field must either be "BUSD", "DAI", "USDT", or "USDC".
We only support the Binance Smart Chain for withdrawals at the moment. We will add more networks in the future.

From Official JS SDK

With the JS SDK, you can transfer the crypto in your Lazerpay balance to an external address.
See sample code below:
const Lazerpay = require('lazerpay-node-sdk');
​
const lazerpay = new Lazerpay(LAZER_PUBLIC_KEY, LAZER_SECRET_KEY);
​
const crypto_payout_tx = async () => {
const transaction_payload = {
amount: 100,
recipient: '0x0B4d358D349809037003F96A3593ff9015E89efA', // address must be a bep20 address
coin: 'BUSD',
blockchain: 'Binance Smart Chain',
};
try {
const response = await lazer.Payout.transferCrypto(transaction_payload);
console.log(response.error);
} catch (e) {
console.log(e);
}
};
​
Copy link
Edit on GitHub
Outline
Introduction
Crypto Transfer API
post
From Official JS SDK