EES
  • Ethereum Execution Service
  • Concepts
    • Jobs and registry
    • Executors and coordination
    • Applications
    • Execution modules
    • Fee modules
    • Execution fees
    • Sponsored jobs
  • Coordination
    • Staking
    • Designation
    • Slashing
  • Execution modules
    • RegularTimeInterval
  • Fee modules
    • LinearAuction
    • PeggedLinearAuction
  • Deployments
  • Guides
    • Create an application
    • Sponsor jobs
    • Build an executor bot
  • EES DAO
  • SDK
    • Types
    • Query jobs
    • Execute batch
    • Create job
    • Delete job
    • Sponsor job
    • Revoke sponsorship
    • Listen for created jobs
  • EES Subgraph
  • Technical reference
    • API
      • Core
        • JobRegistry
        • Coordinator
      • Periphery
        • Querier
Powered by GitBook
On this page
  1. SDK

Execute batch

The ees-sdk allows you to execute a batch using the BatchExecutor contract.

const transactionReceipt: TransactionReceipt = await eesSDK.executeBatch(indices, feeRecipient);

Here indices is of type bigint[] and specifies the indices of jobs to execute. The feeRecipient is of type 0x${string} and is the address that the execution fee will be sent to for all jobs in the batch. The returned value of viem's type TransactionReceipt gives information about the transaction.

The transaction sent by executeBatch will not revert if any of the individual jobs revert during execution. This means that the execution of the other jobs will still go through.

Warning: This action will perform an on-chain transaction and requires that the eesSDK object was initialised with a wallet client.

PreviousQuery jobsNextCreate job

Last updated 10 months ago