Skip to main content
ICON dApps

Integrate your ICON dApp with Hana Wallet using the ICONex webconnect standard

David avatar
Written by David
Updated over a week ago

Leverage Hana Wallet’s full support for the ICONex webconnect standard to seamlessly integrate your ICON dApps, ensuring compatibility and a smooth user experience.

Introduction to ICONex Webconnect

Hana Wallet fully supports the ICONex webconnect standard, making it easy for developers to integrate their ICON dApps with Hana. ICONex webconnect provides a set of standardized events and methods that allow your dApp to communicate with ICON wallets like Hana, enabling functionalities such as account access, address retrieval, transaction signing, and JSON-RPC requests.

Supported ICONex Webconnect Events

Hana Wallet automatically handles the following ICONex webconnect events, ensuring seamless operation with ICON dApps:

1. HAS_ACCOUNT

  • Request: REQUEST_HAS_ACCOUNT

  • Response: RESPONSE_HAS_ACCOUNT

  • Description: Checks if the user has an ICON account connected to Hana Wallet. This is useful for determining if a user is ready to interact with the dApp.

2. HAS_ADDRESS

  • Request: REQUEST_HAS_ADDRESS

  • Response: RESPONSE_HAS_ADDRESS

  • Description: Verifies if a specific address is available in Hana Wallet. This event helps to confirm the presence of an address before proceeding with transactions.

3. ADDRESS

  • Request: REQUEST_ADDRESS

  • Response: RESPONSE_ADDRESS

  • Description: Requests the user’s ICON wallet address. This is typically used to fetch the user's public address for transactions or interaction with smart contracts.

4. JSON-RPC

  • Request: REQUEST_JSON-RPC

  • Response: RESPONSE_JSON-RPC

  • Description: Allows the dApp to make JSON-RPC requests via Hana Wallet. This is essential for interacting with ICON smart contracts and performing various blockchain operations.

5. SIGNING

  • Request: REQUEST_SIGNING

  • Response: RESPONSE_SIGNING

  • Description: Facilitates transaction signing within the Hana Wallet. This event is crucial for approving and broadcasting transactions on the ICON blockchain.

Testing ICONex Webconnect Events

Developers can test these events using the following sample page: ICONex Connect Sample Page.

This page allows you to simulate interactions with Hana Wallet, making it easier to debug and ensure your dApp's compatibility.

Additional Resources

To learn more about the ICONex webconnect standard, you can explore this comprehensive workshop by 2infiniti: ICON Workshop: ICONex Web Connect. This resource provides an in-depth guide on implementing ICONex webconnect in your dApp.

Why Use Hana for ICON dApps?

  • Full ICONex Compatibility: Hana’s support for the ICONex webconnect standard ensures that your dApp will work seamlessly with ICON, leveraging the full range of webconnect events.

  • Enhanced User Experience: By integrating with Hana, you provide users with a familiar and efficient way to interact with your ICON dApp, boosting engagement and usability.

  • Robust Testing Tools: The provided sample page and workshop resources enable developers to thoroughly test and refine their dApp integration.

Integrating your ICON dApp with Hana Wallet is straightforward thanks to the full support for ICONex webconnect events. By following the guidelines and utilizing the available resources, you can ensure a smooth and effective connection between your dApp and Hana Wallet.

Need Help?

If you have any questions or need further assistance, visit our Support Center for more articles and resources, or contact our support team.

Did this answer your question?