Automated Finance Logoautomated.finance
AutomationsEvents

On-Chain Swap

Events related to token swaps executed within the same blockchain network.

onchain.swap.completed

Triggered when an on-chain swap operation is successfully completed.

Available Data

FieldTypeDescription
swap_idstringUnique identifier for the swap
wallet_addresswalletThe wallet that executed the swap
token_inobjectInformation about the input token
token_outobjectInformation about the output token
amount_inamountAmount of tokens sold
amount_outamountAmount of tokens received
tx_hashstringTransaction hash on the blockchain
timestampstringDate and time of completion

Example Usage

{
  "hook_type": "onchain.swap.completed",
  "data": {
    "token_in": { "symbol": "ETH" },
    "token_out": { "symbol": "USDC" },
    "amount_in": "1.5",
    "amount_out": "3000.00"
  }
}