Step-by-Step Integration
This guide walks you through the complete integration process for implementing UNIKRON’s token swap API with MEV protection.
Estimated Time: 15-30 minutes to complete full integration
Integration Steps
API Authentication
Obtain and configure your API credentials
Quote Request
Request optimal swap quotes from aggregators
Token Approval
Approve ERC-20 token spending (if needed)
Sign & Submit
Sign transaction and submit to MEV-protected routing
Transaction Monitoring
Track order status until confirmation
Quick Overview
// Complete integration workflow
const quote = await getQuote(sellToken, buyToken, amount, userAddress);
await approveToken(sellToken, quote.dexRoute.target, amount);
const signedTx = await signTransaction(quote.mevProtection.transactionParams);
const order = await submitOrder(signedTx);
await waitForConfirmation(order.orderId);Pro Tip: Check out our complete code examples in JavaScript, Python, and Go!
Ready to start? Begin with Step 1: API Authentication
Last updated on