unsignedTransaction is a JSON string. Parse it, pass to, data and value to your signer unchanged, sign, and submit. This applies to Ethereum, Base, Arbitrum, Optimism, Polygon, and every other EVM-compatible network Yield.xyz supports.
Prerequisites
- An action’s
transactions[]; see Transaction signing for decoding by chain family and Enter and exit flows for the request and poll loop. - An EOA private key (server-side) or a connected browser wallet, for the target network.
The unsignedTransaction shape
Sign and submit
- ethers.js v6
- viem
- wagmi (browser)
POST /v1/transactions/{tx.id}/submit with { "signedTransaction": await wallet.signTransaction(parsed) }. Use one path per transaction, never both. See Transaction signing for when each fits.
Batched execution
When a yield’smechanics.arguments.enter.fields (or .exit.fields) offers executionMode, you can pass executionMode: "batched" instead of the default "individual". A batched action collapses what would otherwise be an APPROVAL plus a SUPPLY, STAKE, or similar call into a single BATCH transaction, whose unsignedTransaction is a JSON array of calls rather than one transaction object:
to, data, and value; there is no gasLimit, nonce, or chainId to sign against, because the batch is meant for a smart account or wallet that executes all calls atomically (for example EIP-5792 wallet_sendCalls), not a single EOA-signed transaction. Sign it with whatever batch-call method your smart account SDK exposes, then submit the resulting hash the same way as any other transaction.
Next steps
Transaction signing
The shared contract across chain families: decode, validate, sign, submit.
Enter and exit flows
Build the request, branch on executionPattern, and poll to a terminal status.

