airdrop
nonpayable
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-secret-key': '<YOUR_SECRET_KEY>'
  },
  body: JSON.stringify({
    calls: [
      {
        contractAddress: "0xCf13c6fb8e8A5E0CB294C1728EFDf91755840c2A",
        method: "function airdrop(address _tokenAddress, address _tokenOwner, address[] _recipients, uint256[] _amounts, uint256[] _tokenIds)",
        params: [_tokenAddress, _tokenOwner, _recipients, _amounts, _tokenIds]
      }
    ],
    chainId: 137,
    from: "<YOUR_WALLET_ADDRESS>"
  })
});
const data = await response.json();