RathRath Finance
API Reference

Estimate transaction cost

Estimates relay cost and minimum required balance without submitting the transaction.

POST
/api/quote
api-key<token>

Tachyon API key.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://tachyon.rath.fi/api/quote" \  -H "Content-Type: application/json" \  -d '{    "to": "",    "callData": "",    "chainId": 0  }'
{
  "success": true,
  "data": {
    "costUSD": 0,
    "minBalanceRequired": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "category": "string",
    "details": null,
    "traceId": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "category": "string",
    "details": null,
    "traceId": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "category": "string",
    "details": null,
    "traceId": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}