BullSender

Base
basescoutdexguru
Code Snippets

Send Erc20

(sendErc20)

nonpayable

_token

_recipients

Input should be passed in JSON format - Ex: ["0x..."]

_amounts

Input should be passed in JSON format - Ex: ["0"]

Connect Wallet

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function sendErc20(address _token, address[] _recipients, uint256[] _amounts)", params: [_token, _recipients, _amounts] }); const { transactionHash } = await sendTransaction({ transaction, account });