Network Configuration
Testnetâ
info
- If your SDK >= 0.7.0, you will be using
photon2
. - If your SDK =< 0.6.0, you will be using
photon1
.
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.photon2.nillion-network.nilogy.xyz: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 222257f5-f3ce-4b80-bdbc-0a51f6050996
âšī¸ using 256 bit prime
âšī¸ storing state in /var/folders/1_/2yw8krkx5q5dn2jbhx69s4_r0000gn/T/.tmpU00Jbm (62.14Gbs available)
đ starting nilchain node in: /var/folders/1_/2yw8krkx5q5dn2jbhx69s4_r0000gn/T/.tmpU00Jbm/nillion-chain
â nilchain JSON RPC available at http://127.0.0.1:48102
â nilchain gRPC available at localhost:26649
đ starting node 12D3KooWMGxv3uv4QrGFF7bbzxmTJThbtiZkHXAgo3nVrMutz6QN
âŗ waiting until bootnode is up...
đ starting node 12D3KooWKkbCcG2ujvJhHe5AiXznS9iFmzzy1jRgUTJEhk4vjF7q
đ starting node 12D3KooWMgLTrRAtP9HcUYTtsZNf27z5uKt3xJKXsSS2ohhPGnAm
đ funding nilchain keys
đ nillion CLI configuration written to /Users/steph/Library/Application Support/nillion.nillion/config.yaml
đ environment file written to /Users/steph/Library/Application Support/nillion.nillion/nillion-devnet.env
Copy the path printed after "đ environment file written to" and open the file to see your local devnet network configuration