Developer FAQ

1. What are the RPC addresses of JuChain mainnet and testnet?

  • Mainnet RPC: https://rpc.juchain.org

  • Mainnet WebSocket: wss://ws.juchain.org

  • Testnet RPC: https://testnet-rpc.juchain.org

  • Testnet WebSocket: ws://testnet-ws.juchain.org

2. What is JuChain’s Chain ID?

  • Mainnet Chain ID: 210000

  • Testnet Chain ID: 202599

3. How to configure JuChain network in Hardhat?

networks: {
  jucoin: {
    url: "https://testnet-rpc.juchain.org",
    accounts: [PRIVATE_KEY]
  }
}

Replace PRIVATE_KEY with your wallet private key.

4. How to configure JuChain network in Truffle?

const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
  networks: {
    juchain: {
      provider: () => new HDWalletProvider(PRIVATE_KEY, "https://testnet-rpc.juchain.org"),
      network_id: '202599',
    },
  }
}

5. What should I do if “insufficient funds” is reported during contract deployment?

Please make sure your wallet address has enough JU tokens on the JuChain testnet. You can claim them through the testnet faucet .

6. How to deploy a contract on Remix to JuChain?

  • Add JuChain testnet in MetaMask.

  • Select the “Injected Provider - MetaMask” environment.

  • Once the wallet is connected, it can be deployed.

7. How to add JuChain network in Brownie?

brownie networks add Juchain host=https://testnet-rpc.juchain.org chainid=202599

8. Why did the contract verification fail?

  • Please ensure that the source code you upload is exactly the same as that you deployed.

  • Check whether the compiler version, optimization parameters and other settings are consistent.

  • Refer to the contract source code verification practice.

9. What Solidity versions does JuChain support?

JuChain currently only supports Solidity version <= 0.8.8 for compilation, and support for subsequent versions will be gradually opened according to official notifications.

10. How can I get more technical support?

  • Visit JuChain Community and Support

  • Join the official Telegram and Discord.

Last updated