ERC1155Distributor

Polygon
polygonscandexguru
Code Snippets

distributeNFT

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: "0x2E324d1eB9A047e6C5D1f57d5666a2D38b9ec3a2", method: "function distributeNFT(address _nft, uint256 _tokenId, address[] _receivers, bool _skipIfHolder)", params: [_nft, _tokenId, _receivers, _skipIfHolder] } ], chainId: 137, from: "<YOUR_WALLET_ADDRESS>" }) }); const data = await response.json();