Mass-Transfer-Backend

how to install

  1. install node.js from https://nodejs.org/en/download
  2. install node module dependencies npm install or yarn install
  3. start server with below command node main.js or npm start

endpoints

  1. https://:5000/check_wallet_address (POST) with body json data check all destination wallet addresses are valid if one of them is invalied, return failed

  2. https://:5000/check_wallet_balance (POST) with body json data check is there enough USDC balance in main wallet to send destination wallets if insufficient USDC balance in main wallet, return false

  3. https://:5000/gas_check (POST) check is there enough ETH to send USDC token to destination wallet for gas fee if insufficient ETH balance in main wallet, return false

  4. https://:5000/transfer (POST) with body json data befor send it will check address check, and balance check, gas fee check of main wallet if nothing's bad, it will transfer USDC to destination wallets with requested amount

Json data type

{ "dest_wallets": [ { "address" : "0xE5b40ab5A5017D0347B4455ca5BA24eB4b8CC465", "amount" : 123 }, { "address" : "0xE5b40ab5A5017D0347B4455ca5BA24eB4b8CC465", "amount" : 123 }, ..... ] }

config variable

export const srcWalletAddress : main wallet address export const srcWalletPrivatekey : pk key of main wallet export const usdcAddress USDC token contract address export const usdcDecimals USDC decimals export const gasLimit : gas limit to send USDC