Cross Chain Service
Chainge cross chain service is powered by Chainge's cutting edge cross-chain technology powered by Fusion DCRM.
Chainge cross chain SDK could support 28 chains including most popular EVM chains such as Ethereum and non-EVM chains such as Solana.
In version 1.0, Chainge is going to provide all supported EVM chains in our cross-chain infrastructure to public. However, we are busy working on including our supported non-EVM chains now.
To be noticed, we do not have a testnet environment. All the transactions should be on mainnet. To test a transaction, one could send a small amount like $1 on a low gas network such as fusion.
There are four steps for a cross-chain transaction.
get a cross chain quote
Get a quote for a cross chain transaction
POST
/open/v1/order/getCrossChainQuote
Headers
Name | Type | Description |
---|---|---|
appKey* | String | developer account appKey |
expireTime* | Int | timeout time in ms for a request |
signature* | String | signature generated to verify developer account. Please refer to Signature verification to generate a signature |
timestamp* | Int | current timestamp used in signature verification |
Request Body
Name | Type | Description |
---|---|---|
amount* | float | token amount to be crossed without token decimal |
fromChain* | String | from chain name from supported Chains API request result |
toChain* | String | to chain name from supported Chains API request result |
token* | String | token to be crossed from supported tokens API request result |
feeLevel* | Int | Please refer to fee structureFee Structure |
2. get a transaction raw
Get a raw for users to sign and then broadcast
POST
/open/v1/order/getTransferToMinterRaw
Headers
Name | Type | Description |
---|---|---|
appKey* | String | developer account appKey |
expireTime* | Int | timeout time in ms for a request |
signature* | String | signature generated to verify developer account. Please refer to Signature verification to generate a signature |
timestamp* | Int | current timestamp used in signature verification |
Request Body
Name | Type | Description |
---|---|---|
amount* | float | token amount to be crossed without token decimal |
chain* | String | original chain name from supported Chains API request result |
evmAddress* | String | user evm Address |
token* | String | token symbol to be crossed from supported tokens API request result |
fromAddress* | String | user from address (If it is from a EVM chain, the address is same as evmAddress) |
3. Submit transaction to hash
Submit transaction hash and start cross-chain
POST
/open/v1/order/submitCrossChain
Headers
Name | Type | Description |
---|---|---|
appKey* | String | developer account appKey |
expireTime* | Int | timeout time in ms for a request |
signature* | String | signature generated to verify developer account. Please refer to Signature verification to generate a signature |
timestamp* | Int | current timestamp used in signature verification |
Request Body
Name | Type | Description |
---|---|---|
fromAmount* | float | token amount to be crossed without token decimal from step 2 |
fromChain* | String | original chain name from step 2 |
evmAddres* | String | user EVM Address |
fromToken* | String | token to be crossed in step 2 |
fromAddress* | Int | user from address (If it is from a EVM chain, the address is same as evmAddress) |
certHash* | String | the transaction hash from step 2 |
toChain* | String | To chain name |
feeLevel* | Int | Please refer to Fee Structure |
Check cross chain status
Get Order Detail
GET
/open/v1/order/getOrderDetailByHashAndEvmAddress
Query Parameters
Name | Type | Description |
---|---|---|
chain* | String | source chain |
hash* | String | the transaction hash |
evmAddress* | String | user evm Address |
Headers
Name | Type | Description |
---|---|---|
appKey* | String | developer account appKey |
expireTime* | Int | timeout time in ms for a request |
signature* | String | signature generated to verify developer account. Please refer to Signature verification to generate a signature |
timestamp* | Int | current timestamp used in signature verification |
Last updated