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