wormhole-foundation / demo-ntt-connect

Other
2 stars 6 forks source link

Solana RPC requires API token #5

Open zarifpour opened 1 week ago

zarifpour commented 1 week ago
inpage.js:2 Failed to get token balances Error: 401 : {"message":"Usage without a token is no longer available. For future use, register and receive a free API token https://app.extrnode.com"}
zarifpour commented 1 week ago

You can fix this by adding the rpcs to your WormholeConnectConfig with your API token:

  const wormholeConfig: WormholeConnectConfig = {
    network: 'Mainnet',
    chains: ['Ethereum', 'Base', 'Solana'],
    tokens: [...],
    rpcs: {
      Solana: 'https://solana-mainnet.rpc.extrnode.com/YOUR_API_TOKEN',
    },
    ...