chain_id accepts an integer or a string — 56, "56", and "0x38" are all valid for BSC. Send "tron" (or 728126428) for Tron.
An unsupported chain is rejected with 400 invalid request. Contact support to confirm a chain not listed here.
Usage
Setchain_id on the transaction object, not at the top level: