AirdropERC1155

Polygon
polygonscandexguru
Code Snippets

airdrop

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

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: "0xF164123B4eB147ec99D013Ee8D23388177C6b3dA", 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();