loop
autoloop

GET /v1/auto/suggest/{offchainAsset}

Changed on

Get suggestion for the swaps.

Request

  • Base URL
    https://api.server.test/v1
  • Auth
    none declared

Path parameters

offchainAsset'BTC' | 'LTC'

off-chain asset which autoloop manager will take care. default is BTC.

Response

OK

Example response

{
  "loop_out": [
    {
      "channel_ids": [
        "140x10x1"
      ],
      "pair_id": "BTC/LTC",
      "address": "bc1q2y7lfmmm7xhv2dpf0n0mx6w26zspmvszm3hvkc4yn785xp8dvs5shejlc5"
    }
  ],
  "loop_in": [
    {
      "last_hop": "03afbba930dc74d6412b71c31f72bfb8d4615121174dd4290cbbf83960961ba9ab",
      "channel_id": "140x10x1",
      "pair_id": "BTC/LTC"
    }
  ],
  "disqualified": [
    {
      "channel_id": "140x10x1",
      "pubkey": "03afbba930dc74d6412b71c31f72bfb8d4615121174dd4290cbbf83960961ba9ab"
    }
  ]
}

Changes

    • breaking

      added subschema #3 to the // response property oneOf list for the response status

    • breaking

      added subschema #3 to the ////// response property oneOf list for the response status

    • breaking

      added subschema #3 to the /// response property oneOf list for the response status

    • info

      the path request parameter offchainAsset became optional

    • breaking

      the // response property's maxLength was unset from 33 for the response status

    • breaking

      the // response property's minLength was decreased from 33 to 0 for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      the // response's property type changed from string to no type for status

    • breaking

      the // response's property type changed from string to no type for status

    • breaking

      the // response's property type changed from string to no type for status

    • info

      removed from the // response property oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the // response property oneOf list for the response status