Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Dexalot and Dexalot Testnet RPC support #532

Closed
1 task done
veyselozkahraman opened this issue Feb 21, 2024 · 4 comments
Closed
1 task done

feat: Add Dexalot and Dexalot Testnet RPC support #532

veyselozkahraman opened this issue Feb 21, 2024 · 4 comments
Assignees

Comments

@veyselozkahraman
Copy link

veyselozkahraman commented Feb 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Dexalot mainnet and subnets are on the Wallet Connect Chain List(https://docs.walletconnect.com/advanced/multichain/chain-list). However, these chains do not have RCP support. Dexalot application needs this functionality to support WalletConnect on the dApp(https://app.dexalot.com).

See https://github.com/WalletConnect/blockchain-api/blob/master/SUPPORTED_CHAINS.md

Requested Behavior

Is it possible to add Dexalot mainnet and testnet?

Dexalot

Chain id: 432204
RPC: https://subnets.avax.network/dexalot/mainnet/rpc
Dexalot Testnet

Chain id: 432201
RPC: https://subnets.avax.network/dexalot/testnet/rpc

Anything else?

No response

@veyselozkahraman veyselozkahraman changed the title feat: Add Dexalot and Dexalot Testnet RPC support feat: Add Dexalot and Dexalot Testnet RPC support Feb 21, 2024
@geekbrother geekbrother self-assigned this Feb 22, 2024
@chris13524
Copy link
Member

Dexalot application needs this functionality to support WalletConnect on the dApp

Dexalot application does not require rpc.walletconnect.com to support this chain in order to use WalletConnect. WalletConnect protocol is chain agnostic and supports all chains. rpc.walletconnect.com is our free blockchain RPC for a limited set of chains. If the chain is not supported, you/dapps may use an alternative RPC provider.

@veyselozkahraman
Copy link
Author

Dexalot application needs this functionality to support WalletConnect on the dApp

Dexalot application does not require rpc.walletconnect.com to support this chain in order to use WalletConnect. WalletConnect protocol is chain agnostic and supports all chains. rpc.walletconnect.com is our free blockchain RPC for a limited set of chains. If the chain is not supported, you/dapps may use an alternative RPC provider.

This is the error I am getting when I try to sign a transaction on dexalot subnet.

Request URL: https://rpc.walletconnect.com/v1/?chainId=eip155:432201&projectId=<PROJECT_ID>
Request Method: POST
Status Code: 400 Bad Request

{
    "status": "FAILED",
    "reasons": [
        {
            "field": "chainId",
            "description": "We don't support the chainId you provided: eip155:432201. See the list of supported chains here: https://docs.walletconnect.com/cloud/blockchain-api#supported-chains"
        }
    ]
}

I do not get any errors if I want to sign a transaction on avalanche mainnet or testnet.
What seems to be the problem?

Thanks in advance

@veyselozkahraman
Copy link
Author

I think the solution is to set the rpcMap option on initialization of the EtheremProvider

@chris13524
Copy link
Member

What seems to be the problem?

The Dexalot app shouldn't use rpc.walletconnect.com for any chains except for the ones in supported chains

I think the solution is to set the rpcMap option on initialization of the EtheremProvider

Yeah this is correct, you have to provide a custom rpc with rpcMap for unsupported chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants