Blue Flower

Air Swap Instant

Call the following JavaScript:

<script src="https://cdn.airswap.io/airswap-instant-widget.js"></script>

Call Air Swap Instant:

<button onclick="myAirSwapInstant()">AirSwapInstant</button>
<script>
  function myAirSwapInstant(){
    window.AirSwapInstant.render(
      {
        onClose: function () {
          console.info('Widget closed.')
        },
      },
      'body',
    )
  }
</script>

Air Swap Trader

Call the following JavaScript:

<script src="https://cdn.airswap.io/1.3.0/airswap-trader.js"></script>

Call Air Swap Trader

<button onclick="myAirSwapTrader()">AirSwapInstant</button>
<script>
  function myAirSwapTrader(){
    window.AirSwapTrader({
      onCreate: (order, cid) => {
        console.log('Order created!')
      },
      onClose: (transactionHash) => {
        console.log('Widget closed')
      },
  	}).render('body')
  }
</script>

Source: https://docs.airswap.io/take-liquidity/embed-airswap