- install node.js from https://nodejs.org/en/download
- install node module dependencies npm install or yarn install
- start server with below command node main.js or npm start
-
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
-
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
-
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
-
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
{ "dest_wallets": [ { "address" : "0xE5b40ab5A5017D0347B4455ca5BA24eB4b8CC465", "amount" : 123 }, { "address" : "0xE5b40ab5A5017D0347B4455ca5BA24eB4b8CC465", "amount" : 123 }, ..... ] }
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