A bulk NFT transfer utility made for transferring ERC-721 and ERC-1155 tokens between accounts easily.
A bulk NFT transfer utility made for transferring ERC-721 and ERC-1155 tokens between wallets very efficiently.
<br/>
Use it to vault your NFTs en masse or to distribute tokens to a large audience for some major gas savings.
<br/>
The higher the network gas price, the more savings you will see.
<br/>
<br/>
<br/>
Made by <ahref="https://lzahq.tech"target="_blank"rel="noreferrer">lza_menace</a> and the <ahref="https://art101.io"target="_blank"rel="noreferrer">Art101</a> team.
Made by <ahref="https://twitter.com/lza_menace" target="_blank"rel="noreferrer">lza_menace</a>of the <ahref="https://art101.io"target="_blank"rel="noreferrer">Art101</a> team.
// let gasPrice = 50000000000; // override for testing
// gasPrice = 15000000000; // override for testing
let gasPriceGwei = await $web3.utils.fromWei(gasPrice.toString(), 'gwei');
let gasPriceGwei = await $web3.utils.fromWei(gasPrice.toString(), 'gwei');
let gasCostWei = gasPrice * gasLimit;
let gasCostWei = gasPrice * gasLimit;
let gasCostEth = await $web3.utils.fromWei(gasCostWei.toString());
let gasCostEth = await $web3.utils.fromWei(gasCostWei.toString());
let feeWei = await $contracts.sendit.methods.usageFee().call();
let feeWei = await $contracts.shipit.methods.usageFee().call();
let totalFeeWei = feeWei * recipients.length;
let totalFeeWei = feeWei * recipients.length;
let totalFeeEth = $web3.utils.fromWei(totalFeeWei.toString());
let totalFeeEth = $web3.utils.fromWei(totalFeeWei.toString());
let si_gasCostWei = gasPrice * si_gasLimit + totalFeeWei;
let si_gasCostWei = gasPrice * si_gasLimit + totalFeeWei;
@ -178,7 +183,7 @@
let diffPerc = 100 - ((si_gasCostWei / gasCostWei) * 100);
let diffPerc = 100 - ((si_gasCostWei / gasCostWei) * 100);
gasCalculation.push(`Current network gas price is ~${gasPriceGwei} gwei.`);
gasCalculation.push(`Current network gas price is ~${gasPriceGwei} gwei.`);
gasCalculation.push(`Transferring ${recipients.length} tokens individually would cost ~${gasCostEth} Ξ (${gasLimit} gas).`);
gasCalculation.push(`Transferring ${recipients.length} tokens individually would cost ~${gasCostEth} Ξ (${gasLimit} gas).`);
gasCalculation.push(`SendIt can bulk transfer ${recipients.length} tokens for ${si_gasCostEth} Ξ (${si_gasLimit} gas + a small fee of ${totalFeeEth} Ξ).`);
gasCalculation.push(`ShipIt can bulk transfer ${recipients.length} tokens for ${si_gasCostEth} Ξ (${si_gasLimit} gas + a small fee of ${totalFeeEth} Ξ).`);
if (diffPerc <0){
if (diffPerc <0){
gasCalculation.push(`That is an additional cost of ${diffEth*-1} Ξ to transfer in one go to save you the time`);
gasCalculation.push(`That is an additional cost of ${diffEth*-1} Ξ to transfer in one go to save you the time`);