π€Examples
Simple ERC20 bridging flow
Source address : 0x8f058342605F6D819F1033e5e498dEc37a892e81
Source chain ID : 5
Token address : 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 (UNI on Goerli)
Token amount : 0.1 (token is 18 decimals so this becomes 100000000000000000)
Destination address: 0x8f058342605F6D819F1033e5e498dEc37a892e81
Destination chain ID: 11155111
Destination token address : 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 (UNI on Sepolia)Step 1 : Quoting
{
"destination_tokens_available": "1461465583173996160",
"destination_tokens_available_dec": 1.46146558317399616,
"error": "none",
"estimated_bridge_time_seconds": 120,
"fee_token_name": "UNI",
"fee_token_total": "1916508538899431",
"fee_token_total_dec": "0.001916508538899431",
"fee_usd_equivalent_destination_dec": 0.0001,
"fee_usd_equivalent_total_dec": 0.0101,
"fee_usd_equivalent_volume_dec": 0
}Step 2 : Building bridge tx
Step 3 : Setting spending allowance
Step 4 : Sending bridge tx
Step 5 : Watch status of tx on neuron
Step 6 : Funds credited at distination
Last updated


