loop
autoloop

Get suggestion for the swaps.

get/v1/auto/suggest/{offchainAsset}

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

Changed in 5 of the 50 revisions of this API.22216

  • b52777465fee31See the full diff
    • added subschema #3 to the disqualified/items/channel_id response property oneOf list for the response status 200

      response-property-one-of-added

    • added subschema #3 to the loop_in/items/channel_id/oneOf[ShortChannelId]/ response property oneOf list for the response status 200

      response-property-one-of-added

    • added subschema #3 to the loop_out/items/channel_ids/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • the path request parameter offchainAsset became optional

      request-parameter-became-optional

  • 2fa641145178102See the full diff
    • the loop_in/items/last_hop response property's maxLength was unset from 33 for the response status 200

      response-property-max-length-unset

    • the loop_in/items/last_hop response property's minLength was decreased from 33 to 0 for the response status 200

      response-property-min-length-decreased

    • added BitcoinAddressNonMalleable to the loop_out/items/address response property oneOf list for the response status 200

      response-property-one-of-added

    • added PubKey to the loop_in/items/last_hop response property oneOf list for the response status 200

      response-property-one-of-added

    • added ShortChannelId to the loop_in/items/channel_id response property oneOf list for the response status 200

      response-property-one-of-added

    • added pairId to the loop_in/items/pair_id response property oneOf list for the response status 200

      response-property-one-of-added

    • added pairId to the loop_out/items/pair_id response property oneOf list for the response status 200

      response-property-one-of-added

    • the loop_in/items/last_hop response's property type/format changed from string/ to / for status 200

      response-property-type-changed

    • the loop_in/items/pair_id response's property type/format changed from string/ to / for status 200

      response-property-type-changed

    • the loop_out/items/pair_id response's property type/format changed from string/ to / for status 200

      response-property-type-changed

    • removed P2WSH P2WPKH from the loop_out/items/address response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed subschema #1 subschema #2 from the loop_in/items/channel_id response property oneOf list for the response status 200

      response-property-one-of-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 51e008b413e611See the full diff
    • removed the optional property loop_out/items/channel_id from the response with the 200 status

      response-optional-property-removed

    • added the optional property loop_out/items/channel_ids to the response with the 200 status

      response-optional-property-added

  • 2f51ef5daa6d33See the full diff
    • response property disqualified/items/channel_id list-of-types was widened by adding types integer to media type application/json of response 200

      response-property-list-of-types-widened

    • response property loop_in/items/channel_id list-of-types was widened by adding types integer to media type application/json of response 200

      response-property-list-of-types-widened

    • response property loop_out/items/channel_id/items/ list-of-types was widened by adding types integer to media type application/json of response 200

      response-property-list-of-types-widened

    • the disqualified/items/channel_id response's property pattern (\d{3})x(\d{3})x(\d{2}) was removed for the status 200

      response-property-pattern-removed

    • the loop_in/items/channel_id response's property pattern (\d{3})x(\d{3})x(\d{2}) was removed for the status 200

      response-property-pattern-removed

    • the loop_out/items/channel_id/items/ response's property pattern (\d{3})x(\d{3})x(\d{2}) was removed for the status 200

      response-property-pattern-removed

  • ebc31c9ff358619See the full diff
    • the path request parameter offchainAsset became required

      request-parameter-became-required

    • added P2WSH P2WPKH to the loop_out/items/address response property oneOf list for the response status 200

      response-property-one-of-added

    • the loop_in/items/channel_id response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • the loop_in/items/last_hop response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • the loop_in/items/pair_id response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • the loop_out/items/pair_id response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • removed the optional property loop_out/items/channel_ids from the response with the 200 status

      response-optional-property-removed

    • added the optional property loop_out/items/channel_id to the response with the 200 status

      response-optional-property-added

    • response property disqualified/items/channel_id list-of-types was narrowed by removing types integer from media type application/json of response 200

      response-property-list-of-types-narrowed

    • removed BitcoinAddressNonMalleable from the loop_out/items/address response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed PubKey from the loop_in/items/last_hop response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed ShortChannelId from the loop_in/items/channel_id response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed pairId from the loop_in/items/pair_id response property oneOf list for the response status 200

      response-property-one-of-removed

    • removed pairId from the loop_out/items/pair_id response property oneOf list for the response status 200

      response-property-one-of-removed

    • the disqualified/items/channel_id response's property pattern (\d{3})x(\d{3})x(\d{2}) was added for the status 200

      response-property-pattern-added

    • the loop_in/items/channel_id response's property pattern (\d{3})x(\d{3})x(\d{2}) was added for the status 200

      response-property-pattern-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog