Skip to content

SDK drift: Python Escrow.deposit_tx sends user_address and token in request body; TypeScript Escrow.depositTx does not #1010

@realfishsam

Description

@realfishsam

What

The request body sent to the escrow deposit endpoint differs between SDKs.

Python (sdks/python/pmxt/escrow.py:127-131):

body = {
    "token": "usdc",
    "amount": _usdc_amount(amount),
    "user_address": self._wallet_address(),
}

TypeScript (sdks/typescript/pmxt/escrow.tsdepositTx method): sends only amount in the body; does NOT include user_address or token: "usdc".

Note: this is distinct from issue #991, which covers the parameter type difference (number|string|bigint vs float|Decimal). This issue concerns the server request body content.

Impact

If the server uses user_address from the body to attribute the deposit, TypeScript clients will silently omit it. If the server derives the wallet from the auth token, the Python body fields are redundant. Either way the two SDKs are sending structurally different requests to the same endpoint.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions