bulkTransferWithExecute
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: "0x224ecB4Eae96d31372D1090c3B0233C8310dBbaB",
method: "function bulkTransferWithExecute(((uint8 itemType, address token, uint256 identifier, uint256 amount)[] items, address recipient)[] transfers, (address module, bytes data, uint256 value)[] executionInfos, bytes32 conduitKey)",
params: [transfers, executionInfos, conduitKey]
}
],
chainId: 888888888,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();