Create Bridge Order
Create Bridge Order feature is pivotal for executing the bridging operation. It processes essential inputs such as source and destination chains, asset, amount, and the sender and receiver wallet addresses. This functionality is the core of the bridging service, enabling the actual transfer of assets from one blockchain network to another. By handling these key parameters, it ensures a smooth and efficient transaction, encapsulating the essence of the service's capability to facilitate cross-chain asset movements.
Executes bridge of specified asset from user wallet on source chain to user specified wallet on destination chain.
POST
/api/bridge/execute
Headers
Name | Type | Description |
---|---|---|
api-key | string | Received API key. |
network-type* | string | EVM or Starknet. |
cookie* | Array | Cookie with session data |
Request Body
Name | Type | Description |
---|---|---|
source_chain* | string | Name of source chain. |
destination_chain* | string | Name of destination chain. |
asset_from* | string | Name of the asset in source chain. |
asset_to* | string | Name of the asset in destination chain. |
receiver_wallet* | string | Address of receiver wallet. |
amount* | string | Amount to be sent. |
Here is the code snippet that demonstrates how to call bridge execution transaction:
Once bridge transaction has been sent to API, backend constantly monitors it's Hot wallet transactions on source chain to track incoming assets movement from the user wallet. In order to make process completed on-chain transfer transaction should be sent to Hot wallet on source chain.
Last updated