thirdweb

BatchCallDelegation

Odyssey
Block Explorer

Execute

(execute)

payable

calls

Input should be passed in JSON format - Ex: [{ "data": "0", "to": "0x...", "value": "0" }]

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Sign in

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function execute((bytes data, address to, uint256 value)[] calls) payable", params: [calls] }); const { transactionHash } = await sendTransaction({ transaction, account });