yield_setup_relay
Free — No payment required.
yield_prepare returns needsSetup: true, the agent must sign a setup transaction and submit it through this tool. The server validates the setup ticket, broadcasts the signed transaction to a test RPC, waits for confirmation, and verifies that delegation and module initialization succeeded.
Two setup types are supported:
full— First-time setup. Signs a Type-4 (EIP-7702) transaction withauthorization_listto delegate the EOA to the Nexus smart account and initialize modules.modules— Re-initialization only. Signs a Type-2 (EIP-1559) self-call when delegation already exists but modules need setup.
Parameters
Setup ticket returned by
yield_prepare when needsSetup is true. Contains:version— Always1walletAddress— Agent EOA address (0x...)chainId— Target chain IDimplementation— Nexus smart account implementation addressinitCalldataHash—keccak256of the setup calldatasetupType—"full"or"modules"expiresAt— ISO 8601 expiry timestamp
Signed raw transaction hex (
0x...). Must be:- Type-4 with
authorization_listforsetupType: "full" - Type-2 or Type-4 for
setupType: "modules" - A self-call (
to==walletAddress) - Signed by the wallet specified in
setupTicket.walletAddress
Number of block confirmations to wait for (1–10, default: 2).
Response
yield_prepare again to get the deposit/redeem/rebalance payload — setup is now complete.
Typical flow
- Call
yield_prepare— receivesneedsSetup: truewithsetupTicket - Sign the setup transaction locally (Type-4 for full, Type-2 for modules)
- Call
yield_setup_relaywith the ticket and signed transaction - Call
yield_prepareagain — receives the execution payload withneedsSetup: false