# Polygon

## VulpeFI Swap API <mark style="background-color:purple;">1.0</mark>

<https://api.vulpefi.com/swagger/polygon-json>

### Ethereum Network

Using VulpeFI Swap API, you can find the best route to exchange assets and make the exchange.\
\
Step by step:

1. Lookup addresses of tokens you want to swap, for example ‘0xxx’ , ‘0xxxx’ for DAI -> VULPE
2. Check for allowance of 1inch router contract to spend source asset (/approve/allowance)
3. If necessary, give approval for 1inch router to spend source token (/approve/transaction)
4. Monitor the best exchange route using (/quote)
5. When you ready use to perform swap (/swap)

### Swap

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/quote" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/swap" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/approve/spender" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/approve/transaction" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/approve/allowance" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/liquidity-sources" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}

{% openapi src="<https://api.1inch.io/swagger/polygon-json>" path="/v5.2/137/tokens" method="get" %}
<https://api.1inch.io/swagger/polygon-json>
{% endopenapi %}
