API
This section will walk you through the required steps to get quote and submit a swap using Mosaic Aggregator.
Swagger
Find the best quote to swap with Mosaic Aggregator
0x1::aptos_coin::AptosCoin0x275f508689de8756169d1ee02d889c777de1cebda3a7bbcce63ba8a27c563c6f::tokens::USDCAmount of the token to be swapped
100000000Whether the fee is in the source asset
trueFee in basis points
30Fee receiver address
0x0145f3f2a68d9bcf8f5a1ae2ca34760c76a9742c7b22b36a54f706dd587cc26cSlippage tolerance in basis points
10Sender address
0x0145f3f2a68d9bcf8f5a1ae2ca34760c76a9742c7b22b36a54f706dd587cc26cReceiver address. If not provided, the sender address will be used.
0x0145f3f2a68d9bcf8f5a1ae2ca34760c76a9742c7b22b36a54f706dd587cc26cSuccessfully found quote
Successfully found quote
Retrieve tokens based on IDs, cursor, count, and pattern
List of token IDs to retrieve. If omit, all tokens will be retrieved.
Cursor for pagination.
Number of tokens to retrieve.
Pattern to match token names.
A list of tokens and the next cursor for pagination.
A list of tokens and the next cursor for pagination.
Setup Authentication
Get quote
1. Setup Environment
2. Setup User Account
3. Define Assets and Amount
4. Get a Quote from Mosaic Aggregator API
5. Build the transaction
6. Sign and submit the transaction
Last updated