# Bridge API Document 跨鏈橋API串接文件
## URL
**notice!! CORS enabled is reuqired.*
<font color="gray">**注意!! 需要允許 CORS*</font>
**notice!! It's a MUST to add the authorization header with a jwt value from core API*
<font color="gray">**注意!! 需要在 header 的 Authorization 帶上從核心 login 取得的token*</font>
HTTP GET = > https://<font color="red">{domain}</font>/secure/partners/depositAddress/<font color="red">{chain_type}</font>/<font color="red">{chain_id}</font>
1. {*domain*} is the domain of Amino X brige API, there is a nuances between mainnet and testnet
<font color="gray">{*domain*} 跨鏈橋 API 的網域名稱, 主鏈與測試鏈間的網域名稱有些許差別</font>
mainnet = https://bridge.api.alphacarbon.network
<font color="gray">主鏈 = https://bridge.api.alphacarbon.network</font>
testnet = https://staging.bridge.sapi.alphacarbon.network
<font color="gray">測試鏈 = https://staging.bridge.sapi.alphacarbon.network</font>
2. {*chain_type*} is the chain which user try to transfer "FROM", this is the enum but we should send it with a string type data
<font color="gray">{*chain_type*} 是使用者想"從哪個鏈"跨橋到Amino X, 這會是一個 enum 但我們應該要用字串格式放在URL中</font>
options: binance, tron
<font color="gray">選項: binance, tron</font>
3. {*chain_id*} chain id of the user try to transfer "FROM", same chain type but difference environment will have a different chain id
<font color="gray">{*chain_id*} 使用者想要"從"哪條鏈傳過來的 chain id, 同樣的鏈在不同環境底下的 chain id 並不相同</font>
Binance mainnet: 56
<font color="gray">幣安主鏈: 56</font>
Binance testnet: 97
<font color="gray">幣安測試鏈: 97</font>
Tron mainnet: 11111
<font color="gray">Tron 主鏈: 11111</font>
Tron Shasta testnet: 1
<font color="gray">Tron Shasta 測試鏈: 1</font>
## Response
{
"depositAddress": "0x769a3e75075e30749690aff827b24b8de0dd0a0f"
}
## <font color="red">*</font>NOTICE (特別注意)
USDT in Binance is 18 denom, but Tron and Amino X is 6 denom, front end need to handle this difference.
<font color="gray">在幣安鏈上USDT是18個單位, 但 Tron 跟Amino X 都是六單位, 前端頁面需要特別處理這個不同之處</font>