Skip to content

Wrong output name maxAmountIn for EXACT_OUTPUT quotes #35

@IkerAlus

Description

@IkerAlus

The API reference at https://docs.near-intents.org/api-reference/oneclick/request-a-swap-quote says "the quote response would have two fields minAmountIn and maxAmountIn". But maxAmountIn is not present in the response. It is simply amountIn.

Example response:

{
    "quote": {
        "amountIn": "1228055",
        "amountInFormatted": "1.228055",
        "amountInUsd": "1.2280",
        "minAmountIn": "1221914",
        "amountOut": "1000000000000000000000000",
        "amountOutFormatted": "1.0",
        "amountOutUsd": "1.2200",
        "minAmountOut": "1000000000000000000000000",
        "timeEstimate": 35
    },
    "quoteRequest": {
        "dry": true,
        "depositMode": "SIMPLE",
        "swapType": "EXACT_OUTPUT",
        "slippageTolerance": 50,
        "originAsset": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
        "depositType": "ORIGIN_CHAIN",
        "destinationAsset": "nep141:wrap.near",
        "amount": "1000000000000000000000000",
        "refundTo": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
        "refundType": "ORIGIN_CHAIN",
        "recipient": "test.near",
        "recipientType": "DESTINATION_CHAIN",
        "deadline": "2026-04-01T09:15:03.000Z",
        "quoteWaitingTimeMs": 3000,
        "appFees": [
            {
                "recipient": "028bacb7821fa83a3c79ed96a544d000b07ba845acbe547069689c40fc6c5e4f",
                "fee": 20
            }
        ]
    },
    "signature": "ed25519:42MRoz5NeJmG8NW13Zmk3BZindjwcTMar3mskScTMRpzNjD3LR4QuFXD9hHhpX1gWa6b6CqZaCtvtLwGVBTgrsrF",
    "timestamp": "2026-04-01T08:45:03.369Z",
    "correlationId": "f2f842da-eef8-4b7f-a967-b4874c36cf2f"
}

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