Swagger API
EmporiaSDK Swagger API - v1.1
Using Hera Aggregation protocol API, you can find the best route to exchange assets and make the exchange.
Progressing:
- 1.Lookup addresses of tokens you want to swap, for example ‘0xxx’ , ‘0xxxx’ for USDC -> METIS
- 2.Check for allowance and if necessary give approval for HeraAggregatorV2 contract to spend token (/allowance)
- 3.Monitor the best exchange route using (/quote)
- 4.When you ready use to perform swap (/swap)
EmporiaSDK is now available on Metis Mainnet. Other chains are coming soon!
Design, describe, and document your API on the first open source editor supporting multiple API specifications and serialization formats. The Swagger Editor offers an easy way to get started with the OpenAPI Specification (formerly known as Swagger) as well as the AsyncAPI specification, with support for Swagger 2.0, OpenAPI 3.0, and AsyncAPI 2.* versions.
Oops, something is missing.
We could not find the original source to display this content.
// Example Query:
GET https://pathfindersdk.hera.finance/allowance?account=0x0000000000000000000000000000000000000000&amount=1000000&tokenInAddress=0xEA32A96608495e54156Ae48931A7c20f0dcc1a21
Oops, something is missing.
We could not find the original source to display this content.
// Example Query:
GET https://pathfindersdk.hera.finance/quote?account=0x0000000000000000000000000000000000000000&tokenInAddress=0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000&tokenInChainId=1088&tokenOutAddress=0xEA32A96608495e54156Ae48931A7c20f0dcc1a21&tokenOutChainId=1088&amount=100000000000000000000&type=exactIn
Oops, something is missing.
We could not find the original source to display this content.
// Example Query:
GET https://pathfindersdk.hera.finance/swap?account=0x0000000000000000000000000000000000000000&tokenInAddress=0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000&tokenInChainId=1088&tokenOutAddress=0xEA32A96608495e54156Ae48931A7c20f0dcc1a21&tokenOutChainId=1088&amount=100000000000000000000
Last modified 1mo ago