Create calldata for swap from ETH->USDC

I would like to generate calldata with Javascript for a basic swap from ETH to USDC on Base. This calldata will be included as part of a UserOp (ERC4337) that will be sent to the execute function of a smart account so that the swap can be performed.

Could you please point me to the best way to do this?

Hi, I’d generally recommend the use of Discord and discussing this in #tech-talk on Discord as this is where more of the builder community with CoW seems to sit.

1 Like