Skip to content

Server-side SELL fails due to Permit2 signing requirement #529

@culturalmass

Description

@culturalmass

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions