Sponsor job

The ees-sdk makes it easy to generate an EIP-712 signature required to sponsor a job. As mentioned here, sponsoring a subscription means that all execution fees associated with execution of the job are paid by you.

const signature: `0x${string}` = await eesSDK.generateSponsorSignature(jobSpecification);

Here jobSpecification has type JobSpecification. The returned value is an EIP-712 signature which can be used as input to creating a job.

Note: A signature can only be redeemed by a single job. Providing an already redeemed signature when creating a job will cause the transaction to revert.

Note: This action does not perform an on-chan transaction but still requires that eesSDK was initialised with a wallet client.

Last updated