Native Backend
The Native Backend is like a relay hub for the frontend to help get and forward data to the other components of Native.
API Overview
API: Get tokens
Retrieve the token metadata from the token list stored in Native's database
API: Get indicative quote
Call the off-chain pathfinder which will list out all the routes for the given trading pair and return the best path to do the swap. Will then call the Pricer for a quote. This quote will be returned to the user via the GUI
API: Get sign quote
Call the off-chain pathfinder which will list out all the routes for the given trading pair and return the best path to do the swap. Will then call the Pricer for a quote. The RPC will call the Signer to sign the quote. This quote will be returned to the user via the GUI
API: Get firm quote
Call the off-chain pathfinder which will list out all the routes for the given trading pair and return the best path to do the swap. Will then call the Pricer for a quote. The RPC will call the Signer to sign the quote. An order will then be created in the Native database.
API: Create pool
Create pool in the Native database.
API: Update pool
Create pool in the Native database.
API: Get recommended pricing model
Return the recommended pricing model for the given token pair.
API: Generate signer
Create private key and public key of the signer in a secure container in a new server where no one have access to this data
Last updated