{
  "openapi": "3.1.0",
  "info": {
    "title": "FeeBolt API",
    "version": "2026-11-27",
    "summary": "Rent TRON energy for USDT transfers: quotes, orders paid on chain or from your balance, address tools and data.",
    "description": "Docs: https://feebolt.com/developers/. Most endpoints need no key; an API key (Authorization: Bearer fb_live_…) raises the rate limits and unlocks /api/me/*. Errors are JSON: {\"error\": \"<code>\", \"message\": \"<text>\"}.",
    "contact": {
      "url": "https://feebolt.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://feebolt.com"
    }
  ],
  "tags": [
    {
      "name": "Pricing",
      "description": "Live prices and quotes for any plan."
    },
    {
      "name": "Orders",
      "description": "Rent energy paid on chain, and follow the order."
    },
    {
      "name": "Your account",
      "description": "With an API key: balance, ledger, orders, and orders paid from the balance."
    },
    {
      "name": "Address tools",
      "description": "Check an address, a freeze, or what a transaction paid."
    },
    {
      "name": "Send USDT without TRX",
      "description": "The send tool: energy for a wallet with no TRX, the fee paid in USDT."
    },
    {
      "name": "Data and status",
      "description": "The Energy Price Index and service status."
    }
  ],
  "security": [
    {},
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/price": {
      "get": {
        "operationId": "price",
        "summary": "Current prices",
        "description": "What one USDT transfer costs right now, for 1 hour, 1 day and 3 days, plus the price index behind it.\n\nThe smallest plan of each duration, to a USDT holder and to an empty address, paid in TRX and in USDT, with the burn price to compare. Plus the price index behind it: the providers' live offers (unnamed), so your code can price any plan the same way the server does. Refreshed about every minute; `stale: true` means the sources aren't answering and you see the last known price.\n\n`maxTransfers` is the most one order of each duration can cover right now; a larger [quote](https://feebolt.com/developers/quote/) answers `422 no_source`.",
        "tags": [
          "Pricing"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "The current prices.",
            "content": {
              "application/json": {
                "example": {
                  "updatedAt": "2026-11-28T19:48:06.725Z",
                  "source": "live",
                  "stale": false,
                  "sourcesCount": 1,
                  "trxUsd": 0.299702,
                  "burnSunPerEnergy": 100,
                  "perTransfer": {
                    "1h": {
                      "holder": {
                        "trx": 1.82,
                        "usdt": 1.16,
                        "usd": 0.55,
                        "burnTrx": 6.43,
                        "savingPct": 72
                      },
                      "empty": {
                        "trx": 3.65,
                        "usdt": 1.7,
                        "usd": 1.09,
                        "burnTrx": 13.03,
                        "savingPct": 72
                      }
                    },
                    "1d": "…",
                    "3d": "…"
                  },
                  "hourlyCap": 100,
                  "maxTransfers": {
                    "1h": {
                      "holder": 2000,
                      "empty": 1200
                    },
                    "1d": "…",
                    "3d": "…"
                  },
                  "index": {
                    "at": 1795895286725,
                    "stale": false,
                    "offers": {
                      "1h": [
                        {
                          "maxEnergy": 5000000,
                          "minEnergy": 65000,
                          "reliability": 0.95,
                          "sunPerEnergy": 28
                        }
                      ],
                      "1d": [
                        "…"
                      ],
                      "3d": [
                        "…"
                      ]
                    },
                    "source": "live",
                    "trxUsd": 0.299702,
                    "version": 1,
                    "settings": {
                      "slippagePct": 0,
                      "overhead": {
                        "trxSweepSun": 0,
                        "sweepEnergy": 64285,
                        "usdtSweepBandwidthSun": 0,
                        "activationSun": 1100000,
                        "activationBandwidthSun": 270000,
                        "gasLeftSun": 600000,
                        "activationShare": 0.1
                      }
                    },
                    "sourcesCount": 1,
                    "burnSunPerEnergy": 100
                  },
                  "transferMethod": {
                    "holderTrx": 3,
                    "emptyTrx": 6,
                    "minTrx": 3,
                    "maxTrx": 300,
                    "holderEnergy": 65000,
                    "emptyEnergy": 131000,
                    "hours": 1,
                    "address": "TAHeHbbegdbRdPUCaz3m4JPKPYPFeeBo1t"
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/price/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 30,
            "refillPerSecond": 0.5
          },
          "perKey": {
            "burst": 150,
            "refillPerSecond": 2.5
          }
        }
      }
    },
    "/api/quote": {
      "post": {
        "operationId": "quote",
        "summary": "Get a quote",
        "description": "Prices one plan (or every fixed plan) from the live price index, valid for the payment window.\n\nPrices one plan from the live price index (what the sources charge now), the live burn price and TRX rate; `pricing.index` says when that index was taken and from how many sources. Paying in USDT costs more than in TRX (`priceUsdt`): the deposit address must be activated and swept.\n\nLeave out the plan to get `{\"quotes\": [...]}` for `1tx`, `10tx`, `50tx`, `100tx`, minus any no source can fill right now. A plan no source can fill answers `422 no_source`. A quote is valid until `expiresAt`, 15 minutes by default.",
        "tags": [
          "Pricing"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "packageId": {
                    "type": "string",
                    "description": "A plan id: `1tx`, `7tx-1d`, `12tx-3d`… See [plans](/developers/plans/).",
                    "pattern": "^[0-9]+tx(-(1h|1d|3d))?$"
                  },
                  "transfers": {
                    "type": "integer",
                    "description": "Instead of `packageId`: 1 to 2,000. Send with `duration`.",
                    "minimum": 1,
                    "maximum": 2000
                  },
                  "duration": {
                    "type": "string",
                    "description": "How long the energy stays. `3d` needs 3 transfers or more.",
                    "enum": [
                      "1h",
                      "1d",
                      "3d"
                    ]
                  },
                  "recipient": {
                    "type": "string",
                    "description": "Whether the USDT receiver already holds USDT: `holder` sizes the energy at 64,285 per transfer, `empty` at 130,285.",
                    "enum": [
                      "holder",
                      "empty"
                    ],
                    "default": "holder"
                  },
                  "recipientAddress": {
                    "type": "string",
                    "description": "The USDT receiver. We read the chain to size the energy; overrides `recipient`."
                  }
                }
              },
              "example": {
                "packageId": "1tx",
                "recipient": "holder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "`{quote}` for one plan, or `{quotes}` for all fixed plans.",
            "content": {
              "application/json": {
                "example": {
                  "quote": {
                    "packageId": "1tx",
                    "transfers": 1,
                    "hours": 1,
                    "energyPerTransfer": 64285,
                    "energy": 64285,
                    "burnSunPerEnergy": 100,
                    "priceSun": 1820000,
                    "priceTrx": 1.82,
                    "priceUsd": 0.55,
                    "priceUsdtMicro": 1160000,
                    "priceUsdt": 1.16,
                    "burnSun": 6428500,
                    "burnTrx": 6.43,
                    "burnUsd": 1.93,
                    "savingSun": 4608500,
                    "savingTrx": 4.61,
                    "savingUsd": 1.38,
                    "savingPct": 72,
                    "perTransferTrx": 1.82,
                    "activationSun": 0,
                    "trxUsd": 0.299702,
                    "pricing": {
                      "version": 2,
                      "index": {
                        "at": 1795895286725,
                        "source": "snapshot",
                        "stale": true,
                        "sourcesCount": 1
                      }
                    },
                    "quotedAt": 1795895286725,
                    "expiresAt": 1795896186725
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_package`: Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d.\n\n`bad_recipient`: recipient isn't holder or empty, or recipientAddress isn't a TRON address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`no_source`: No energy source can fill this plan right now. Try fewer transfers or later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/quote/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 60,
            "refillPerSecond": 1
          },
          "perKey": {
            "burst": 300,
            "refillPerSecond": 5
          }
        }
      }
    },
    "/api/orders": {
      "post": {
        "operationId": "createOrder",
        "summary": "Create an order",
        "description": "Prices the plan, screens the address and returns a deposit address of its own and the exact amount to pay.\n\nReturns a deposit address of its own, the exact `amount`, a `tron:` URI for a QR code and when the payment window closes (`expiresAt`). Pay that amount in TRX or USDT from any wallet, then [poll the order](https://feebolt.com/developers/retrieve-order/) until `stage` is `ready`.\n\nWith an API key the order is linked to your account (history, loyalty discount) and your per-key limits apply; it is still paid on chain. To pay from your balance instead, use [Create an order paid from the balance](https://feebolt.com/developers/create-balance-order/).\n\n**Activation only.** Send `kind: \"activation\"` and `addresses` (1 to 20 TRON addresses that aren't activated yet) with `currency` and `clientKey`, and no plan. The order activates each address and delegates no energy; `activation.items` shows each address's status. An address that is already activated when its turn comes is skipped and its share refunded.\n\n> **Pay the exact amount.** An overpayment of 1 TRX or 2 USDT or more is refunded; an underpayment can be topped up until `expiresAt`, then it is refunded. A payment in the other currency, or after the window, is refunded too.",
        "tags": [
          "Orders"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "The wallet that sends the USDT and receives the energy. Activated, not a contract."
                  },
                  "packageId": {
                    "type": "string",
                    "description": "A plan id, or `transfers` + `duration` as in the quote. One of the two is required.",
                    "pattern": "^[0-9]+tx(-(1h|1d|3d))?$"
                  },
                  "transfers": {
                    "type": "integer",
                    "description": "Instead of `packageId`: 1 to 2,000. Send with `duration`.",
                    "minimum": 1,
                    "maximum": 2000
                  },
                  "duration": {
                    "type": "string",
                    "description": "How long the energy stays. `3d` needs 3 transfers or more.",
                    "enum": [
                      "1h",
                      "1d",
                      "3d"
                    ]
                  },
                  "recipient": {
                    "type": "string",
                    "description": "Whether the USDT receiver already holds USDT: `holder` sizes the energy at 64,285 per transfer, `empty` at 130,285.",
                    "enum": [
                      "holder",
                      "empty"
                    ],
                    "default": "holder"
                  },
                  "recipientAddress": {
                    "type": "string",
                    "description": "The USDT receiver. We read the chain to size the energy; overrides `recipient`."
                  },
                  "currency": {
                    "type": "string",
                    "description": "What you pay in.",
                    "enum": [
                      "TRX",
                      "USDT"
                    ],
                    "default": "TRX"
                  },
                  "activate": {
                    "type": "boolean",
                    "description": "Add activation for an address that isn't activated yet (it is activated after payment, before delivery)."
                  },
                  "clientKey": {
                    "type": "string",
                    "description": "Idempotency key: 8 to 64 letters, digits, `-` or `_`. The same key returns the same order, so a retry after a timeout never creates a second one.",
                    "pattern": "^[A-Za-z0-9_-]{8,64}$"
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                "packageId": "1tx",
                "currency": "TRX",
                "clientKey": "payout-48213"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The order, waiting for payment.",
            "content": {
              "application/json": {
                "example": {
                  "id": "ord_3k9x2m7q1v8b4n6c0z5w",
                  "status": "awaiting_payment",
                  "stage": "waiting",
                  "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "packageId": "1tx",
                  "energy": 64285,
                  "durationSec": 3600,
                  "currency": "TRX",
                  "amount": "1.82",
                  "payTo": "TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK",
                  "uri": "tron:TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK?amount=1.82",
                  "quote": {
                    "packageId": "1tx",
                    "priceTrx": 1.82,
                    "…": "as in the quote"
                  },
                  "createdAt": 1795895286725,
                  "expiresAt": 1795896186725,
                  "paidAt": null,
                  "deliveredAt": null,
                  "failReason": null,
                  "payments": [],
                  "delivery": null,
                  "refunds": []
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_address`: address is missing, not a TRON address, or fails its checksum.\n\n`bad_package`: Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d.\n\n`bad_currency`: currency is neither TRX nor USDT.\n\n`bad_recipient`: recipient isn't holder or empty, or recipientAddress isn't a TRON address.\n\n`not_activated`: The address has never received TRX. Activate it first, or add `activate: true`.\n\n`contract_address`: The address is a smart contract; energy goes to wallets only.\n\n`bad_client_key`: clientKey isn't 8 to 64 letters, digits, - or _.\n\n`bad_kind`: kind is neither energy nor activation.\n\n`too_many_addresses`: More than 20 addresses in one activation order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`screening`: The address is on Tether's USDT blacklist or the OFAC sanctions list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`already_activated`: An address in an activation order is already activated. Remove it and order again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`no_source`: No energy source can fill this plan right now. Try fewer transfers or later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`busy`: Too many orders wait for payment right now. Retry in a minute.\n\n`payments_off`: Ordering is paused. Quotes and checks still work.\n\n`activation_unavailable`: Activation can't be added right now. Send the address any amount of TRX first.\n\n`activation_busy`: Activation is paused for now (the daily limit is reached). Try later, or send the address any amount of TRX.\n\n`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/create-order/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 10,
            "refillPerSecond": 0.016666666666666666
          },
          "perKey": {
            "burst": 50,
            "refillPerSecond": 0.08333333333333333
          }
        }
      }
    },
    "/api/orders/{id}": {
      "get": {
        "operationId": "retrieveOrder",
        "summary": "Retrieve an order",
        "description": "The order in the same shape as when it was created; each call while it's open also checks the chain.\n\nWhile an order is open, each call also checks the chain for its payment and delivery (at most once every 3 seconds per order), so polling every 2 to 3 seconds sees progress within seconds. Orders nobody polls are processed by a background job.\n\nWatch `stage` for progress and `status` for detail, both in the [order lifecycle](https://feebolt.com/developers/order-lifecycle/). `payments` lists every transfer into the deposit address with how it was matched (`kind`: `counted`, `extra` or `foreign`), and `refunds` every amount sent back.",
        "tags": [
          "Orders"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The order id: `ord_` and 8 to 32 lowercase letters or digits.",
            "schema": {
              "type": "string",
              "description": "The order id: `ord_` and 8 to 32 lowercase letters or digits.",
              "pattern": "^ord_[0-9a-z]{8,32}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "content": {
              "application/json": {
                "example": {
                  "id": "ord_3k9x2m7q1v8b4n6c0z5w",
                  "status": "delivered",
                  "stage": "ready",
                  "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "packageId": "1tx",
                  "energy": 64285,
                  "durationSec": 3600,
                  "currency": "TRX",
                  "amount": "1.82",
                  "payTo": "TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK",
                  "uri": "tron:TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK?amount=1.82",
                  "quote": {
                    "packageId": "1tx",
                    "priceTrx": 1.82,
                    "…": "as in the quote"
                  },
                  "createdAt": 1795895286725,
                  "expiresAt": 1795896186725,
                  "paidAt": 1795895327725,
                  "deliveredAt": 1795895332725,
                  "failReason": null,
                  "payments": [
                    {
                      "txId": "9c1e…a47f",
                      "currency": "TRX",
                      "amount": "1.82",
                      "from": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                      "at": 1795895325725,
                      "kind": "counted"
                    }
                  ],
                  "delivery": {
                    "status": "delivered",
                    "txId": "5b02…e19c",
                    "energy": 64285
                  },
                  "refunds": []
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order (or transaction) with that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/retrieve-order/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 120,
            "refillPerSecond": 1
          },
          "perKey": {
            "burst": 600,
            "refillPerSecond": 5
          }
        }
      }
    },
    "/api/me": {
      "get": {
        "operationId": "me",
        "summary": "Who am I",
        "description": "The account and key a request is made with. The quickest check that a key works.\n\nAny key works, whatever its scopes. The key is shown masked; the secret is never returned.",
        "tags": [
          "Your account"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "The key's account and the key.",
            "content": {
              "application/json": {
                "example": {
                  "account": {
                    "id": "acc_7mq2x9k4w8n3p5r6",
                    "createdAt": 1793303286725
                  },
                  "key": {
                    "id": "key_4n8q2w6x9k3m7p5r",
                    "name": "Payout server",
                    "masked": "fb_live_Xb7q…9fKz",
                    "scopes": [
                      "read",
                      "order"
                    ],
                    "createdAt": 1795808886725
                  }
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key`: This endpoint needs an API key: `Authorization: Bearer fb_live_…`.\n\n`invalid_api_key`: The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.\n\n`api_key_revoked`: The key was revoked in Settings › API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`account_closed`: The key's account is closed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/me/"
        },
        "x-feebolt-access": "key",
        "x-feebolt-rate-limit": {
          "perKey": {
            "burst": 120,
            "refillPerSecond": 2
          }
        }
      }
    },
    "/api/me/balance": {
      "get": {
        "operationId": "getBalance",
        "summary": "Get the balance",
        "description": "Your TRX and USDT balance, and the loyalty tier whose discount your orders get.\n\nAmounts come twice: as decimal strings for display (`balances`) and as integers in the smallest unit (`units`: sun for TRX, micro-USDT for USDT). Do arithmetic on `units`.",
        "tags": [
          "Your account"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "The balance.",
            "content": {
              "application/json": {
                "example": {
                  "balances": {
                    "TRX": "48.25",
                    "USDT": "0"
                  },
                  "units": {
                    "TRX": "48250000",
                    "USDT": "0"
                  },
                  "tier": {
                    "id": "standard",
                    "name": "Standard",
                    "discountPct": 0
                  },
                  "transfers30d": 12
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key`: This endpoint needs an API key: `Authorization: Bearer fb_live_…`.\n\n`invalid_api_key`: The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.\n\n`api_key_revoked`: The key was revoked in Settings › API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`account_closed`: The key's account is closed.\n\n`insufficient_scope`: The key lacks the scope this endpoint needs (`read` or `order`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/get-balance/"
        },
        "x-feebolt-access": "key",
        "x-feebolt-scope": "read",
        "x-feebolt-rate-limit": {
          "perKey": {
            "burst": 120,
            "refillPerSecond": 2
          }
        }
      }
    },
    "/api/me/ledger": {
      "get": {
        "operationId": "listLedger",
        "summary": "List ledger entries",
        "description": "Every movement of your balance, newest first: deposits, order debits, refunds, referral rewards, withdrawals.\n\nAmounts are signed from your side: a debit is negative. `ref` is the ledger's idempotency key (`spend:ord_…` for an order paid from the balance, `refund:ord_…` for its refund), unique for ever: the same money never moves twice.\n\n| kind | What it is |\n| --- | --- |\n| `deposit` | A transfer into your deposit address, credited after confirmation. |\n| `spend` | An order (or a send fee) paid from the balance. |\n| `refund` | A failed or partly filled order, back to the balance. |\n| `referral` | A referral reward. |\n| `withdrawal`, `withdrawal_fee` | A withdrawal and its network fee. |\n| `withdrawal_cancel`, `withdrawal_fee_refund` | A cancelled withdrawal, back to the balance. |\n| `adjustment` | A manual correction by support. |",
        "tags": [
          "Your account"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many, newest first: 1 to 100 (default 50).",
            "schema": {
              "type": "integer",
              "description": "How many, newest first: 1 to 100 (default 50).",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ledger entries, newest first.",
            "content": {
              "application/json": {
                "example": {
                  "entries": [
                    {
                      "id": "1042",
                      "ref": "spend:ord_3k9x2m7q1v8b4n6c0z5w",
                      "kind": "spend",
                      "currency": "TRX",
                      "amount": "-1.82",
                      "units": "-1820000",
                      "orderId": "ord_3k9x2m7q1v8b4n6c0z5w",
                      "withdrawalId": null,
                      "createdAt": 1795895286725
                    },
                    {
                      "id": "1037",
                      "ref": "dep:7f3a…c21d:0",
                      "kind": "deposit",
                      "currency": "TRX",
                      "amount": "50",
                      "units": "50000000",
                      "orderId": null,
                      "withdrawalId": null,
                      "createdAt": 1795891686725
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`bad_limit`: limit isn't a whole number in range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key`: This endpoint needs an API key: `Authorization: Bearer fb_live_…`.\n\n`invalid_api_key`: The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.\n\n`api_key_revoked`: The key was revoked in Settings › API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`account_closed`: The key's account is closed.\n\n`insufficient_scope`: The key lacks the scope this endpoint needs (`read` or `order`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/list-ledger/"
        },
        "x-feebolt-access": "key",
        "x-feebolt-scope": "read",
        "x-feebolt-rate-limit": {
          "perKey": {
            "burst": 120,
            "refillPerSecond": 2
          }
        }
      }
    },
    "/api/me/orders": {
      "get": {
        "operationId": "listOrders",
        "summary": "List your orders",
        "description": "Your orders from the app, the Telegram bot and the API, newest first, with status and Tronscan links.\n\n`funding` says how each was paid: `balance`, `deposit` (on chain) or `credit` (a free transfer). For the full order, [retrieve it](https://feebolt.com/developers/retrieve-order/) by id.",
        "tags": [
          "Your account"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many, newest first: 1 to 50 (default 50).",
            "schema": {
              "type": "integer",
              "description": "How many, newest first: 1 to 50 (default 50).",
              "minimum": 1,
              "maximum": 50,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Orders, newest first.",
            "content": {
              "application/json": {
                "example": {
                  "orders": [
                    {
                      "id": "ord_3k9x2m7q1v8b4n6c0z5w",
                      "kind": "rent",
                      "funding": "balance",
                      "source": "site",
                      "currency": "TRX",
                      "amount": "1.82",
                      "transfers": 1,
                      "createdAt": 1795895286725,
                      "settled": "delivered",
                      "status": "delivered",
                      "stage": "ready",
                      "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                      "energy": 64285,
                      "durationSec": 3600,
                      "payTo": null,
                      "expiresAt": 1795896186725,
                      "txs": [
                        {
                          "txId": "5b02c0f8e9d1a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091ae19c",
                          "url": "https://tronscan.org/#/transaction/5b02c0f8e9d1a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091ae19c"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`bad_limit`: limit isn't a whole number in range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key`: This endpoint needs an API key: `Authorization: Bearer fb_live_…`.\n\n`invalid_api_key`: The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.\n\n`api_key_revoked`: The key was revoked in Settings › API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`account_closed`: The key's account is closed.\n\n`insufficient_scope`: The key lacks the scope this endpoint needs (`read` or `order`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/list-orders/"
        },
        "x-feebolt-access": "key",
        "x-feebolt-scope": "read",
        "x-feebolt-rate-limit": {
          "perKey": {
            "burst": 120,
            "refillPerSecond": 2
          }
        }
      },
      "post": {
        "operationId": "createBalanceOrder",
        "summary": "Create an order paid from the balance",
        "description": "Rents energy and pays from your FeeBolt balance at once: no transfer, no payment window. Idempotent.\n\nSame body as [Create an order](https://feebolt.com/developers/create-order/), with your loyalty discount. The price is debited from your balance in one ledger entry and the order starts `paid`; delivery is already under way when this answers. If the balance is short you get `402 insufficient_balance` and nothing is charged.\n\nIf no provider can deliver, the full amount goes back to your balance (a `refund` entry in the [ledger](https://feebolt.com/developers/list-ledger/)), automatically.\n\n> **Idempotency-Key is required.** Make one per order you mean to place (a payout id works). Retrying with the same key returns the same order with `200` and `Idempotent-Replayed: true`, never a second charge. The same key with a different address, plan or currency is refused with `409 idempotency_conflict`.",
        "tags": [
          "Your account"
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "8 to 64 letters, digits, `-` or `_`, unique per order you mean to make. A retry with the same key returns the same order (`200`, `Idempotent-Replayed: true`) and never pays twice. `clientKey` in the body works too.",
            "schema": {
              "type": "string",
              "description": "8 to 64 letters, digits, `-` or `_`, unique per order you mean to make. A retry with the same key returns the same order (`200`, `Idempotent-Replayed: true`) and never pays twice. `clientKey` in the body works too.",
              "pattern": "^[A-Za-z0-9_-]{8,64}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "The wallet that sends the USDT and receives the energy. Activated, not a contract."
                  },
                  "packageId": {
                    "type": "string",
                    "description": "A plan id, or `transfers` + `duration` as in the quote. One of the two is required.",
                    "pattern": "^[0-9]+tx(-(1h|1d|3d))?$"
                  },
                  "transfers": {
                    "type": "integer",
                    "description": "Instead of `packageId`: 1 to 2,000. Send with `duration`.",
                    "minimum": 1,
                    "maximum": 2000
                  },
                  "duration": {
                    "type": "string",
                    "description": "How long the energy stays. `3d` needs 3 transfers or more.",
                    "enum": [
                      "1h",
                      "1d",
                      "3d"
                    ]
                  },
                  "recipient": {
                    "type": "string",
                    "description": "Whether the USDT receiver already holds USDT: `holder` sizes the energy at 64,285 per transfer, `empty` at 130,285.",
                    "enum": [
                      "holder",
                      "empty"
                    ],
                    "default": "holder"
                  },
                  "recipientAddress": {
                    "type": "string",
                    "description": "The USDT receiver. We read the chain to size the energy; overrides `recipient`."
                  },
                  "currency": {
                    "type": "string",
                    "description": "What you pay in.",
                    "enum": [
                      "TRX",
                      "USDT"
                    ],
                    "default": "TRX"
                  },
                  "activate": {
                    "type": "boolean",
                    "description": "Add activation for an address that isn't activated yet (it is activated after payment, before delivery)."
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                "packageId": "1tx",
                "currency": "TRX"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A replay: the order this Idempotency-Key already made (header `Idempotent-Replayed: true`)."
          },
          "201": {
            "description": "The order, paid and being delivered.",
            "content": {
              "application/json": {
                "example": {
                  "id": "ord_3k9x2m7q1v8b4n6c0z5w",
                  "status": "delegating",
                  "stage": "seen",
                  "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "packageId": "1tx",
                  "energy": 64285,
                  "durationSec": 3600,
                  "currency": "TRX",
                  "amount": "1.82",
                  "payTo": "TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK",
                  "uri": "tron:TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK?amount=1.82",
                  "quote": {
                    "packageId": "1tx",
                    "priceTrx": 1.82,
                    "…": "as in the quote"
                  },
                  "createdAt": 1795895286725,
                  "expiresAt": 1795896186725,
                  "paidAt": 1795895287725,
                  "deliveredAt": null,
                  "failReason": null,
                  "payments": [],
                  "delivery": null,
                  "refunds": []
                }
              }
            }
          },
          "400": {
            "description": "`idempotency_key_required`: An order paid from the balance needs an Idempotency-Key header.\n\n`bad_idempotency_key`: Idempotency-Key isn't 8 to 64 letters, digits, - or _.\n\n`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_address`: address is missing, not a TRON address, or fails its checksum.\n\n`bad_package`: Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d.\n\n`bad_currency`: currency is neither TRX nor USDT.\n\n`bad_recipient`: recipient isn't holder or empty, or recipientAddress isn't a TRON address.\n\n`not_activated`: The address has never received TRX. Activate it first, or add `activate: true`.\n\n`contract_address`: The address is a smart contract; energy goes to wallets only.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "`missing_api_key`: This endpoint needs an API key: `Authorization: Bearer fb_live_…`.\n\n`invalid_api_key`: The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.\n\n`api_key_revoked`: The key was revoked in Settings › API keys.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "`insufficient_balance`: The balance doesn't cover the order. Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`screening`: The address is on Tether's USDT blacklist or the OFAC sanctions list.\n\n`account_closed`: The key's account is closed.\n\n`insufficient_scope`: The key lacks the scope this endpoint needs (`read` or `order`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`idempotency_conflict`: This Idempotency-Key was used for a different order, or the header and clientKey differ.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "`no_source`: No energy source can fill this plan right now. Try fewer transfers or later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`busy`: Too many orders wait for payment right now. Retry in a minute.\n\n`payments_off`: Ordering is paused. Quotes and checks still work.\n\n`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/create-balance-order/"
        },
        "x-feebolt-access": "key",
        "x-feebolt-scope": "order",
        "x-feebolt-rate-limit": {
          "perKey": {
            "burst": 30,
            "refillPerSecond": 0.5
          }
        }
      }
    },
    "/api/check-address": {
      "post": {
        "operationId": "checkAddress",
        "summary": "Check an address",
        "description": "An address as the chain sees it now: activation, balances, energy and bandwidth, and screening.\n\nReads an address live from the chain: activation, TRX and USDT balance, the energy and bandwidth on it now, wallet or contract, and screening against Tether's USDT blacklist and the OFAC list. `canServe` tells you whether an order for it would go through.",
        "tags": [
          "Address tools"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "A TRON address, starting with T."
                  }
                },
                "required": [
                  "address"
                ]
              },
              "example": {
                "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The address now.",
            "content": {
              "application/json": {
                "example": {
                  "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "activated": true,
                  "holdsUsdt": true,
                  "usdtBalance": 8963.77,
                  "trxBalance": 12.4,
                  "energyNow": 0,
                  "bandwidthNow": 600,
                  "freeBandwidthNow": 600,
                  "isContract": false,
                  "blacklisted": false,
                  "canServe": true,
                  "screening": {
                    "ok": true,
                    "complete": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_address`: address is missing, not a TRON address, or fails its checksum.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/check-address/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 20,
            "refillPerSecond": 0.2
          },
          "perKey": {
            "burst": 100,
            "refillPerSecond": 1
          }
        }
      }
    },
    "/api/freeze-check": {
      "post": {
        "operationId": "freezeCheck",
        "summary": "Check a USDT freeze",
        "description": "Whether one or two addresses are on Tether's USDT blacklist or the OFAC sanctions list.\n\nEach check is `listed`, `clear` or `unknown` (the list couldn't be read just now; try again). Read-only and free.",
        "tags": [
          "Address tools"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "addresses": {
                    "type": "array",
                    "description": "One or two TRON addresses. `address` (one string) works too.",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "addresses"
                ]
              },
              "example": {
                "addresses": [
                  "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "One result per address.",
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                      "usdtFrozen": "clear",
                      "sanctions": "clear",
                      "aml": null,
                      "checkedAt": 1795895286725
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_address`: address is missing, not a TRON address, or fails its checksum.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/freeze-check/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 20,
            "refillPerSecond": 0.2
          },
          "perKey": {
            "burst": 100,
            "refillPerSecond": 1
          }
        }
      }
    },
    "/api/tx-fee": {
      "get": {
        "operationId": "txFee",
        "summary": "What a transaction paid",
        "description": "What one TRON transaction paid: energy (staked, rented, burned), bandwidth, TRX burned and the USD value.\n\nThe USD value uses the TRX price on the transaction's day when we have it (`priceAt: \"time\"`), else today's (`\"current\"`). `pending: true` means the transaction isn't in a block yet. Confirmed answers are cached at the edge for a day.",
        "tags": [
          "Address tools"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "tx",
            "in": "query",
            "required": true,
            "description": "The transaction hash: 64 characters, 0-9 and a-f.",
            "schema": {
              "type": "string",
              "description": "The transaction hash: 64 characters, 0-9 and a-f.",
              "pattern": "^[0-9a-f]{64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fee breakdown.",
            "content": {
              "application/json": {
                "example": {
                  "txid": "5b02c0f8e9d1a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091ae19c",
                  "found": true,
                  "block": 78412093,
                  "time": 1795895286725,
                  "type": "TriggerSmartContract",
                  "result": "SUCCESS",
                  "ok": true,
                  "from": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "to": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
                  "usdt": {
                    "amount": 250,
                    "to": "TJRyWwFs9wTFGZg3JbrVriFbNfCug5tDeC"
                  },
                  "trxAmount": null,
                  "feeLimitTrx": 100,
                  "energy": {
                    "total": 64285,
                    "fromStake": 64285,
                    "fromDeployer": 0,
                    "burned": 0,
                    "penalty": 49635
                  },
                  "bandwidth": {
                    "bytes": 345,
                    "free": 345,
                    "burned": 0
                  },
                  "feeTrx": 0,
                  "energyFeeTrx": 0,
                  "bandwidthFeeTrx": 0,
                  "otherFeeTrx": 0,
                  "trxUsd": 0.299702,
                  "priceAt": "time",
                  "priceSource": "coingecko",
                  "pending": false
                }
              }
            }
          },
          "400": {
            "description": "`bad_txid`: tx isn't 64 hex characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order (or transaction) with that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/tx-fee/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 20,
            "refillPerSecond": 0.2
          },
          "perKey": {
            "burst": 100,
            "refillPerSecond": 1
          }
        }
      }
    },
    "/api/send/quote": {
      "post": {
        "operationId": "sendQuote",
        "summary": "Quote a send",
        "description": "What sending USDT costs from a wallet with no TRX: energy, bandwidth and the fee in USDT.\n\nFor a single send and for 3- and 5-send sessions (`options`): the energy for the fee transfer and the sends, bandwidth when the free allowance doesn't cover it, the fee in USDT, the saving against GasFree and against burning TRX, and the sender's balances. Reads the chain live.",
        "tags": [
          "Send USDT without TRX"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sender": {
                    "type": "string",
                    "description": "The wallet that holds the USDT (and no TRX)."
                  },
                  "recipient": {
                    "type": "string",
                    "description": "Where the USDT goes."
                  },
                  "amount": {
                    "type": "number",
                    "description": "USDT to send."
                  },
                  "bundle": {
                    "type": "integer",
                    "description": "Sends in the session.",
                    "enum": [
                      1,
                      3,
                      5
                    ],
                    "default": 1
                  }
                },
                "required": [
                  "sender",
                  "recipient"
                ]
              },
              "example": {
                "sender": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                "recipient": "TJRyWwFs9wTFGZg3JbrVriFbNfCug5tDeC",
                "amount": 250
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The quote and the session options.",
            "content": {
              "application/json": {
                "example": {
                  "quote": {
                    "amountMicro": "250000000",
                    "bundle": 1,
                    "recipientHoldsUsdt": true,
                    "energy": 128570,
                    "bandwidth": 0,
                    "feeMicro": "1650000",
                    "feeUsdt": 1.65,
                    "gasFreeUsdt": 1.5,
                    "savingVsBurnUsdt": 2.3,
                    "expiresAt": 1795895586725,
                    "…": "…"
                  },
                  "options": [
                    "…"
                  ],
                  "sender": {
                    "usdt": 980.5,
                    "trx": 0,
                    "…": "…"
                  }
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_sender`: The sender isn't a valid TRON address, or can't send this.\n\n`bad_recipient`: recipient isn't holder or empty, or recipientAddress isn't a TRON address.\n\n`bad_amount`: The amount is missing, too small, or more than the sender holds.\n\n`bad_bundle`: bundle isn't 1, 3 or 5.\n\n`same_address`: Sender and recipient are the same.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/send-quote/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 30,
            "refillPerSecond": 0.25
          },
          "perKey": {
            "burst": 150,
            "refillPerSecond": 1.25
          }
        }
      }
    },
    "/api/send/prepare": {
      "post": {
        "operationId": "sendPrepare",
        "summary": "Start a send",
        "description": "Delegates the energy for the fee transfer and the first send to the sender, then returns the order.\n\nEnergy (and bandwidth if needed) for the fee transfer and the first send is delegated to the sender before this answers, or the order comes back `delegating` (the provider is still working) or `failed`. The sender's wallet then signs the fee transfer to `feeAddress` and the send. [Follow it](https://feebolt.com/developers/send-status/) until it completes.\n\n> This endpoint buys energy before you pay, so it is limited per IP and per sender address, and the sender must hold the amount plus the fee in USDT.",
        "tags": [
          "Send USDT without TRX"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sender": {
                    "type": "string",
                    "description": "The wallet that holds the USDT."
                  },
                  "recipient": {
                    "type": "string",
                    "description": "Where the USDT goes."
                  },
                  "amount": {
                    "type": "number",
                    "description": "USDT to send."
                  },
                  "bundle": {
                    "type": "integer",
                    "description": "Sends in the session.",
                    "enum": [
                      1,
                      3,
                      5
                    ],
                    "default": 1
                  },
                  "expectedFee": {
                    "type": "number",
                    "description": "The fee you showed (USDT). If the price rose since, you get `409 price_changed` instead of a dearer order."
                  }
                },
                "required": [
                  "sender",
                  "recipient",
                  "amount"
                ]
              },
              "example": {
                "sender": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                "recipient": "TJRyWwFs9wTFGZg3JbrVriFbNfCug5tDeC",
                "amount": 250,
                "bundle": 1
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The send order.",
            "content": {
              "application/json": {
                "example": {
                  "id": "snd_8h2k4m6p1q3r5t7v9x0z",
                  "status": "ready",
                  "bundle": 1,
                  "sender": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
                  "recipient": "TJRyWwFs9wTFGZg3JbrVriFbNfCug5tDeC",
                  "amount": 250,
                  "fee": 1.65,
                  "feeAddress": "TSeJkUh4Qv67VNFwY8LaAxERygNdy6NQZK",
                  "energy": 128570,
                  "expiresAt": 1795895886725,
                  "delegation": {
                    "state": "done",
                    "energyTx": "5b02c0f8e9d1a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091ae19c",
                    "…": "…"
                  },
                  "feeTx": {
                    "state": "none"
                  },
                  "sends": [],
                  "…": "…"
                }
              }
            }
          },
          "400": {
            "description": "`bad_request`: The body isn't a JSON object, or is over 4 KB.\n\n`bad_sender`: The sender isn't a valid TRON address, or can't send this.\n\n`bad_recipient`: recipient isn't holder or empty, or recipientAddress isn't a TRON address.\n\n`bad_amount`: The amount is missing, too small, or more than the sender holds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "`blocked`: This sender can't use the send tool right now (too many unpaid sends).\n\n`sanctioned`: The sender or recipient is on a sanctions or blacklist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "`price_changed`: The send fee rose since your quote (expectedFee). Quote again.\n\n`too_soon`: The sender already has a send open. Finish or wait for it.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`send_off`: The send tool is paused.\n\n`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/send-prepare/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 3,
            "refillPerSecond": 0.0016666666666666668
          },
          "perKey": {
            "burst": 15,
            "refillPerSecond": 0.008333333333333333
          }
        }
      }
    },
    "/api/send/status/{id}": {
      "get": {
        "operationId": "sendStatus",
        "summary": "Follow a send",
        "description": "The send order after one watcher step: delivery, the fee, the session's top-up, then the sends.\n\nPoll every 2 seconds while it's open. Pass the transaction ids your wallet broadcast (`fee`, `transfer`) to see them as `submitted` sooner; we confirm them from the chain either way.",
        "tags": [
          "Send USDT without TRX"
        ],
        "security": [
          {},
          {
            "apiKey": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The send id, `snd_…`.",
            "schema": {
              "type": "string",
              "description": "The send id, `snd_…`.",
              "pattern": "^snd_[0-9a-z]{8,32}$"
            }
          },
          {
            "name": "fee",
            "in": "query",
            "required": false,
            "description": "The fee transfer's tx id, once broadcast.",
            "schema": {
              "type": "string",
              "description": "The fee transfer's tx id, once broadcast."
            }
          },
          {
            "name": "transfer",
            "in": "query",
            "required": false,
            "description": "The send's tx id, once broadcast.",
            "schema": {
              "type": "string",
              "description": "The send's tx id, once broadcast."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The send order.",
            "content": {
              "application/json": {
                "example": {
                  "id": "snd_8h2k4m6p1q3r5t7v9x0z",
                  "status": "completed",
                  "feeTx": {
                    "state": "confirmed",
                    "tx": "…"
                  },
                  "transferTx": {
                    "state": "confirmed",
                    "tx": "…"
                  },
                  "…": "as in Start a send"
                }
              }
            }
          },
          "404": {
            "description": "`not_found`: No order (or transaction) with that id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/send-status/"
        },
        "x-feebolt-access": "optional",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 180,
            "refillPerSecond": 1
          },
          "perKey": {
            "burst": 900,
            "refillPerSecond": 5
          }
        }
      }
    },
    "/api/fee-today": {
      "get": {
        "operationId": "feeToday",
        "summary": "USDT fee today",
        "description": "What one USDT transfer costs right now: burning TRX, our price, and a market reference, with today's hourly samples.\n\nHourly samples are in UTC. `marketSunPerEnergy` is a dated static snapshot of public retail prices, not a live feed; `marketSource` says so.",
        "tags": [
          "Data and status"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Today's fee.",
            "content": {
              "application/json": {
                "example": {
                  "updatedAt": "2026-11-28T19:48:06.725Z",
                  "energy": {
                    "holder": 64285,
                    "empty": 130285
                  },
                  "burnSunPerEnergy": 100,
                  "trxUsd": 0.299702,
                  "holder": {
                    "burn": {
                      "trx": 6.43,
                      "usd": 1.93
                    },
                    "ours": {
                      "trx": 1.82,
                      "usd": 0.55
                    }
                  },
                  "empty": {
                    "burn": {
                      "trx": 13.03,
                      "usd": 3.91
                    },
                    "ours": {
                      "trx": 3.65,
                      "usd": 1.09
                    }
                  },
                  "gasFreeUsdt": 1.5,
                  "hourly": [
                    {
                      "hour": 9,
                      "at": "2026-11-28T09:00:00.000Z",
                      "burn": 6.43,
                      "ours": 1.82,
                      "market": 3.6
                    }
                  ],
                  "…": "…"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "`upstream`: The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/fee-today/"
        },
        "x-feebolt-access": "public",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 30,
            "refillPerSecond": 0.5
          }
        }
      }
    },
    "/api/data/energy-index": {
      "get": {
        "operationId": "energyIndex",
        "summary": "Energy Price Index",
        "description": "The FeeBolt Energy Price Index: the latest median and cheapest price per duration, every source's quote, and history.\n\nA snapshot every 10 minutes. History: 24 hours at 10-minute steps, 7 days hourly, 30 days every 6 hours. Free to cite with a link (CC BY 4.0). The same data as CSV: [Energy Price Index (CSV)](https://feebolt.com/developers/energy-index-csv/).",
        "tags": [
          "Data and status"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The index.",
            "content": {
              "application/json": {
                "example": {
                  "updatedAt": "2026-11-28T19:48:06.725Z",
                  "source": "live",
                  "latest": {
                    "1h": {
                      "median": 28,
                      "cheapest": 26,
                      "sources": 6
                    },
                    "1d": "…",
                    "3d": "…"
                  },
                  "quotes": [
                    "…"
                  ],
                  "history": {
                    "24h": [
                      "…"
                    ],
                    "7d": [
                      "…"
                    ],
                    "30d": [
                      "…"
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/energy-index/"
        },
        "x-feebolt-access": "public",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 60,
            "refillPerSecond": 1
          }
        }
      }
    },
    "/api/data/energy-index.csv": {
      "get": {
        "operationId": "energyIndexCsv",
        "summary": "Energy Price Index (CSV)",
        "description": "The latest quotes as CSV: one row per source and duration, the index in the header comments.\n\nFor spreadsheets and data tools. Same snapshot and caching as the JSON.",
        "tags": [
          "Data and status"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "CSV.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "# FeeBolt Energy Price Index …\nsource,duration,sun_per_energy,…\nsource-1,1h,26,…"
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/energy-index-csv/"
        },
        "x-feebolt-access": "public",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 60,
            "refillPerSecond": 1
          }
        }
      }
    },
    "/api/status": {
      "get": {
        "operationId": "status",
        "summary": "Service status",
        "description": "The overall state, each component with its state and check latency, and open and recent incidents.\n\nWhat [/status/](https://feebolt.com/status/) shows: the API, the chain connection, the price index, the energy supply and the order pipeline. States and latencies only.",
        "tags": [
          "Data and status"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The status.",
            "content": {
              "application/json": {
                "example": {
                  "state": "operational",
                  "components": [
                    {
                      "id": "api",
                      "state": "operational",
                      "latencyMs": 41
                    },
                    "…"
                  ],
                  "incidents": {
                    "open": [],
                    "recent": []
                  },
                  "since": "2026-10-29T19:48:06.725Z"
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/status/"
        },
        "x-feebolt-access": "public",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 30,
            "refillPerSecond": 0.5
          }
        }
      }
    },
    "/api/status/history": {
      "get": {
        "operationId": "statusHistory",
        "summary": "Status history",
        "description": "90 days of daily uptime per component, and the incidents of those days.\n\nUTC days, oldest first. A day without checks is `null`, not 100 %.",
        "tags": [
          "Data and status"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The history.",
            "content": {
              "application/json": {
                "example": {
                  "days": [
                    "2026-11-28",
                    "…"
                  ],
                  "components": {
                    "api": [
                      100,
                      "…"
                    ],
                    "…": "…"
                  },
                  "incidents": []
                }
              }
            }
          },
          "429": {
            "description": "`rate_limited`: Too many calls (per IP, or per key with a key). Wait for Retry-After seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://feebolt.com/developers/status-history/"
        },
        "x-feebolt-access": "public",
        "x-feebolt-rate-limit": {
          "perIp": {
            "burst": 30,
            "refillPerSecond": 0.5
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "fb_live_<40 characters>",
        "description": "Create a key in the app: Settings › API keys. https://feebolt.com/developers/authentication/"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "A stable code to branch on."
          },
          "message": {
            "type": "string",
            "description": "A sentence you can show as is."
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://feebolt.com/developers/"
  }
}