Polygon BRZ to Tron USDT bridge quote

Use this test when validating that DFB API v2 can find the Hyperstream/DFB aggregator route from Polygon BRZ to Tron USDT.

Important threshold

Small inputs can fail or be uneconomic because the Tron USDT route has a fixed fee component. In live testing, 10 BRZ was too small. Larger inputs found routes:
InputResult
20 BRZRoute found, but close to the Tron fee threshold
50 BRZRoute found and clears the approximate Tron fee threshold
100 BRZRoute found
1000 BRZRoute found
Use 50 BRZ or larger for smoke tests.

DFB API v2 quote curl

curl -sS -X POST 'https://api.dfb.network/v2/bridges/quote' \
  -H 'Content-Type: application/json' \
  -d '{
    "address": "0xd7C578354b575611325De1986e13bAef8cE74429",
    "amount": "50000000000000000000",
    "fromChain": "polygon",
    "fromToken": "0x4ed141110f6eeeaba9a1df36d8c26f684d2475dc",
    "slippageBps": 100,
    "toAddress": "TAapNreEb673C1xKjxtuZhsJmYfecKXV9k",
    "toChain": "tron",
    "toToken": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
  }'

Live response example

The response below was captured from the live API with 50e18 BRZ input.
{
  "effectiveTradePrice": null,
  "expiresAt": 1785605437,
  "fromAmount": "50.000000000000000000",
  "fxPrice": null,
  "pair": "BRZ/USDT",
  "poolPrice": null,
  "price": "0.17724546",
  "provider": "dfb-aggregator",
  "quoteId": "<signed quote token>",
  "timestamp": 1785605197
}
The implied output for this quote is approximately:
50 BRZ * 0.17724546 = 8.862273 USDT

Direct Hyperstream reference

Direct Hyperstream also finds a route at 50 BRZ:
curl -sS -X POST 'https://api.hyperstream.dev/v1/quotes' \
  -H 'Content-Type: application/json' \
  -d '{
    "tradeType": "EXACT_INPUT",
    "fromChainId": 137,
    "fromToken": "0x4ed141110f6eeeaba9a1df36d8c26f684d2475dc",
    "toChainId": 728126428,
    "toToken": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "amount": "50000000000000000000",
    "fromAddress": "0xd7C578354b575611325De1986e13bAef8cE74429",
    "recipient": "TAapNreEb673C1xKjxtuZhsJmYfecKXV9k"
  }'
Example direct route:
{
  "quoteId": "21835a91-fb7f-4ac0-9b65-a14512a49952",
  "routes": [
    {
      "routeId": "HyperstreamUTXO",
      "type": "liquidity-router",
      "quote": {
        "amountIn": "50000000000000000000",
        "amountOut": "7765468",
        "expectedDurationSeconds": 300
      }
    }
  ]
}
amountOut is in Tron USDT atomic units, so 7765468 is 7.765468 USDT.

Troubleshooting

If the DFB API returns:
{
  "error": {
    "code": "upstream_error",
    "message": "bridge provider failed",
    "requestId": "req_..."
  }
}
Check the amount first. Inputs below the route/fee threshold can fail even when chain support is configured correctly. If larger inputs still fail, use the requestId to inspect GKE/Cloud Logging for the upstream provider body.