-
Notifications
You must be signed in to change notification settings - Fork 184
Description
Hi Zora Team,
I’m trying to perform a server-side SELL using @zoralabs/coins-sdk with an EOA private key, but the transaction fails with:
HttpRequestError: HTTP request failed. Status: 403 method: eth_signTypedData_v4
BUY (ETH → token) works fine server-side.
SELL (token → ETH) always fails because tradeCoin attempts Permit2 signing internally.
tradeCoin does not expose a way to pass a user-signed Permit2 signature.
Using createTradeCall is not an option because it only works for ETH swaps, not ERC20 SELL.
The Problem is:
Server-side wallets cannot sign eth_signTypedData_v4 RPC calls, so server-side SELL is currently impossible without a user wallet or forking the SDK.
Request:
Expose an option in tradeCoin to accept a user-signed Permit2 signature.
Or provide a server-side workflow for ERC20 SELL that works without requiring eth_signTypedData_v4 to be the default method.
Thank