We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use modal-react-native in my app
this is my sessionParams :
export const MethodName = { addNet: 'wallet_addEthereumChain', switchNet: 'wallet_switchEthereumChain', sign: 'eth_sign', getChain: 'eth_chainId', sendTransaction: 'eth_sendTransaction', // signTransaction: 'eth_signTransaction', // signTypedData: 'eth_signTypedData', personalSign: 'personal_sign', } export const SUPPORT_NETs = [BSC, ETH, Goerli, TESTNET_BSC, zkSync_testnet, zkSync_mainnet] const OPTION_CHAINS = SUPPORT_NETs.filter((value) => value.networkId !== 1).map( (value) => `eip155:${value.networkId}`, ) const OPTION_METHODS = [...Object.values(MethodName)] const REQUIRED_METHODS = ['eth_sendTransaction', 'personal_sign'] const REQUIRED_EVENTS = ['chainChanged', 'accountsChanged'] const sessionParams = { namespaces: { eip155: { methods: REQUIRED_METHODS, chains: ['eip155:1'], events: REQUIRED_EVENTS, rpcMap:{}, }, }, optionalNamespaces: { eip155: { methods: OPTION_METHODS, chains: OPTION_CHAINS, events: REQUIRED_EVENTS, rpcMap: PRC_LISTs, }, }, }
rainbow wallet connected success
but when I request wallet_addEthereumChain receive error:
wallet_addEthereumChain
{"context": "client"} Missing or invalid. request() method: wallet_addEthereumChain.
the session.namespaces maybe not include wallet_addEthereumChain , optionalNamespaces not useful.
Originally posted by @dingcxx in #4924 (comment)
The text was updated successfully, but these errors were encountered:
hey @dingcxx
rainbow does not support adding custom networks & rpcs, which is the issue here. wallet_switchEthereumChain should have what you need
wallet_switchEthereumChain
that being said we are updating our WC integration to better handle this case. should be live end of next week
thanks,
🌈
Sorry, something went wrong.
No branches or pull requests
I use modal-react-native in my app
this is my sessionParams :
rainbow wallet connected success
but when I request
wallet_addEthereumChain
receive error:the session.namespaces maybe not include
wallet_addEthereumChain
, optionalNamespaces not useful.Originally posted by @dingcxx in #4924 (comment)
The text was updated successfully, but these errors were encountered: