Exchanging Cross-Chain-Tokens to VET/VTHO and supported ecosystem tokens is available via API. Each swap is identified by a swapId
for tracking.
<iframe
src="https://bridge.vet/iframe"
width="800"
height="800"
frameborder="0"
name="Swap Tokens"
/>
https://bridge.vet/api/swap/tokens
https://bridge.vet/api/swap/pairs/:direction/:token
from
| to
vet
| vtho
| vechain token symbol
https://bridge.vet/api/swap/:from/:to/range
https://bridge.vet/api/swap/:from/:to/estimate?amount=:amount
https://bridge.vet/api/swap
{
"amount": 0.5,
"from": "eth",
"to": "vet:vet",
"address: "0x...."
}
The response will be the swapId
of the newly created swap:{ "swapId": "0:1234567890abcdef" }
https://bridge.vet/api/swap/status/:swapId