Integration Guide

For developers looking to integrate Pluton into their projects, the following endpoints and workflows are essential:

Getting the Best Estimate

This endpoint provides an estimate for the transfer, considering available solvers.

Endpoint: /estimates/getBestEstimate

Request Body:

{
  "srcChainId": 1,
  "srcAssetAddress": "0xSourceAssetAddress",
  "dstChainId": 2,
  "dstAssetAddress": "0xDestinationAssetAddress",
  "amount": "1000",
  "slippage": 0.5,
  "quoteType": "EXACT_IN"
}

Response:

{
  "id": "estimateId",
  "transferId": "transferId",
  "outputAmount": "990",
  "solverId": 123
}

Getting the Best Quote

This endpoint provides the best quote based on solver responses.

Endpoint: /quotes/getBestQuote

Request Body:

{
  "srcChainId": 1,
  "srcAssetAddress": "0xSourceAssetAddress",
  "dstChainId": 2,
  "dstAssetAddress": "0xDestinationAssetAddress",
  "amount": "1000",
  "slippage": 0.5,
  "quoteType": "EXACT_IN",
  "srcWalletAddress": "0xSourceWalletAddress",
  "dstWalletAddress": "0xDestinationWalletAddress"
}

Response:

{
  "id": "quoteId",
  "transferQuoteId": "transferQuoteId",
  "solverId": 123,
  "outputAmount": "980",
  "initiationExpiry": "2025-01-15T10:00:00Z",
  "redeemExpiry": "2025-01-15T12:00:00Z",
  "transaction": {
    "to": "0xDestinationAddress",
    "value": "980",
    "data": "0xTransactionData"
  }
}

Last updated