Gateway: GetTransferConfigs
Get transfer configs for cBridge transfer functionality
get
https://cbridge-prod2.celer.app
/v2/getTransferConfigs
Get cBridge supported chains and corresponding tokens
// import getTransferConfig request message
import {
GetTransferConfigsRequest
GetTransferConfigsResponse
} from "../ts-proto/gateway/gateway_pb";
// import grpc-web WebClient
import {
WebClient
} from "../ts-proto/gateway/GatewayServiceClientPb";
const request = new GetTransferConfigsRequest();
const client = new WebClient(`https://cbridge-prod2.celer.app`, null, null);
const response = await client.getTransferConfigs(request, null);
None
Name | Type | Description |
---|---|---|
chains | All supported chains' info | |
chain_token | Supported tokens info for each chain. Key is chain_id | |
farming_reward_contract_addr | String | cBridge farming reward contract address |
pegged_pair_configs | Array<PeggedPairConfig> | |
Name | Type | Description |
---|---|---|
id | UInt32 | chain id |
name | String | chain name |
icon | String | chain icon url |
block_delay | UInt32 | block delay for transaction confirmation |
gas_token_symbol | String | gas token |
explore_url | String | This chain's browser's url |
contract_addr | String | cBridge contract address on this chain |
Name | Type | Description |
---|---|---|
token_list | Array<TokenInfo> | chain supported token list |
Name | Type | Description |
---|---|---|
token | token detail | |
name | String | token name |
icon | String | token icon url |
transfer_disabled | Boolean | token transfer disabled |
Name | Type | Description |
---|---|---|
symbol | String | token symbol |
address | String | token address |
decimal | Number | token decimal |
xfer_disabled | Boolean | token transfer disabled |
If transfer_disabled or xfer_disabled is true, we cannot transfer the token on the corresponding chain
Name | Type | Description |
---|---|---|
org_chain_id | UInt32 | source chain id |
org_token | original token info | |
pegged_chain_id | UInt32 | pegged chain id |
pegged_token | corresponding pegged token on pegged chain | |
pegged_deposit_contract_addr | String | contract address on pagged chain for mint/deposit |
pegged_burn_contract_addr | String | contract address on pagged chain for burn/withdraw |
vault_version | Number | |
bridge_version | Number |
All data inside the configs should not be edited, otherwise it may lead to failure.
Last modified 1mo ago