Skip to content

spotUser action not work #76

@hlongvu

Description

@hlongvu

I tried to use this api: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa

My request payload: {"action":{"type":"spotUser","classTransfer":{"usdc":1100000,"toPerp":true}},"nonce":1733910442843,"signature":{"r":"0xddef40cbaac1c2fa452afa28854e7a1eec2da7bf0e8aa04254ec8b863f5965fc","s":"0x13d147f843fddf3f2e8361ed8f1767631e86e25a0e274f1afd75ca12698e4031","v":27}}

I got a respone of error 422: Failed to deserialize the JSON body into the target type

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