/swapendpoint that includes the tokens they want to buy and sell. Totle's Suggester calculates the best way to execute the buy and sell transactions using its aggregated order books and real-time price information. Suggester returns a response to the client that contains a signable transaction payload consisting of orders that can be settled on the blockchain.
swapendpoint includes a payload that needs to be signed and submitted to the Ethereum network for mining. You can do this using the web3 library's
/swapendpoint, the amount you provide should be in the token's base unit of decimals.
xis the token decimals. For example, if you're working with 1 MKR, its representation using the token's base unit of decimals is 1000000000000000000 MKR.
/swapendpoint includes gas price and limit in the transactions.