Contract 78cd5a154598a30d5e75314fe292b7f42fd589424cc00da4d192e2cf4c11ea89

← Back to Index 📥 Download WASM

Meta

rssdkver 22.0.8#f46e9e0610213bbb72285566f9dd960ff96d03d8
rsver 1.87.0

Instances

  • CCJCCH2NSRLKUZ4GYX3AYLIHLXVFYGZUGVMBQNOACJB6NOY57DHPTIGC
  • CDKXTTXHA3NC7QQALSIIPHABSQTI6B27MBE2PSZUIK7HVEFZDIN57QGP

Interface

Bridge tokens from Soroban to Ethereum via Axelar.

Arguments

  • wrapper - The BridgedTokenWrapper contract address
  • user - The user initiating the transfer (must authorize)
  • amount_rebased - Amount in rebased tokens (e.g., USDT value)
  • destination_address - Ethereum address to receive tokens
  • data - Optional data payload for the destination
  • gas_amount - Amount of gas token to pay for cross-chain gas

Returns

The number of shares that were bridged (for tracking/display)

fn interchain_transfer(
    env: soroban_sdk::Env,
    wrapper: soroban_sdk::Address,
    user: soroban_sdk::Address,
    amount_rebased: i128,
    destination_address: soroban_sdk::Bytes,
    data: Option,
    gas_amount: i128,
) -> i128

Imports

WebAssembly Text (WAT) ▶