Skip to content

Local devnet and testnet relation - Python Developer Quickstart #173

Answered by oceans404
tdurand06 asked this question in Q&A
Discussion options

You must be logged in to vote

hey @tdurand06! Great questions

  1. To run the example on the testnet, you can replace your network code with the snippet below, connecting to the Testnet Network rather than your local nillion-devnet from the local env file
network = Network(
      chain_id="nillion-chain-testnet-1",
      nilvm_grpc_endpoint="https://node-1.nilvm-testnet-1.nillion-network.testnet.nillion.network:14311",
      chain_grpc_endpoint="https://testnet-nillion-grpc.lavenderfive.com",
  )
  print(network)

  # Create payments config and set up Nillion wallet with a private key to pay for operations
  nilchain_key: str = "REPLACE_THIS_WITH_YOUR_NILCHAIN_FUNDED_PRIVATE_KEY_HERE"
  1. The nillion-devnet is a local envi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tdurand06
Comment options

Answer selected by oceans404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants