ERC20Distributor

Polygon
polygonscandexguru
Code Snippets

distributeTokens

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

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: "0xc9564b22CF854bE9C40E51f955C8574C2C8fabb1", method: "function distributeTokens(address _token, uint256 _amount, address[] _receivers)", params: [_token, _amount, _receivers] } ], chainId: 137, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();