Network Configuration
Testnetâ
info
- If your SDK >= 0.9.0, you are on the latest and using our decentralized network
- If your SDK >= 0.7.0, you will be using
photon2. - If your SDK =< 0.6.0, you will be using
photon1.
photon2 and photon1 will be sunset in April 2025.
Use the Testnet configuration to connect to the integrated Nillion Testnet. Check out Testnet wallet and faucet guides here.
- Network
- Python .env
- React .env
đCopy Python Testnet Configuration
NILLION_BOOTNODE_MULTIADDRESS=https://node-1.nilvm-testnet-1.nillion-network.testnet.nillion.network:14311 NILLION_NILCHAIN_CHAIN_ID=nillion-chain-testnet-1 NILLION_NILCHAIN_GRPC=https://testnet-nillion-grpc.lavenderfive.com NILLION_NILCHAIN_PRIVATE_KEY_0=YOUR_TESTNET_FUNDED_PRIVATE_KEY
đCopy ReactJs Testnet Configuration
REACT_APP_API_BASE_PATH=/nilchain-proxy REACT_APP_NILLION_NILCHAIN_CHAIN_ID=nillion-chain-testnet-1 REACT_APP_NILLION_NILCHAIN_JSON_RPC=http://rpc.testnet.nilchain-rpc-proxy.nilogy.xyz REACT_APP_NILLION_NILCHAIN_REST_API=https://api.testnet.nilchain-rpc-proxy.nilogy.xyz REACT_APP_NILLION_NILCHAIN_PRIVATE_KEY=YOUR_TESTNET_FUNDED_PRIVATE_KEY
Local Devnetâ
Use the nillion-devnet SDK tool to spin up a devnet that you can interact with locally while you keep the process running:
nillion-devnet --seed my-seed
You will see an output like this:
nillion-devnet --seed my-seed
âšī¸ cluster id is 9e68173f-9c23-4acc-ba81-4f079b639964
âšī¸ using 256 bit prime
âšī¸ storing state in /var/folders/f4/cqlsh9k167vcx1swjlh_6pp80000gn/T/.tmp6q1Ee0 (718.09Gbs available)
đ starting nilchain node in: /var/folders/f4/cqlsh9k167vcx1swjlh_6pp80000gn/T/.tmp6q1Ee0/nillion-chain
â nilchain JSON RPC available at http://127.0.0.1:48102
â nilchain REST API available at http://localhost:26650
â nilchain gRPC available at http://localhost:26649
đ starting node 1
đ starting node 2
đ starting node 3
đ funding nilchain keys
đ network configuration written to /Users/XXX/.config/nillion/networks/devnet.yaml
đ environment file written to /Users/XXX/.config/nillion/nillion-devnet.env
Copy the path printed after "đ environment file written to" and open the file to see your local devnet network configuration