For the complete documentation index, see llms.txt. This page is also available as Markdown.

Fast Execution Account

Before submitting any signature-related request, first call /api/nonce to retrieve a fresh nonce for anti-replay.

Channel Aggregated Information List - Maker

post
Body
modstringRequired

taker or maker

Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/api/simplelighting/get_sl_config_list
POST /api/simplelighting/get_sl_config_list HTTP/1.1
Host: 127.0.0.1:8090
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "mod": "text",
  "payer_address": {
    "address": "text",
    "public_key": "text"
  },
  "payer_asset_address": {
    "address": "text",
    "public_key": "text"
  }
}
200Success
{
  "code": 0,
  " msg": "maker",
  "data": {
    "items": [
      {
        "tick_a": "btc",
        "tick_b": "doge",
        "sum_init_amount_a": 38,
        "sum_init_amount_b": 4,
        "sum_channel_amount_a": 56,
        "sum_channel_amount_b": 17,
        "status": "closeing"
      },
      {
        "tick_a": "btc",
        "tick_b": "dotswap",
        "sum_init_amount_a": 68,
        "sum_init_amount_b": 12,
        "sum_channel_amount_a": 66,
        "sum_channel_amount_b": 26,
        "status": "closeing"
      }
    ]
  }
}

Get Channel Opening Restrictions - Maker

post
Body
modstringRequired

taker or maker

Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/api/simplelighting/get_open_limit
POST /api/simplelighting/get_open_limit HTTP/1.1
Host: 127.0.0.1:8090
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "tick_a": {
    "coin_type": "text",
    "tick": "text",
    "token_id": "text"
  },
  "tick_b": {
    "coin_type": "text",
    "tick": "text",
    "token_id": "text"
  },
  "mod": "text"
}
200Success
{
  "code": 1,
  " msg": "text",
  "data": {
    "not_found_pool": true,
    "limit_amount_a": 1,
    "limit_amount_b": 1,
    "btc_min_amount": 1,
    "runes_min_amount": 1,
    "channel_usage_rates": 1
  }
}

Open Channel - Maker

post
Body
tick_a_amountintegerRequired
tick_b_amountintegerRequired
modstringRequired

taker or maker

Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/api/simplelighting/open_simple_lighting
POST /api/simplelighting/open_simple_lighting HTTP/1.1
Host: 127.0.0.1:8090
Content-Type: application/json
Accept: */*
Content-Length: 534

{
  "tick_a": {
    "coin_type": "btc",
    "tick": "btc",
    "token_id": ""
  },
  "tick_b": {
    "coin_type": "runes",
    "tick": "THIRD•THIRD•TEST•TEO",
    "token_id": "74810:134"
  },
  "tick_a_amount": 100000,
  "tick_b_amount": 4000,
  "mod": "taker",
  "sign_info": {
    "sign_info": "test",
    "address": "tb1qynvs0t83ncmw3ut7uukkwy7rc0yc83zqpn6yc5",
    "public_key": "03f8027331591b0752c0dd721320ecf7faf98453fb5aa21f47e0ee0eb206fc5754",
    "signature": "AkcwRAIgdxAEbsIC1OoYZ5hqPawB1t8nktlusjBm5ERRCz2VcAICIDbLqk6xlVMs46/UrD+zK/HL/ESYdjjlToU2uCShxfHjASED+AJzMVkbB1LA3XITIOz3+vmEU/taoh9H4O4Osgb8V1Q="
  }
}
200Success
{
  "code": 1,
  "msg": "text",
  "data": {
    "success": "text"
  }
}

Manually Close Channel - Maker

post
Body
modstringRequired

taker or maker

Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/api/simplelighting/close_simple_lighting
POST /api/simplelighting/close_simple_lighting HTTP/1.1
Host: 127.0.0.1:8090
Content-Type: application/json
Accept: */*
Content-Length: 343

{
  "tick_a": {
    "coin_type": "text",
    "tick": "text",
    "token_id": "text"
  },
  "tick_b": {
    "coin_type": "text",
    "tick": "text",
    "token_id": "text"
  },
  "mod": "text",
  "sign_info": {
    "sign_info": "text",
    "address": "text",
    "public_key": "text",
    "signature": "text"
  },
  "payer_address": {
    "address": "text",
    "public_key": "text"
  },
  "payer_asset_address": {
    "address": "text",
    "public_key": "text"
  }
}
200Success
{
  "code": 1,
  "msg": "text",
  "data": {
    "success": "text"
  }
}

Get Settlement Information List - Maker

post
Body
modstringRequired

taker or maker

settle_typestringRequired
start_timestringRequired
end_timestringRequired
pagestringRequired
page_sizestringRequired
Responses
200Success
application/json
codeintegerRequired
msgstringRequired
post/api/simplelighting/get_sl_settle_infos
POST /api/simplelighting/get_sl_settle_infos HTTP/1.1
Host: 127.0.0.1:8090
Content-Type: application/json
Accept: */*
Content-Length: 222

{
  "payer_address": {
    "address": "text",
    "public_key": "text"
  },
  "payer_asset_address": {
    "address": "text",
    "public_key": "text"
  },
  "mod": "text",
  "settle_type": "text",
  "start_time": "text",
  "end_time": "text",
  "page": "text",
  "page_size": "text"
}
200Success
{
  "code": 1,
  "msg": "text",
  "data": {
    "items": [
      {
        "tick_a": {
          "tick": "text",
          "token_id": "text",
          "coin_type": "text"
        },
        "tick_b": {
          "tick": "text",
          "coin_type": "text",
          "token_id": "text"
        },
        "address": "text",
        "record_time": 1,
        "settle_type": "account_fee_charged",
        "init_allowance_a": 1,
        "init_allowance_b": 1,
        "on_chain_fee": 1,
        "account_usage_fee_a": 1,
        "account_usage_fee_b": "text",
        "pre_wallet_balance_a": 1,
        "pre_wallet_balance_b": "text",
        "post_wallet_balance_a": "text",
        "post_wallet_balance_b": "text",
        "pre_channel_balance_a": "text",
        "pre_channel_balance_b": "text",
        "post_channel_balance_a": "text",
        "post_channel_balance_b": "text",
        "txid": "text",
        "status": "success"
      }
    ]
  }
}

Last updated