Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 3.01 KB

how-to-generate-shareable-links.mdx

File metadata and controls

49 lines (36 loc) · 3.01 KB
title description
How to Generate Shareable Links
This guide provides step-by-step instructions to generate IBC.fun shareable links.

Quick Start

  1. Go to https://ibc.fun
  2. Modify the source/destination chains and assets to set the default route (optional)
  3. Click the "Share" button
![](/images/d1281bd-Screen_Shot_2024-06-11_at_2.40.19_PM.png) 4. Voila, you're done! The sharable link is now copied to your clipboard for you to embed on your website for an easy onboarding/deposit experience, to tweet about your bags, or to simply share it with your friends!

Advanced Configuration Instructions

Instead of creating a route and sharing it via https://ibc.fun, you can create a sharable link with the following parameters of your choice: src_chain, src_asset, dest_chain, dest_asset, amount_in, and amount_out.

Query Base URL: https://ibc.fun/

Query Parameters:

  • src_chain: The source chain ID from which the asset is being transferred.
  • src_asset: The asset or token denom to transfer or swap originating from the source chain.
    • Note: Must be a valid asset on the specified src_chain.
  • dest_chain: The destination chain ID to which the asset is being transferred.
  • dest_asset: The asset or token denom that will be received on the destination chain.
    • Note: Must be a valid asset on the specified dest_chain.
  • amount_in (Optional): The amount of the asset being transferred from the source chain.
    • Note: If provided along with amount_out, only amount_in will be used.
  • amount_out (Optional): The amount of the asset to be received on the destination chain.
    • Note: If provided along with amount_in, only amount_in will be used.

Example Shareable Link: https://ibc.fun?src_chain=cosmoshub-4&src_asset=uatom&dest_chain=pacific-1&dest_asset=usei&amount_in=1

Helpful Tips

  • Ensure that the src_chain and dest_chain values are valid and supported by the platform.
  • The src_asset must be a valid asset on the specified src_chain, and the dest_asset must be a valid asset on the specified dest_chain.
  • If both amount_in and amount_out are provided, only amount_in will be used.
  • If src_asset or dest_asset is not provided or found, it will default to the chain's native asset.
**Want to help us get better? Have questions or feedback?**

You can reach us easily by joining our Discord and grabbing the "Skip API Developer" role.