Gateway: GetTransferConfigs
Get transfer configs for cBridge transfer functionality

REST API

get
https://cbridge-prod2.celer.network
/v2/getTransferConfigs
Get cBridge supported chains and corresponding tokens

GRPC-Web API

// 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.network`, null, null);
const response = await client.getTransferConfigs(request, null);

Request Parameters

None

Response Parameters

Name
Type
Description
chains
Array<Chain>
All supported chains' info
chain_token_map
Map<Number, ChainTokenInfo>
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>
​

Chain

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

ChainTokenInfo

Name
Type
Description
token_list
Array<TokenInfo>
chain supported token list

TokenInfo

Name
Type
Description
token
​Token​
token detail
name
String
token name
icon
String
token icon url

Token

Name
Type
Description
symbol ​
String
token symbol
address
String
token address
decimal
Number
token decimal
xfer_disabled
Boolean
token transfer disabled

PeggedPairConfig

Name
Type
Description
org_chain_id
UInt32
source chain id
org_token
​TokenInfo​
original token info
pegged_chain_id
UInt32
pegged chain id
pegged_token
​TokenInfo​
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
Notice: All data inside the configs should not be edited, otherwise it may lead to failure.
​