-
Hi - I would like to add Algorand specifically to this modal setup, but a general guidance would be appreciated. I found the following namespaces for Algorand according to CAIP 2 Algorand MainNet has the genesis hash wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8= Algorand TestNet has the genesis hash SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI= Algorand BetaNet has the genesis hash mFgazF+2uRS1tMiL9dsj01hJGySEmPN28B/TjjvpVW0= In comparision to: public static readonly string EvmNamespace = "eip155";
I would assume the following:
I also noticed a UnityWebRequestWalletsFactory() that GET data from the api - where can I define what wallets can be used? I don't seem to see it in the WalletConnect Dashboard, but it seems like we're GET that data from the api? Maybe I missed it somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @moosesnWoop, Almost correct! The namespace is The chain object would like something like this: Chain AlgorandTestnet = new("algorand", "SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe", "Algorand Testnet", new Color(0.21f, 0.82f, 0.5f), true); You will also need to modify this line to include non EVM chains. I haven't had a chance to test Algorand myself; please let me know if this approach works. The In the WalletConnectModalOptions, you can specify which wallets to include or exclude. You can get wallet IDs from the WalletConnect explorer. For example: var options = new WalletConnectModalOptions
{
ConnectOptions = BuildConnectOptions(),
ExcludedWalletIds = new[]
{
"c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96", // MetaMask
"4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0", // Trust
}
};
WalletConnectModal.Open(options); |
Beta Was this translation helpful? Give feedback.
-
Hi Since I've added this, it seems to work fine, but it seems that there is no supported wallet or chain? I'm kinda confused at this. I thought that Algorand was supported on Wallet Connect and that there were wallets already attached? I tried using Ledger to scan the QR code and it says it only supported X number of chains.. so then I tried metamask and only had Ethereum. There is no Pera wallet? I guess Eth works fine, but the chain that I want to use is Algorand- any methods to set that up? |
Beta Was this translation helpful? Give feedback.
-
Thanks, I didn't know Pera wasn't on the WalletConnect explorer. I will try the method via QR code, which is fine. I also looked at the issue, and it seems that I have already updated the methods/events for the Algo use case, but will test it properly when I get back to my desk. |
Beta Was this translation helpful? Give feedback.
-
Update: Got it to connect! I also included some event/methods namely:
and then created a new namespace for the Algo associated chains. I will look into the exact methods, but I believe that's all that's needed. I am also assuming that this way of implementation will be able to expand on any number of chains, given the CAIP naming conventions. |
Beta Was this translation helpful? Give feedback.
Hi,
There are two ways to connect a wallet: QR code and deep link.
Pera should work with the QR code. Please take a look at this issue.
However, Pera will not appear in the list of wallets and therefore will not be able to use the deep link. This is because the wallet data is pulled from the WalletConnect Explorer, where the Pera wallet is absent. If the developers of Pera add it to the explorer, it will automatically appear in the Modal.