Cross-Chain Swap
Events related to token swaps executed across different blockchain networks.
cross.swap.completed
Triggered when a cross-chain swap operation is successfully completed.
Available Data
| Field | Type | Description |
|---|---|---|
cross_swap_id | string | Unique identifier for the cross-chain swap |
status | string | Final status of the swap |
from_chain | object | Information about the source chain |
to_chain | object | Information about the destination chain |
from_token | object | Information about the source token |
to_token | object | Information about the destination token |
from_amount | amount | Amount sent from source chain |
to_amount | amount | Amount received on destination chain |
to_address | wallet | Destination wallet address |
executed_at | string | Date and time of execution |
Example Usage
{
"hook_type": "cross.swap.completed",
"data": {
"from_chain": { "name": "Ethereum" },
"to_chain": { "name": "Polygon" },
"from_token": { "symbol": "USDC" },
"to_token": { "symbol": "USDC" },
"amount_out": "99.50"
}
}