RathRath Finance
API Reference

Submit and wait for a transaction

Submits a transaction and waits for its hash, terminal status, or the configured timeout.

POST
/api/submit-tx-sync
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

application/json

application/json

application/json

curl -X POST "https://tachyon.rath.fi/api/submit-tx-sync" \  -H "Content-Type: application/json" \  -d '{    "tx": {      "to": "",      "callData": "",      "chainId": 0    }  }'
{
  "success": true,
  "data": {
    "id": "string",
    "to": "string",
    "callData": "string",
    "value": "string",
    "chainId": 0,
    "label": "string",
    "status": "NOT_PICKED_UP",
    "executionTxHash": "string",
    "timestamp": "2019-08-24T14:15:22Z",
    "costUSD": 0,
    "retries": 0,
    "isAccountCharged": true,
    "transactionType": "string"
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": true,
  "data": {
    "id": "string",
    "to": "string",
    "callData": "string",
    "value": "string",
    "chainId": 0,
    "label": "string",
    "status": "NOT_PICKED_UP",
    "executionTxHash": "string",
    "timestamp": "2019-08-24T14:15:22Z",
    "costUSD": 0,
    "retries": 0,
    "isAccountCharged": true,
    "transactionType": "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": "PAYMENT_REQUIRED",
    "message": "string",
    "category": "PAYMENT",
    "details": {
      "estimatedExecutionCostUsd": 0,
      "paymentAmountUsd": 0,
      "paymentAmount": "string",
      "asset": "USDC",
      "gasLimit": "string",
      "networks": [
        "string"
      ]
    }
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": true,
  "data": {
    "id": "string",
    "to": "string",
    "callData": "string",
    "value": "string",
    "chainId": 0,
    "label": "string",
    "status": "NOT_PICKED_UP",
    "executionTxHash": "string",
    "timestamp": "2019-08-24T14:15:22Z",
    "costUSD": 0,
    "retries": 0,
    "isAccountCharged": true,
    "transactionType": "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"
}