Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 2.14 KB

connecting-dapps.md

File metadata and controls

22 lines (12 loc) · 2.14 KB

Connecting Dapps

Valora supports WalletConnect v1 and WalletConnect v2 for connecting Dapps to Valora. WalletConnect v1 has been deprecated and we recommend building new dapps using WalletConnect v2.

If you're building a Dapp we recommend react-celo to make it easy to connect your Dapp to Valora via WalletConnect. cLabs supports react-celo and it includes a complete example to help you get started.

WalletConnect details

Supported actions: https://github.com/celo-org/wallet/blob/main/src/walletConnect/constants.ts#L3

Docs for WalletConnect v2: https://docs.walletconnect.com/2.0/javascript/sign/dapp-usage

Troubleshooting tips

When building the connection between your Dapp and Valora, it can be challenging to determine the source of a connection error. We recommend using the official WalletConnect example Dapp and wallet to help with this.

  • If Valora cannot connect to your Dapp but is able to connect to the WalletConnect v2 example react Dapp correctly, the issue likely lies with your Dapp. It can be helpful to check the implementation details of this example Dapp against your own implementation.
  • If your Dapp is unable to connect to the WalletConnect v2 example wallet, there is likely an issue with your Dapp. As above, we recommend comparing the implementation details between your Dapp and the example Dapp provided.

WalletConnect v1 has been deprecated so we do not recommend building with this. Similar to above, this example Dapp for WalletConnect v1 can be helpful to determine if a connection problem lies with Valora or your Dapp.

If these troubleshooting steps don't help, please join our #dapp-dev channel on Discord to discuss your specific problem.