ReservoirApprovalProxy

Ancient8
Ancient8 Explorer
Code Snippets

bulkTransferWithExecute

nonpayable
Input should be passed in JSON format - Ex: [{ "items": [{ "itemType": "0", "token": "0x...", "identifier": "0", "amount": "0" }], "recipient": "0x..." }]
Input should be passed in JSON format - Ex: [{ "module": "0x...", "data": "0", "value": "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: "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();